# Processing

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

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

**Page:** 100

---

## [How do I draw multiple ellipses in a circle formation](https://discourse.processing.org/t/how-do-i-draw-multiple-ellipses-in-a-circle-formation/34059)

<div class="topic-metadata">

**Author:** [@Kashyap](https://discourse.processing.org/u/Kashyap)\
**Replies:** 10\
**Last updated:** [December 13, 2021, 12:02am UTC](https://discourse.processing.org/t/how-do-i-draw-multiple-ellipses-in-a-circle-formation/34059 "2021-12-13T00:02:26Z")

</div>

I need to create a code that allows me to draw any number of ellipses in a circular formation moving outwards (sort of like a firework). Your help will be greatly appreciated.

---

## [Thousands of ellipses slows Processing down](https://discourse.processing.org/t/thousands-of-ellipses-slows-processing-down/34074)

<div class="topic-metadata">

**Author:** [@cannon303](https://discourse.processing.org/u/cannon303)\
**Replies:** 3\
**Last updated:** [December 12, 2021, 11:26pm UTC](https://discourse.processing.org/t/thousands-of-ellipses-slows-processing-down/34074 "2021-12-12T23:26:24Z")

</div>

Hi I’m new to Processing and I’m dabbling with the example: Circle Collision with Swapping Velocities by Ira Greenberg : Circle Collision with Swapping Velocities / Examples / Processing.org I can post the code if you l…

---

## [Resizing a ControlP5 text field](https://discourse.processing.org/t/resizing-a-controlp5-text-field/34068)

<div class="topic-metadata">

**Author:** [@F1yin](https://discourse.processing.org/u/F1yin)\
**Replies:** 4\
**Last updated:** [December 12, 2021, 8:59pm UTC](https://discourse.processing.org/t/resizing-a-controlp5-text-field/34068 "2021-12-12T20:59:08Z")

</div>

My goal is simply to be able to resize a ControlP5 text field when the window is resized. import controlP5.\*; ControlP5 cp5; void setup(){ size(1080, 640); background(197,217,227); surface.setResizable(true); …

---

## [How do I get a PShape location after transforming it?](https://discourse.processing.org/t/how-do-i-get-a-pshape-location-after-transforming-it/34064)

<div class="topic-metadata">

**Author:** [@TT3overnot](https://discourse.processing.org/u/TT3overnot)\
**Replies:** 6\
**Last updated:** [December 12, 2021, 3:59pm UTC](https://discourse.processing.org/t/how-do-i-get-a-pshape-location-after-transforming-it/34064 "2021-12-12T15:59:35Z")

</div>

cameraTarget = createShape(SPHERE, 30); cameraTarget.rotateX(-mouseX / 200.0); cameraTarget.rotateY(-mouseY / 200.0); cameraTarget.translate(200, 0, 0); I’m making a project and don’t want to replace any code. I was…

---

## [Create random curve from X points](https://discourse.processing.org/t/create-random-curve-from-x-points/31218)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 4\
**Last updated:** [December 12, 2021, 1:13pm UTC](https://discourse.processing.org/t/create-random-curve-from-x-points/31218 "2021-12-12T13:13:09Z")

</div>

I want to draw curve from X points, random points. I try to read about the bezierPoint() but not understood completely

---

## [Using two different readStringUntil "characters"](https://discourse.processing.org/t/using-two-different-readstringuntil-characters/10769)

<div class="topic-metadata">

**Author:** [@eezJerome](https://discourse.processing.org/u/eezJerome)\
**Replies:** 26\
**Last updated:** [December 12, 2021, 11:46am UTC](https://discourse.processing.org/t/using-two-different-readstringuntil-characters/10769 "2021-12-12T11:46:56Z")

</div>

Hello. I am not sure what to call the value inside the bufferUntil, but as my title implies I need to use two different characters, rather than just the newline (\\n). Is it possible that, inside the serialEvent() funct…

---

## [Splitting a string that contains a float value](https://discourse.processing.org/t/splitting-a-string-that-contains-a-float-value/34065)

<div class="topic-metadata">

**Author:** [@F1yin](https://discourse.processing.org/u/F1yin)\
**Replies:** 2\
**Last updated:** [December 11, 2021, 11:41pm UTC](https://discourse.processing.org/t/splitting-a-string-that-contains-a-float-value/34065 "2021-12-11T23:41:54Z")

</div>

Hi! My goal is to use an Arduino to send processing multiple sensor readings and display them. Right now I am sending the values as a comma-separated string, and then plan on displaying each value individually by splitt…

---

## [TextToPoints in Processing](https://discourse.processing.org/t/texttopoints-in-processing/34057)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 1\
**Last updated:** [December 11, 2021, 8:17pm UTC](https://discourse.processing.org/t/texttopoints-in-processing/34057 "2021-12-11T20:17:03Z")

</div>

Hey, whats is the equivalent to the function TextToPoints (P5) in Processing? thanks :slight\_smile:

---

## [Add text above rect](https://discourse.processing.org/t/add-text-above-rect/34034)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 3\
**Last updated:** [December 11, 2021, 6:13pm UTC](https://discourse.processing.org/t/add-text-above-rect/34034 "2021-12-11T18:13:26Z")

</div>

I tried to add text on top of the rects in the shop, but the text appeared behind the rects, why is this? int clicks = 0; color cookie; color black; color white; PImage home; boolean shop= false; void setup() { re…

---

## [Smooth organic line](https://discourse.processing.org/t/smooth-organic-line/34055)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 1\
**Last updated:** [December 11, 2021, 1:46pm UTC](https://discourse.processing.org/t/smooth-organic-line/34055 "2021-12-11T13:46:19Z")

</div>

Hey, I’m trying to make an animation of a moving line with noise. so I have a vector of the position and the previous position and I make a line between the two and the update the vector and so on. The problem is that…

---

## [Serial connection between Arduino and Processing doesn't work; Port busy](https://discourse.processing.org/t/serial-connection-between-arduino-and-processing-doesnt-work-port-busy/34040)

<div class="topic-metadata">

**Author:** [@grudovz](https://discourse.processing.org/u/grudovz)\
**Replies:** 2\
**Last updated:** [December 11, 2021, 12:48pm UTC](https://discourse.processing.org/t/serial-connection-between-arduino-and-processing-doesnt-work-port-busy/34040 "2021-12-11T12:48:09Z")

</div>

Hi everyone. I’m trying to connect arduino and processing via serial. Whenever I run the processing sketch I get the following error: RuntimeException: Error opening serial port COM26: Port busy Could not run the sketch…

---

## [Array processing function](https://discourse.processing.org/t/array-processing-function/34026)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 8\
**Last updated:** [December 10, 2021, 4:37pm UTC](https://discourse.processing.org/t/array-processing-function/34026 "2021-12-10T16:37:33Z")

</div>

I’m attempting to create a function to do basic array manipulation. I’d like to pass it an empty array and have the new array returned. I’ve included the code below, but I am not sure how to get it to work correctly. I…

---

## [Smooth() does not work on a PGraphics in Processing 4.0b2. Please give us b3 or accurate documentation](https://discourse.processing.org/t/smooth-does-not-work-on-a-pgraphics-in-processing-4-0b2-please-give-us-b3-or-accurate-documentation/34024)

<div class="topic-metadata">

**Author:** [@scudly](https://discourse.processing.org/u/scudly)\
**Replies:** 3\
**Last updated:** [December 10, 2021, 5:17am UTC](https://discourse.processing.org/t/smooth-does-not-work-on-a-pgraphics-in-processing-4-0b2-please-give-us-b3-or-accurate-documentation/34024 "2021-12-10T05:17:06Z")

</div>

As the title says, smooth() does not work on a PGraphics in Processing 4.0b2. The error message Syntax error on “;”, delete this was particularly unhelpful. The problem (with the pre-processor) was identified and f…

---

## [Minesweeper game with three objects](https://discourse.processing.org/t/minesweeper-game-with-three-objects/34019)

<div class="topic-metadata">

**Author:** [@gvmrk](https://discourse.processing.org/u/gvmrk)\
**Replies:** 1\
**Last updated:** [December 9, 2021, 11:06pm UTC](https://discourse.processing.org/t/minesweeper-game-with-three-objects/34019 "2021-12-09T23:06:01Z")

</div>

Hello, Im trying to make a kind of minesweeper game, but with 3 objects the player can find on the gameboard. I now have the code working to load 1 object into the game board. But i need all three objects placed on the …

---

## [Thoughts on Best Way to Render Game Pieces: sprites vs SVGs vs…](https://discourse.processing.org/t/thoughts-on-best-way-to-render-game-pieces-sprites-vs-svgs-vs/34018)

<div class="topic-metadata">

**Author:** [@Anders](https://discourse.processing.org/u/Anders)\
**Replies:** 0\
**Last updated:** [December 9, 2021, 6:47pm UTC](https://discourse.processing.org/t/thoughts-on-best-way-to-render-game-pieces-sprites-vs-svgs-vs/34018 "2021-12-09T18:47:04Z")

</div>

Hi! As part of the Data Chefs initiative, I’m working on a project to explore creating a series of team dashboards that are more like gameboards. For pieces on the gameboards-as-dashboards, any thoughts about how to…

---

## [Create visual from .wav](https://discourse.processing.org/t/create-visual-from-wav/33720)

<div class="topic-metadata">

**Author:** [@Pyo](https://discourse.processing.org/u/Pyo)\
**Replies:** 1\
**Last updated:** [December 9, 2021, 10:17am UTC](https://discourse.processing.org/t/create-visual-from-wav/33720 "2021-12-09T10:17:50Z")

</div>

Hi, i’m new here and just using Processing a little bit. Started by “messing” with existing code. : ) Now, what i’d like to do is generate statics visuals form the data contained in sound files. For exemple amplitude and…

---

## [Creating a www server with P5 lib processing.net\*](https://discourse.processing.org/t/creating-a-www-server-with-p5-lib-processing-net/8030)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 2\
**Last updated:** [December 9, 2021, 3:25am UTC](https://discourse.processing.org/t/creating-a-www-server-with-p5-lib-processing-net/8030 "2021-12-09T03:25:20Z")

</div>

Since a lot of months i am working for an app which is a multiplayer game; gamers can use tablets (android) or desktop computers. I have written a server for the game and of course the app itself, android && desktop vers…

---

## [Drawing array of curves from PVector](https://discourse.processing.org/t/drawing-array-of-curves-from-pvector/33775)

<div class="topic-metadata">

**Author:** [@mrbro](https://discourse.processing.org/u/mrbro)\
**Replies:** 12\
**Last updated:** [December 9, 2021, 12:41am UTC](https://discourse.processing.org/t/drawing-array-of-curves-from-pvector/33775 "2021-12-09T00:41:34Z")

</div>

Hi friends! I am trying to draw an array of curves from PVector coordinates. Basically it is similar to Particle system tutorial, just instead of points, I need to get curves. I try to use begin shape (in class Particl…

---

## [Connecting Cells](https://discourse.processing.org/t/connecting-cells/33835)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 14\
**Last updated:** [December 8, 2021, 9:50pm UTC](https://discourse.processing.org/t/connecting-cells/33835 "2021-12-08T21:50:47Z")

</div>

\*deleted post (it was a terrible code…)

---

## [Why doesn't FOR-EACH give every output a different VALUE from ARRAY?](https://discourse.processing.org/t/why-doesnt-for-each-give-every-output-a-different-value-from-array/33987)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 2\
**Last updated:** [December 8, 2021, 8:17pm UTC](https://discourse.processing.org/t/why-doesnt-for-each-give-every-output-a-different-value-from-array/33987 "2021-12-08T20:17:08Z")

</div>

I made an array that I output in a loop. But every item I assign the array it keep giving the same value while I’ve put 4 values into the array. I’ve tried everything but it keeps giving the same value (330). I have also…

---

## [Alternatives for OpenCV at recognizing facial parts? (eyes, nose, mouth)](https://discourse.processing.org/t/alternatives-for-opencv-at-recognizing-facial-parts-eyes-nose-mouth/34003)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 0\
**Last updated:** [December 8, 2021, 1:46pm UTC](https://discourse.processing.org/t/alternatives-for-opencv-at-recognizing-facial-parts-eyes-nose-mouth/34003 "2021-12-08T13:46:25Z")

</div>

After using OpenCv for a while I figured out it does recognize the face very well but not the eyes, nose and mouth. When applying this the detection isn’t stable enough and will create rectangles everywhere. Especially w…

---

## [How do I recognize faces and only output that from camera capture?](https://discourse.processing.org/t/how-do-i-recognize-faces-and-only-output-that-from-camera-capture/33964)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 2\
**Last updated:** [December 8, 2021, 1:08pm UTC](https://discourse.processing.org/t/how-do-i-recognize-faces-and-only-output-that-from-camera-capture/33964 "2021-12-08T13:08:08Z")

</div>

I would like to only output faces and not anything else from a camera capture. So basicly a zoom in on the face only. Does anyone know how to do it or where I should start? Thank you.

---

## [Can somebody help me, please (background color)](https://discourse.processing.org/t/can-somebody-help-me-please-background-color/33996)

<div class="topic-metadata">

**Author:** [@Toxodera](https://discourse.processing.org/u/Toxodera)\
**Replies:** 2\
**Last updated:** [December 8, 2021, 12:15pm UTC](https://discourse.processing.org/t/can-somebody-help-me-please-background-color/33996 "2021-12-08T12:15:19Z")

</div>

Hello, I’m new to processing and I need help with my code. How can I switch my background to another colour when I click something on my mouse? And How can I code the sun to move? void setup() { size(800,600); backg…

---

## [Where can I find XMLpro library/How to read XML data with Processing?](https://discourse.processing.org/t/where-can-i-find-xmlpro-library-how-to-read-xml-data-with-processing/33985)

<div class="topic-metadata">

**Author:** [@sebastian](https://discourse.processing.org/u/sebastian)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 11:44am UTC](https://discourse.processing.org/t/where-can-i-find-xmlpro-library-how-to-read-xml-data-with-processing/33985 "2021-12-08T11:44:14Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’’m following this course on LinkedIn and in chapter 10.4 the topic is: Processing: Interactive Data Visualization. I can not find the proXML d…

---

## [How do I calculate the cube root?](https://discourse.processing.org/t/how-do-i-calculate-the-cube-root/33988)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 14\
**Last updated:** [December 8, 2021, 11:05am UTC](https://discourse.processing.org/t/how-do-i-calculate-the-cube-root/33988 "2021-12-08T11:05:42Z")

</div>

I am trying to find all numbers with an integer cube root, but it hasn’t worked because appareantly cbrt() isn’t a processing supported function. how do I do this? this is my code: int x= 1; if(cbrt(x)==int(cbrt(x)){ …

---

## [Old processing zombie game by Kevan Davis. Can you help me get it working?](https://discourse.processing.org/t/old-processing-zombie-game-by-kevan-davis-can-you-help-me-get-it-working/7178)

<div class="topic-metadata">

**Author:** [@aaronszcz](https://discourse.processing.org/u/aaronszcz)\
**Replies:** 19\
**Last updated:** [December 7, 2021, 10:31pm UTC](https://discourse.processing.org/t/old-processing-zombie-game-by-kevan-davis-can-you-help-me-get-it-working/7178 "2021-12-07T22:31:17Z")

</div>

Hello Forum, One day I remembered an old zombie game I played I high school computer class. I found the source code for it. Turns out it was written for Processing 1.0. Ive coded with java and python before, but not in…

---

## [Connecting a line that passes though 2 points](https://discourse.processing.org/t/connecting-a-line-that-passes-though-2-points/33856)

<div class="topic-metadata">

**Author:** [@chaotic.rabbit](https://discourse.processing.org/u/chaotic.rabbit)\
**Replies:** 11\
**Last updated:** [December 7, 2021, 9:01am UTC](https://discourse.processing.org/t/connecting-a-line-that-passes-though-2-points/33856 "2021-12-07T09:01:41Z")

</div>

Hi I found this code posted on here and it worked for me to draw a line that passes from 2 points that I wanted. However I want the line to start and stop at certain points not continue all the way to the top and bottom.…

---

## [Counting clicks on images](https://discourse.processing.org/t/counting-clicks-on-images/33972)

<div class="topic-metadata">

**Author:** [@tlinston](https://discourse.processing.org/u/tlinston)\
**Replies:** 1\
**Last updated:** [December 7, 2021, 4:21am UTC](https://discourse.processing.org/t/counting-clicks-on-images/33972 "2021-12-07T04:21:08Z")

</div>

I’m making a game where there needs to be a counter for every time I click on a certain image. I’ve loaded in the image and set up the counter but I’m not sure how to go about putting details in the void mouseClicked ar…

---

## [How to divide a image/video into multiple pieces?](https://discourse.processing.org/t/how-to-divide-a-image-video-into-multiple-pieces/33965)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 1\
**Last updated:** [December 6, 2021, 7:54pm UTC](https://discourse.processing.org/t/how-to-divide-a-image-video-into-multiple-pieces/33965 "2021-12-06T19:54:06Z")

</div>

How can I break a image of video into multiple pieces? I want to do this with camera capture in the end. Any advice is welcome. Thank you. So something like this:

---

## [Coding Help-Collision](https://discourse.processing.org/t/coding-help-collision/33969)

<div class="topic-metadata">

**Author:** [@Mr.B](https://discourse.processing.org/u/Mr.B)\
**Replies:** 0\
**Last updated:** [December 6, 2021, 6:19pm UTC](https://discourse.processing.org/t/coding-help-collision/33969 "2021-12-06T18:19:26Z")

</div>

(p5.js Web Editor) How can I fix lines 44-46 to have a “better” collision between the projectile and the alien?

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

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