# Processing

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

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

**Page:** 173

---

## [Collision detection ball catching game](https://discourse.processing.org/t/collision-detection-ball-catching-game/25200)

<div class="topic-metadata">

**Author:** [@FabsFabs](https://discourse.processing.org/u/FabsFabs)\
**Replies:** 17\
**Last updated:** [November 6, 2020, 6:31am UTC](https://discourse.processing.org/t/collision-detection-ball-catching-game/25200 "2020-11-06T06:31:28Z")

</div>

Main code float playerWidth; float playerX; float playerY; float number; float\[\] circleY = new float\[10\]; float circleRadius = 25; float headRadius = 15; Player player; //========================================…

---

## [Want to make an array but it doesn't work](https://discourse.processing.org/t/want-to-make-an-array-but-it-doesnt-work/25208)

<div class="topic-metadata">

**Author:** [@MaxMax](https://discourse.processing.org/u/MaxMax)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 5:18pm UTC](https://discourse.processing.org/t/want-to-make-an-array-but-it-doesnt-work/25208 "2020-11-05T17:18:19Z")

</div>

I want to make an array list for my obstacles. This is my full code: StripeMovement\[\] stripes = new StripeMovement\[10\]; ObstacleMovement obstacle1 = new ObstacleMovement(100, 200, 10, 6); ObstacleMovement obstacle2 …

---

## [How to rotate around a sphere?](https://discourse.processing.org/t/how-to-rotate-around-a-sphere/25072)

<div class="topic-metadata">

**Author:** [@raboytniksings](https://discourse.processing.org/u/raboytniksings)\
**Replies:** 24\
**Last updated:** [November 1, 2020, 10:21am UTC](https://discourse.processing.org/t/how-to-rotate-around-a-sphere/25072 "2020-11-01T10:21:25Z")

</div>

I spawn a sphere not at the center of the space, and I would like the “camera” to rotate around that sphere, always looking towards the sphere’s center. According to https://gist.github.com/atduskgreg/1516424, it should …

---

## [Color click game](https://discourse.processing.org/t/color-click-game/25207)

<div class="topic-metadata">

**Author:** [@jeremy](https://discourse.processing.org/u/jeremy)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 3:41pm UTC](https://discourse.processing.org/t/color-click-game/25207 "2020-11-05T15:41:14Z")

</div>

I want to let it wrong when the mouse clicked wrong place so I use the if-else , mouse X and Y in right range and clicked it get score, But now I clicked the first color ,it input twice clicked , then, it appear the in…

---

## [Create Arc with curves/bezier](https://discourse.processing.org/t/create-arc-with-curves-bezier/25178)

<div class="topic-metadata">

**Author:** [@nktlst](https://discourse.processing.org/u/nktlst)\
**Replies:** 6\
**Last updated:** [November 5, 2020, 10:12am UTC](https://discourse.processing.org/t/create-arc-with-curves-bezier/25178 "2020-11-05T10:12:30Z")

</div>

Hello. I created for-loop for generating ARCs with random angles… using build in arc function. Here some issues with controlling this arcs because they based on circles, and overlays each other (my arc is quarter of circ…

---

## [Bezier editor with data from serial port](https://discourse.processing.org/t/bezier-editor-with-data-from-serial-port/25184)

<div class="topic-metadata">

**Author:** [@myramoons](https://discourse.processing.org/u/myramoons)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 9:03am UTC](https://discourse.processing.org/t/bezier-editor-with-data-from-serial-port/25184 "2020-11-05T09:03:29Z")

</div>

Hello! Im doing a project for school, where I’m using a pixy camera to track and send coordinates to processing so that it draws a smooth curve. I stumbled upon @Chrisir 's bezier editor, and have been trying to change t…

---

## [Fractal zoom with text](https://discourse.processing.org/t/fractal-zoom-with-text/25140)

<div class="topic-metadata">

**Author:** [@M.Payne](https://discourse.processing.org/u/M.Payne)\
**Replies:** 6\
**Last updated:** [November 3, 2020, 2:19pm UTC](https://discourse.processing.org/t/fractal-zoom-with-text/25140 "2020-11-03T14:19:44Z")

</div>

I was wondering if its possible to create a fractal zoom with text instead of shapes or lines. If so, can someone please point me in the right direction. I’m currently learning Processing for my Major Project and this …

---

## [Memory card game](https://discourse.processing.org/t/memory-card-game/7160)

<div class="topic-metadata">

**Author:** [@roeludh](https://discourse.processing.org/u/roeludh)\
**Replies:** 18\
**Last updated:** [November 5, 2020, 12:43am UTC](https://discourse.processing.org/t/memory-card-game/7160 "2020-11-05T00:43:15Z")

</div>

Hi, I have to make this memory card game in processing and Im a little stuck somewhere. I have three screens and on the third screen the game is displayed based on the selected number of cards in the second screen. This…

---

## [USB camera not recognized by Processing](https://discourse.processing.org/t/usb-camera-not-recognized-by-processing/25159)

<div class="topic-metadata">

**Author:** [@stivi](https://discourse.processing.org/u/stivi)\
**Replies:** 2\
**Last updated:** [November 4, 2020, 6:43pm UTC](https://discourse.processing.org/t/usb-camera-not-recognized-by-processing/25159 "2020-11-04T18:43:07Z")

</div>

Hey guys! I’m a newbie in processing and am trying to do a project based on some tutorials on youtube about “rasterizing” and image. After doing that i wanted to change form image to video. The problem I’m having is that…

---

## [Flip the image HORIZONTALLY](https://discourse.processing.org/t/flip-the-image-horizontally/25165)

<div class="topic-metadata">

**Author:** [@BettyBai](https://discourse.processing.org/u/BettyBai)\
**Replies:** 3\
**Last updated:** [November 4, 2020, 6:02pm UTC](https://discourse.processing.org/t/flip-the-image-horizontally/25165 "2020-11-04T18:02:42Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m new to processing, and I’m trying to flip the image horizontally. However, I am facing the problem of only flipping half of the image, c…

---

## [Using Processing for creating a GUI to display Vibration Measurements from an Arduino (using the Grove SW-420 Vibration Sensor)](https://discourse.processing.org/t/using-processing-for-creating-a-gui-to-display-vibration-measurements-from-an-arduino-using-the-grove-sw-420-vibration-sensor/25166)

<div class="topic-metadata">

**Author:** [@AbroChief](https://discourse.processing.org/u/AbroChief)\
**Replies:** 6\
**Last updated:** [November 4, 2020, 11:36am UTC](https://discourse.processing.org/t/using-processing-for-creating-a-gui-to-display-vibration-measurements-from-an-arduino-using-the-grove-sw-420-vibration-sensor/25166 "2020-11-04T11:36:04Z")

</div>

Hello everyone. I am creating a project, everything has gone perfect and the task is accomplished. I have fixed a Grove SW-420 vibration sensor and a Grove - LoRa Radio 433MHz Transmitter (acting as the client for sendin…

---

## [Calling processing-java from node on Windows 10](https://discourse.processing.org/t/calling-processing-java-from-node-on-windows-10/24819)

<div class="topic-metadata">

**Author:** [@cheister](https://discourse.processing.org/u/cheister)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 7:36am UTC](https://discourse.processing.org/t/calling-processing-java-from-node-on-windows-10/24819 "2020-11-04T07:36:30Z")

</div>

Hello everyone, I am having some problems to execute the processing-java on windows from nodejs. When I use the following processing-java --sketch=$pwd/sketch/ --run in the console it works fine and the sketch is exec…

---

## [Algorithm for dividing a circle, providing labels for only some of the divisions](https://discourse.processing.org/t/algorithm-for-dividing-a-circle-providing-labels-for-only-some-of-the-divisions/25138)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 4\
**Last updated:** [November 3, 2020, 6:45pm UTC](https://discourse.processing.org/t/algorithm-for-dividing-a-circle-providing-labels-for-only-some-of-the-divisions/25138 "2020-11-03T18:45:26Z")

</div>

I am trying to find a reusable algorithm for dividing any integer quantity into an integer number of parts, but providing a label for only some of those parts. For example, numbers on a clock. I have the following, nume…

---

## [sDrop image P2D](https://discourse.processing.org/t/sdrop-image-p2d/25130)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [November 3, 2020, 3:15pm UTC](https://discourse.processing.org/t/sdrop-image-p2d/25130 "2020-11-03T15:15:06Z")

</div>

Hi, I’m trying to drag and drop an outside Image in my PApplet with sDrop library but I use P2D renderer. With this renderer is not working but without is it. There is a way to go around, I really need this ? Thanks

---

## [Processing app not working](https://discourse.processing.org/t/processing-app-not-working/25135)

<div class="topic-metadata">

**Author:** [@Tay0508](https://discourse.processing.org/u/Tay0508)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 6:06pm UTC](https://discourse.processing.org/t/processing-app-not-working/25135 "2020-11-02T18:06:36Z")

</div>

So I’m not sure what is going on, but I downloaded processing, and I extracted the files, but when I open it, it says error starting up with an entire error page. I am not sure what to do and neither does my teacher.

---

## [P3D: Two towers with a connecting bridge - QuadStrip](https://discourse.processing.org/t/p3d-two-towers-with-a-connecting-bridge-quadstrip/14109)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [November 2, 2020, 5:47pm UTC](https://discourse.processing.org/t/p3d-two-towers-with-a-connecting-bridge-quadstrip/14109 "2020-11-02T17:47:16Z")

</div>

I have a more general question concerning how to make two towers with a connecting bridge or more complex stuff. I understand I can make ONE tower using QuadStrip. And the other tower and the bridge too. But how would …

---

## [Serial data from arduino to processing (Vital Signs monitor)](https://discourse.processing.org/t/serial-data-from-arduino-to-processing-vital-signs-monitor/24088)

<div class="topic-metadata">

**Author:** [@IttaloAlvarenga](https://discourse.processing.org/u/IttaloAlvarenga)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 4:22pm UTC](https://discourse.processing.org/t/serial-data-from-arduino-to-processing-vital-signs-monitor/24088 "2020-11-02T16:22:16Z")

</div>

Hello there! I´m new coding with processing and I have some issues that I hope you guys can help me to understand and solve. I´m fascinated about vital signs and I´ve decided to build my own monitor, but I only have some…

---

## [Need help merging several sketches](https://discourse.processing.org/t/need-help-merging-several-sketches/25083)

<div class="topic-metadata">

**Author:** [@qelouisa](https://discourse.processing.org/u/qelouisa)\
**Replies:** 6\
**Last updated:** [November 1, 2020, 9:18pm UTC](https://discourse.processing.org/t/need-help-merging-several-sketches/25083 "2020-11-01T21:18:08Z")

</div>

Hello everyone, for a school project I am working on interactive visuals with the kinect. I have 3 processing sketches which I want to merge into one, so the visuals loop over into each other. However I am at a loss on h…

---

## [Basic Array Question](https://discourse.processing.org/t/basic-array-question/25077)

<div class="topic-metadata">

**Author:** [@joe\_processing](https://discourse.processing.org/u/joe_processing)\
**Replies:** 1\
**Last updated:** [October 31, 2020, 6:26pm UTC](https://discourse.processing.org/t/basic-array-question/25077 "2020-10-31T18:26:45Z")

</div>

Hi there! I’ve noobie question… I wrote a code that makes a ball appear when the key pressed minus or plus. two questions: I want every press will make one ball (now it looks like 3 at a time). how do I make the arr…

---

## [Show "explosions" in which many dots scatter away from the location of a mouse click](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106)

<div class="topic-metadata">

**Author:** [@jeremy](https://discourse.processing.org/u/jeremy)\
**Replies:** 1\
**Last updated:** [November 1, 2020, 10:31am UTC](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106 "2020-11-01T10:31:19Z")

</div>

Hi,I’ve a question. I want to write a code like this: Can anyone give me a example ? Thank you!

---

## [PTMX Scale picture](https://discourse.processing.org/t/ptmx-scale-picture/25104)

<div class="topic-metadata">

**Author:** [@Artyom](https://discourse.processing.org/u/Artyom)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 9:12am UTC](https://discourse.processing.org/t/ptmx-scale-picture/25104 "2020-11-01T09:12:38Z")

</div>

Hello! I need help with a library for PTMX games. I don’t know how to scale the picture. It’s too small. I tried to use “setCamSize()” with different parameters, but it didn’t do anything: Ptmx map = new Ptmx(this, "ma…

---

## [How to move the color?](https://discourse.processing.org/t/how-to-move-the-color/25074)

<div class="topic-metadata">

**Author:** [@GoodPro](https://discourse.processing.org/u/GoodPro)\
**Replies:** 2\
**Last updated:** [November 1, 2020, 8:10am UTC](https://discourse.processing.org/t/how-to-move-the-color/25074 "2020-11-01T08:10:50Z")

</div>

Hi, everyone, I’m working on a project to make a car teaser with processing. I want to add a motion that moves the red LED light from left to right, and I want someone to help me. I tried randomizing the color of the st…

---

## [Problem converting canny algorithm to shader](https://discourse.processing.org/t/problem-converting-canny-algorithm-to-shader/25052)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 3:47pm UTC](https://discourse.processing.org/t/problem-converting-canny-algorithm-to-shader/25052 "2020-10-30T15:47:34Z")

</div>

I’m struggling to produce the same output in glsl. Here is the processing code. void getNeighboursMax3(int x, int y,float t) { boolean k = false; int p = x + y \* img.width; float red = red(sobel.pixels…

---

## [Problem with multiple inputs](https://discourse.processing.org/t/problem-with-multiple-inputs/25066)

<div class="topic-metadata">

**Author:** [@lepetoc](https://discourse.processing.org/u/lepetoc)\
**Replies:** 3\
**Last updated:** [October 31, 2020, 4:06pm UTC](https://discourse.processing.org/t/problem-with-multiple-inputs/25066 "2020-10-31T16:06:18Z")

</div>

Hello, i’m actually trying to code a litlle, i’m at the beginning and i’m trying to do the character movement, i searched some codes to handle multiple inputs, but i have a problem that i cannot understand : void keyPr…

---

## [Preview of flight path for 3d gravity sim](https://discourse.processing.org/t/preview-of-flight-path-for-3d-gravity-sim/25053)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 5:00pm UTC](https://discourse.processing.org/t/preview-of-flight-path-for-3d-gravity-sim/25053 "2020-10-30T17:00:27Z")

</div>

im trying to programm a 3d gravity simulation, but the preview of the flight path of a selected Planet isnt working. I have marked the section in the code where this preview is calculated. Thx Code: class Planet extend…

---

## [How do I connect serial over USB on Chromebook](https://discourse.processing.org/t/how-do-i-connect-serial-over-usb-on-chromebook/24884)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 4\
**Last updated:** [October 30, 2020, 3:16pm UTC](https://discourse.processing.org/t/how-do-i-connect-serial-over-usb-on-chromebook/24884 "2020-10-30T15:16:18Z")

</div>

I jumped down a new rabbit hole and I don’t know how to get out, ha,ha. Ok, I better be more specific. I have an Arduino that runs MultiWii2.3 and uses a protocol to send and receive data over serial. MultiWii comes w…

---

## [Does anyone know why I get this IndexOutOfBoundsExceptions error](https://discourse.processing.org/t/does-anyone-know-why-i-get-this-indexoutofboundsexceptions-error/25059)

<div class="topic-metadata">

**Author:** [@eltorres](https://discourse.processing.org/u/eltorres)\
**Replies:** 1\
**Last updated:** [October 30, 2020, 9:37pm UTC](https://discourse.processing.org/t/does-anyone-know-why-i-get-this-indexoutofboundsexceptions-error/25059 "2020-10-30T21:37:29Z")

</div>

PFont font; ArrayList\<walkers\> l = new ArrayList\<walkers\>(); ArrayList\<walkers\> i = new ArrayList\<walkers\>(); ArrayList\<walkers\> L = new ArrayList\<walkers\>(); int mongolicos = 10; int proteccion = 5; int infectado\_pro…

---

## [Need to obtain object name in constructor(Solution:Referencing)](https://discourse.processing.org/t/need-to-obtain-object-name-in-constructor-solution-referencing/25039)

<div class="topic-metadata">

**Author:** [@xX\_pokeman2003\_Xx](https://discourse.processing.org/u/xX_pokeman2003_Xx)\
**Replies:** 10\
**Last updated:** [October 30, 2020, 9:13pm UTC](https://discourse.processing.org/t/need-to-obtain-object-name-in-constructor-solution-referencing/25039 "2020-10-30T21:13:29Z")

</div>

For transparency sake, I left the original post here, but the solution for the actual question itself is pretty simple:You can’t. HOWEVER, there is a work around that lets you do something similar, by referencing the obj…

---

## [How to create shuffling effect when mouse pressed and choose one when mouse is released](https://discourse.processing.org/t/how-to-create-shuffling-effect-when-mouse-pressed-and-choose-one-when-mouse-is-released/25054)

<div class="topic-metadata">

**Author:** [@ljna227](https://discourse.processing.org/u/ljna227)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 5:50pm UTC](https://discourse.processing.org/t/how-to-create-shuffling-effect-when-mouse-pressed-and-choose-one-when-mouse-is-released/25054 "2020-10-30T17:50:45Z")

</div>

So I have an array of pictures and another array of names of the pictures. When the mouse is pressed, the names and pictures appear on the screen and shuffles. When the mouse is realeased, it stops at one image and corre…

---

## [LATEX in processing](https://discourse.processing.org/t/latex-in-processing/19691)

<div class="topic-metadata">

**Author:** [@shahroze](https://discourse.processing.org/u/shahroze)\
**Replies:** 14\
**Last updated:** [October 30, 2020, 1:54pm UTC](https://discourse.processing.org/t/latex-in-processing/19691 "2020-10-30T13:54:03Z")

</div>

how to use latex in processing for displaying equations. Is there a library for using latex or can i create it please give a detailed solution.

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

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