# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=467

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 468

---

## [Particle-interaction based on images' pixel brightness](https://discourse.processing.org/t/particle-interaction-based-on-images-pixel-brightness/12240)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 8\
**Last updated:** [July 8, 2019, 10:21am UTC](https://discourse.processing.org/t/particle-interaction-based-on-images-pixel-brightness/12240 "2019-07-08T10:21:26Z")

</div>

Hello, I hope someone is able and willing to aid me in figuring out how to approach a concept I want to try. The idea is rather simple: I want particles to interact with a loaded image. I have a Processing sketch with …

---

## [Svg file loading distorted](https://discourse.processing.org/t/svg-file-loading-distorted/12527)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 11\
**Last updated:** [July 8, 2019, 6:23am UTC](https://discourse.processing.org/t/svg-file-loading-distorted/12527 "2019-07-08T06:23:52Z")

</div>

I am loading an svg file which contains numerous square shapes stacked diagonally. I wrote a simple code PShape image; void setup() { size(600,600); image=loadShape(“squares.svg”); } void draw() { shapeMode(CEN…

---

## [Additive Motion Synthesizer with Processing](https://discourse.processing.org/t/additive-motion-synthesizer-with-processing/11607)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 8\
**Last updated:** [July 8, 2019, 7:52am UTC](https://discourse.processing.org/t/additive-motion-synthesizer-with-processing/11607 "2019-07-08T07:52:51Z")

</div>

A. M. O. S. ADDITIVE MOTION SYNTHSIS simulating 2D motion with simple signals \*\*Motivation and concept:\*\* Simple Sine waves have …

---

## [Potential of processing on Android Studio for software in psychological field](https://discourse.processing.org/t/potential-of-processing-on-android-studio-for-software-in-psychological-field/12428)

<div class="topic-metadata">

**Author:** [@yvikmartin](https://discourse.processing.org/u/yvikmartin)\
**Replies:** 5\
**Last updated:** [July 8, 2019, 6:55am UTC](https://discourse.processing.org/t/potential-of-processing-on-android-studio-for-software-in-psychological-field/12428 "2019-07-08T06:55:03Z")

</div>

Dear all, I’m involved in a professional challenge for using processing on Android Studio in order to develop an Android App for neurophysiological research in clinical investigation in Besançon (France). As a short in…

---

## [Pixels "stutter" when drawing (now with included data)](https://discourse.processing.org/t/pixels-stutter-when-drawing-now-with-included-data/12326)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 15\
**Last updated:** [July 7, 2019, 11:06pm UTC](https://discourse.processing.org/t/pixels-stutter-when-drawing-now-with-included-data/12326 "2019-07-07T23:06:30Z")

</div>

Edit: Data can be downloaded from here, forgot it again. Hi, Sorry for the complete rebuild, but what I wrote was garbage, i’ll try to simplify. I’m visualising movie color data from three places on the screen, I have…

---

## [Google posenet dependencies missing!](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454)

<div class="topic-metadata">

**Author:** [@Sparrow](https://discourse.processing.org/u/Sparrow)\
**Replies:** 7\
**Last updated:** [July 7, 2019, 10:56pm UTC](https://discourse.processing.org/t/google-posenet-dependencies-missing/12454 "2019-07-07T22:56:42Z")

</div>

Hey guys! Just wanted to thank you for setting up p5js, it is an enormous help with rapid prototyping stuff! So I’ve been using posenet on p5js extensively for a university project in time and motion studies, works like…

---

## [\[SOLVED\] Properties in Processing](https://discourse.processing.org/t/solved-properties-in-processing/12569)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [July 7, 2019, 9:22pm UTC](https://discourse.processing.org/t/solved-properties-in-processing/12569 "2019-07-07T21:22:00Z")

</div>

I’m converting a project from p5.js to processing and am struggling to find the equivalent in processing. I’m using the p5.js properties var a = {}; so that I can later access and update this variable as such; var b =…

---

## [Tramontana alternative for Android/Windows](https://discourse.processing.org/t/tramontana-alternative-for-android-windows/8474)

<div class="topic-metadata">

**Author:** [@feelthemall](https://discourse.processing.org/u/feelthemall)\
**Replies:** 6\
**Last updated:** [July 7, 2019, 8:50pm UTC](https://discourse.processing.org/t/tramontana-alternative-for-android-windows/8474 "2019-07-07T20:50:34Z")

</div>

Hello. Is there something like the Tramontana (which works on iOS and macOS) for Windows and Android?

---

## [Processing exam in 3 days: I can't finish my project](https://discourse.processing.org/t/processing-exam-in-3-days-i-cant-finish-my-project/12556)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 1\
**Last updated:** [July 7, 2019, 3:20pm UTC](https://discourse.processing.org/t/processing-exam-in-3-days-i-cant-finish-my-project/12556 "2019-07-07T15:20:42Z")

</div>

Hello, I’m having really big troubles trying to figure out how to finish my project for my exam; here it is how I imagened it: in the first 10 seconds the screen should display the opening credits, after that part music …

---

## [Help needed with Serial comms on Python Mode / Firmata](https://discourse.processing.org/t/help-needed-with-serial-comms-on-python-mode-firmata/12553)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 0\
**Last updated:** [July 7, 2019, 2:14pm UTC](https://discourse.processing.org/t/help-needed-with-serial-comms-on-python-mode-firmata/12553 "2019-07-07T14:14:10Z")

</div>

Serial comms is broken on Processing Python Mode, as documented here: I suppose I can call this a "regression’, I have several projects that depend on Serial/Firmata and sensors connected to Arduinos. Websockets is …

---

## [Error in Websockets Library](https://discourse.processing.org/t/error-in-websockets-library/12550)

<div class="topic-metadata">

**Author:** [@usufwasi](https://discourse.processing.org/u/usufwasi)\
**Replies:** 2\
**Last updated:** [July 7, 2019, 12:13pm UTC](https://discourse.processing.org/t/error-in-websockets-library/12550 "2019-07-07T12:13:36Z")

</div>

I am getting the following error when I run the example code for a websocket server. "The constructor “WebsocketServer(WebsocketServer, int, String)” does not exist". The relevant code is as follows: import websocke…

---

## [How to extract a substring from a string using position and length](https://discourse.processing.org/t/how-to-extract-a-substring-from-a-string-using-position-and-length/12536)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 6\
**Last updated:** [July 7, 2019, 5:50am UTC](https://discourse.processing.org/t/how-to-extract-a-substring-from-a-string-using-position-and-length/12536 "2019-07-07T05:50:02Z")

</div>

Hello, Example: string1 = ‘abcdefghijk’ I need to extract a substring from 4th position for a length of 2 characters I tried this Python code and I get a syntax error: substring1 = string1(3:2) (the result in subst…

---

## [Arduino, as a SCOPE](https://discourse.processing.org/t/arduino-as-a-scope/12483)

<div class="topic-metadata">

**Author:** [@Luis](https://discourse.processing.org/u/Luis)\
**Replies:** 6\
**Last updated:** [July 7, 2019, 12:19am UTC](https://discourse.processing.org/t/arduino-as-a-scope/12483 "2019-07-07T00:19:41Z")

</div>

hi I´m doing a proyect, and i need use a scope; i found this code: import processing.serial.Serial; import processing.serial.\*; Serial myPort; int xPos=1; void setup (){ size(400,300); println(Serial.list()); …

---

## [Web editor -- offline?](https://discourse.processing.org/t/web-editor-offline/12399)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 10\
**Last updated:** [July 6, 2019, 6:53pm UTC](https://discourse.processing.org/t/web-editor-offline/12399 "2019-07-06T18:53:20Z")

</div>

Just making the move to p5.js from the Processing IDE… and have also been using the now deprecated/old P5 editor. I am wanting to code if possible without any internet access, so is it possible to have a local copy of t…

---

## [Get image number and looping number from filename parameters](https://discourse.processing.org/t/get-image-number-and-looping-number-from-filename-parameters/12537)

<div class="topic-metadata">

**Author:** [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Replies:** 1\
**Last updated:** [July 6, 2019, 1:58pm UTC](https://discourse.processing.org/t/get-image-number-and-looping-number-from-filename-parameters/12537 "2019-07-06T13:58:47Z")

</div>

i want to give four digit name of an image like 0102. where two digit define image number and other two define looping time of image . is this is possible to get parameter from image name and use it in looping and other …

---

## [Stacking shapes](https://discourse.processing.org/t/stacking-shapes/12033)

<div class="topic-metadata">

**Author:** [@lindsey1](https://discourse.processing.org/u/lindsey1)\
**Replies:** 9\
**Last updated:** [July 6, 2019, 10:19am UTC](https://discourse.processing.org/t/stacking-shapes/12033 "2019-07-06T10:19:28Z")

</div>

Hi, so I am replicating the game ’ Stack’ on processing. I was wondering if anyone knew how to make the shapes stack on top of each other when the mouse is clicked. When the mouse is clicked, the rectangle that is moving…

---

## [Mp3 jukebox in background](https://discourse.processing.org/t/mp3-jukebox-in-background/9843)

<div class="topic-metadata">

**Author:** [@peor](https://discourse.processing.org/u/peor)\
**Replies:** 11\
**Last updated:** [July 5, 2019, 9:15pm UTC](https://discourse.processing.org/t/mp3-jukebox-in-background/9843 "2019-07-05T21:15:51Z")

</div>

In like this https://p5js.org/examples/sound-preload-soundfile.html but then want a sequence of several mp3 files that are played one track where there are also fade in and fade out for each track. Can you help me how I …

---

## [Drawing program](https://discourse.processing.org/t/drawing-program/12510)

<div class="topic-metadata">

**Author:** [@AdrienGh](https://discourse.processing.org/u/AdrienGh)\
**Replies:** 12\
**Last updated:** [July 5, 2019, 7:52pm UTC](https://discourse.processing.org/t/drawing-program/12510 "2019-07-05T19:52:20Z")

</div>

Hello everyone, I’m new to programming. I could use your help. I want to create a simple interface to draw from a circle. The problem is that I can’t draw on this circle. And I wish I could draw on it. PImage gomme; …

---

## [Zooming-in & out through non-concentric, round image sequence](https://discourse.processing.org/t/zooming-in-out-through-non-concentric-round-image-sequence/12505)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 2\
**Last updated:** [July 5, 2019, 7:46pm UTC](https://discourse.processing.org/t/zooming-in-out-through-non-concentric-round-image-sequence/12505 "2019-07-05T19:46:15Z")

</div>

I need to zoom in fluidly (and back out) through a sequence of 7 images, each one detailing about 6% of the image containing it, like zooming in from ‘planet’, all the way to ‘pebble’, while maintaining a high level of f…

---

## [Bouncing ellipses](https://discourse.processing.org/t/bouncing-ellipses/12525)

<div class="topic-metadata">

**Author:** [@sileo](https://discourse.processing.org/u/sileo)\
**Replies:** 6\
**Last updated:** [July 5, 2019, 7:41pm UTC](https://discourse.processing.org/t/bouncing-ellipses/12525 "2019-07-05T19:41:05Z")

</div>

Hi everybody! I’m a new user in this forum and I’d like to know if someone could help me with this: A red ellipse that bounces vertically when you press “A” A blue ellipse that bounces horizontally when pressing “B” A…

---

## [Counting football juggles via webcam (p5js)](https://discourse.processing.org/t/counting-football-juggles-via-webcam-p5js/12430)

<div class="topic-metadata">

**Author:** [@joymkj](https://discourse.processing.org/u/joymkj)\
**Replies:** 6\
**Last updated:** [July 5, 2019, 5:47pm UTC](https://discourse.processing.org/t/counting-football-juggles-via-webcam-p5js/12430 "2019-07-05T17:47:37Z")

</div>

Hi! I want to create an application which can count how many football juggles (feet, knee, head etc.) has been performed through the webcam live feed. I have implemented pose estimation and object tracking but it is too…

---

## [How to update my sketch each time when sketch is complete run](https://discourse.processing.org/t/how-to-update-my-sketch-each-time-when-sketch-is-complete-run/12515)

<div class="topic-metadata">

**Author:** [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Replies:** 7\
**Last updated:** [July 5, 2019, 5:47pm UTC](https://discourse.processing.org/t/how-to-update-my-sketch-each-time-when-sketch-is-complete-run/12515 "2019-07-05T17:47:03Z")

</div>

i am taking data from my server and database. and each time i update my database manually but my sketch data is not update and its running previous data in loop. i want that if i change or update database then my sketch…

---

## [How to load fonts on an android device?](https://discourse.processing.org/t/how-to-load-fonts-on-an-android-device/12488)

<div class="topic-metadata">

**Author:** [@WeinSim](https://discourse.processing.org/u/WeinSim)\
**Replies:** 15\
**Last updated:** [July 5, 2019, 5:32pm UTC](https://discourse.processing.org/t/how-to-load-fonts-on-an-android-device/12488 "2019-07-05T17:32:24Z")

</div>

Hi, so I want to make a sketch on my phone where i load a font but always fails to load the font. I also put it into the sketch’s data folder (both as a \*.ttf as well as \*.vwl) but none of it worked. Any ideas on what I’…

---

## [Is it possible to perform p5js.sound FFT for the whole audio input without playing it back?](https://discourse.processing.org/t/is-it-possible-to-perform-p5js-sound-fft-for-the-whole-audio-input-without-playing-it-back/12318)

<div class="topic-metadata">

**Author:** [@fftnana](https://discourse.processing.org/u/fftnana)\
**Replies:** 1\
**Last updated:** [July 5, 2019, 2:24pm UTC](https://discourse.processing.org/t/is-it-possible-to-perform-p5js-sound-fft-for-the-whole-audio-input-without-playing-it-back/12318 "2019-07-05T14:24:14Z")

</div>

Hi all, I am currently working on an audio plotting/visualizer project which takes in amplitude of the audio input and also FFT for more data, so that the resulting plot/image will be more variative. As for amplitude, …

---

## [Declare variable for PGraphics which is given image as an input](https://discourse.processing.org/t/declare-variable-for-pgraphics-which-is-given-image-as-an-input/12473)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 2\
**Last updated:** [July 5, 2019, 2:30pm UTC](https://discourse.processing.org/t/declare-variable-for-pgraphics-which-is-given-image-as-an-input/12473 "2019-07-05T14:30:47Z")

</div>

Hi. I am loading an image in PGraphics sketch. Taking the color of each pixel and drawing rotated rectangles on main Sketch with the colors of each pixel from image. My confusion is how do I define PGraphics variables. …

---

## [Who knows well Geomerative?!](https://discourse.processing.org/t/who-knows-well-geomerative/10453)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 69\
**Last updated:** [July 5, 2019, 1:12pm UTC](https://discourse.processing.org/t/who-knows-well-geomerative/10453 "2019-07-05T13:12:21Z")

</div>

Dear all, I face an issue I can’t solve for days despite the great help I received in this forum from @kll who helped me a lot. Unfortunately we didn’t find a way out. In the code below I deform+enlarge a text letter b…

---

## [Change Font Weight in p5](https://discourse.processing.org/t/change-font-weight-in-p5/12514)

<div class="topic-metadata">

**Author:** [@redmoncoreyl](https://discourse.processing.org/u/redmoncoreyl)\
**Replies:** 3\
**Last updated:** [July 5, 2019, 3:20am UTC](https://discourse.processing.org/t/change-font-weight-in-p5/12514 "2019-07-05T03:20:43Z")

</div>

I want to have a p5 sketch with the same font but multiple weights. In my index.html I have the following line: \<link href="https://fonts.googleapis.com/css?family=Montserrat:400,800&display=swap" rel="stylesheet"\> In …

---

## [(p5js) how can i structure an if then statement so that a few but not all conditions are met?](https://discourse.processing.org/t/p5js-how-can-i-structure-an-if-then-statement-so-that-a-few-but-not-all-conditions-are-met/12394)

<div class="topic-metadata">

**Author:** [@cryptacritic](https://discourse.processing.org/u/cryptacritic)\
**Replies:** 10\
**Last updated:** [July 5, 2019, 2:24am UTC](https://discourse.processing.org/t/p5js-how-can-i-structure-an-if-then-statement-so-that-a-few-but-not-all-conditions-are-met/12394 "2019-07-05T02:24:56Z")

</div>

Imagine you have ten boolean (or otherwise) variables. You want three of the ten variables to be true, but no more than 3, and no less. You do not want to create a complicated nested if-then function that requires writin…

---

## [How to run half element of array length](https://discourse.processing.org/t/how-to-run-half-element-of-array-length/12439)

<div class="topic-metadata">

**Author:** [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Replies:** 2\
**Last updated:** [July 4, 2019, 11:07pm UTC](https://discourse.processing.org/t/how-to-run-half-element-of-array-length/12439 "2019-07-04T23:07:44Z")

</div>

i have 50 images and i want to run sequential each image in my folder and what i am trying to do is that i am creating an array of 100 images.but i have only 50 image and other 50 images Add in a sequence when program i…

---

## [Strange behavior from a sketch](https://discourse.processing.org/t/strange-behavior-from-a-sketch/12492)

<div class="topic-metadata">

**Author:** [@rbytes](https://discourse.processing.org/u/rbytes)\
**Replies:** 7\
**Last updated:** [July 4, 2019, 10:09pm UTC](https://discourse.processing.org/t/strange-behavior-from-a-sketch/12492 "2019-07-04T22:09:30Z")

</div>

I recently translated this sketch, Dynafractal, to P5.js from another language (Smart Basic, if anyone is familiar with it.) My code runs fine, and the final output looks exactly like it did in Smart Basic, but it doe…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=466)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=468)
