# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=285

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

**Page:** 286

---

## [The unit fraction problem](https://discourse.processing.org/t/the-unit-fraction-problem/12633)

<div class="topic-metadata">

**Author:** [@InferNova](https://discourse.processing.org/u/InferNova)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 11:08pm UTC](https://discourse.processing.org/t/the-unit-fraction-problem/12633 "2019-07-09T23:08:05Z")

</div>

Hey Guys ! In university this year I was given a problem to solve ( or get the best possible solution ). It involves unit fractions and trying to get the largest set of unit fractions to add up to 1. So for example a se…

---

## [Real-Time dataviz with Neurosky Mindwave mobile](https://discourse.processing.org/t/real-time-dataviz-with-neurosky-mindwave-mobile/12567)

<div class="topic-metadata">

**Author:** [@yashkhataokar](https://discourse.processing.org/u/yashkhataokar)\
**Replies:** 7\
**Last updated:** [July 9, 2019, 7:31pm UTC](https://discourse.processing.org/t/real-time-dataviz-with-neurosky-mindwave-mobile/12567 "2019-07-09T19:31:52Z")

</div>

Hi, I have a visual that reacts to the live data from the EEG headset, the problem is the data streams at a 1 sec interval and the form of the visual changes accordingly, when there is a huge jump in the data value the a…

---

## [Cannot plot realtime (slow,delay)](https://discourse.processing.org/t/cannot-plot-realtime-slow-delay/12610)

<div class="topic-metadata">

**Author:** [@pauledd](https://discourse.processing.org/u/pauledd)\
**Replies:** 6\
**Last updated:** [July 9, 2019, 6:31pm UTC](https://discourse.processing.org/t/cannot-plot-realtime-slow-delay/12610 "2019-07-09T18:31:44Z")

</div>

Hi Intention: Realtime plot an ECG Signal from Arduino’s ADC (sent from Arduino–\>RaspberryPi–\>LAN–\>ClientPC–\>Processing). Problem: The plotting in processing somehow lags/delays behind realtime. In depth: I use a E…

---

## [OpenGL - cannot load shapes(objects)](https://discourse.processing.org/t/opengl-cannot-load-shapes-objects/12629)

<div class="topic-metadata">

**Author:** [@ProgrammableBoyCZECH](https://discourse.processing.org/u/ProgrammableBoyCZECH)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 4:21pm UTC](https://discourse.processing.org/t/opengl-cannot-load-shapes-objects/12629 "2019-07-09T16:21:25Z")

</div>

Hi, can you help me with this code please? I want to make program with OpenGL that shows up objects and if you click with mouse it will show another one. But it is showing only first two, but other not. HERE IS THE C…

---

## [Graphical user interface](https://discourse.processing.org/t/graphical-user-interface/12624)

<div class="topic-metadata">

**Author:** [@amitshishodia](https://discourse.processing.org/u/amitshishodia)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 3:55pm UTC](https://discourse.processing.org/t/graphical-user-interface/12624 "2019-07-09T15:55:24Z")

</div>

Hello All I want to make a GUI with this GUI I want to control the sampling rate. I have some devices in these devices have analog sensor I have used SPI serial communication for acquiring temperature and humidity data. …

---

## [Is parent parameter of Capture ever not "this"?](https://discourse.processing.org/t/is-parent-parameter-of-capture-ever-not-this/12543)

<div class="topic-metadata">

**Author:** [@cyanblue](https://discourse.processing.org/u/cyanblue)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 3:16pm UTC](https://discourse.processing.org/t/is-parent-parameter-of-capture-ever-not-this/12543 "2019-07-09T15:16:19Z")

</div>

I’ve just been playing around with the Capture class, and the default first (parent) parameter when declaring a new Capture object is “this” - which I understand to refer to the parent of the object…i.e. the current sket…

---

## [Maybe too many \> characters?](https://discourse.processing.org/t/maybe-too-many-characters/12599)

<div class="topic-metadata">

**Author:** [@pizzamaster77](https://discourse.processing.org/u/pizzamaster77)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 2:51pm UTC](https://discourse.processing.org/t/maybe-too-many-characters/12599 "2019-07-09T14:51:26Z")

</div>

Hi, I’m a noob to Processing and I was trying to create a simple circle bouncing around a screen. I got part way through to the point where I wanted it to detect when the circle got close to the edge. I started with when…

---

## [Wrap around iteration](https://discourse.processing.org/t/wrap-around-iteration/12586)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 9\
**Last updated:** [July 9, 2019, 12:05pm UTC](https://discourse.processing.org/t/wrap-around-iteration/12586 "2019-07-09T12:05:32Z")

</div>

Is there a way to get this effect of generating 0, 1 1, 2 2, 3 3, 0 … with a single condition, I mean either without using if/else, or taking the if/else out of the for loop? And avoid hard coding ‘0’ This just se…

---

## [Transform two int into one int](https://discourse.processing.org/t/transform-two-int-into-one-int/12604)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 3\
**Last updated:** [July 9, 2019, 9:54am UTC](https://discourse.processing.org/t/transform-two-int-into-one-int/12604 "2019-07-09T09:54:14Z")

</div>

Hello, I have two int variable that I would like to put end to end to form only one int variable : int a= 2, b= 3; int c=//I would like variable c to be equal to 23 Do you have an idea to solve my problem ? Thank you…

---

## [Why is an E- float being returned when analysing sound](https://discourse.processing.org/t/why-is-an-e-float-being-returned-when-analysing-sound/12603)

<div class="topic-metadata">

**Author:** [@Matthbooth](https://discourse.processing.org/u/Matthbooth)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 1:14am UTC](https://discourse.processing.org/t/why-is-an-e-float-being-returned-when-analysing-sound/12603 "2019-07-09T01:14:49Z")

</div>

Hello I’m analysing the sound spectrum data of an imported sound file. As I loop through data I’m frequently getting numbers such as 5.4515745E-5 rather than a float from 0 to 1. Why is this and how do ignore those nu…

---

## [How do i use another serial to send data from arduino to processing?](https://discourse.processing.org/t/how-do-i-use-another-serial-to-send-data-from-arduino-to-processing/12595)

<div class="topic-metadata">

**Author:** [@diazdaiz](https://discourse.processing.org/u/diazdaiz)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 12:58am UTC](https://discourse.processing.org/t/how-do-i-use-another-serial-to-send-data-from-arduino-to-processing/12595 "2019-07-09T00:58:06Z")

</div>

i am using arduino teensy and i want to send data to processing using another serial, how do i write it in processing? i am following this tutorial: https://www.youtube.com/watch?v=NhyB00J6PiM but in my case, i need to…

---

## [Text keeps moving to the background](https://discourse.processing.org/t/text-keeps-moving-to-the-background/12591)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 4\
**Last updated:** [July 8, 2019, 4:09pm UTC](https://discourse.processing.org/t/text-keeps-moving-to-the-background/12591 "2019-07-08T16:09:07Z")

</div>

Hello, I’m trying to take text (a dialogue I put in avoid draw() )to the foreground because it shows in front of the screen for under a sec and then goes behind the background. void setup(){ //Sfondo Uomo1 = load…

---

## [Using PShapes as a canvas for images](https://discourse.processing.org/t/using-pshapes-as-a-canvas-for-images/12529)

<div class="topic-metadata">

**Author:** [@xce](https://discourse.processing.org/u/xce)\
**Replies:** 9\
**Last updated:** [July 8, 2019, 5:00pm UTC](https://discourse.processing.org/t/using-pshapes-as-a-canvas-for-images/12529 "2019-07-08T17:00:31Z")

</div>

Hello Everyone, I’m just getting started with P3D, although I’ve used Processing in the past, and have run into an issue: I can’t figure out how to place images on a PShape. I have looked at the Texture Cube example pro…

---

## [Can't display Image: size error even if it is scaled right](https://discourse.processing.org/t/cant-display-image-size-error-even-if-it-is-scaled-right/12583)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 3\
**Last updated:** [July 8, 2019, 12:41pm UTC](https://discourse.processing.org/t/cant-display-image-size-error-even-if-it-is-scaled-right/12583 "2019-07-08T12:41:32Z")

</div>

Hello! I can’t figure out why I can’t display 1 Image: even if I imported it in the data folder, I wrote the right name with the right extension and scaled to the right size: import ddf.minim.\*; import ddf.minim.analysi…

---

## [Drawing java.awt.Shape](https://discourse.processing.org/t/drawing-java-awt-shape/12572)

<div class="topic-metadata">

**Author:** [@Sayeth\_We](https://discourse.processing.org/u/Sayeth_We)\
**Replies:** 1\
**Last updated:** [July 8, 2019, 10:23am UTC](https://discourse.processing.org/t/drawing-java-awt-shape/12572 "2019-07-08T10:23:36Z")

</div>

I’m using the java.awt.Shape class for collision detection with intersects() and contains(). However, this means that I’m duplication code, and in particular, magic numbers, when drawing vs checking collisions. an Examp…

---

## [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…

---

## [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…

---

## [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 …

---

## [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…

---

## [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()); …

---

## [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…

---

## [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…

---

## [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…

---

## [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…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=284)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=286)
