# Processing

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

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

**Page:** 175

---

## [Help with this Processing / Java syntax](https://discourse.processing.org/t/help-with-this-processing-java-syntax/24922)

<div class="topic-metadata">

**Author:** [@aaronm](https://discourse.processing.org/u/aaronm)\
**Replies:** 6\
**Last updated:** [October 26, 2020, 8:15pm UTC](https://discourse.processing.org/t/help-with-this-processing-java-syntax/24922 "2020-10-26T20:15:00Z")

</div>

Hello, I’m new to Processing and Java. I’m following along with the “Generative Design” book (first edition / Java / Processing version of the book) and I’ve come across some syntax which I’m unsure about. I’m not sure i…

---

## [OpenCV detection problem (solved)](https://discourse.processing.org/t/opencv-detection-problem-solved/24771)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 5:09pm UTC](https://discourse.processing.org/t/opencv-detection-problem-solved/24771 "2020-10-26T17:09:12Z")

</div>

So I’m doing a videogame where you use your face to move the gun and blink to shot. Mi first attempt was doing it like this: setup() { camara = new Capture( this, ancho, alto ); camara.start(); opencv = new Open…

---

## [Collisions on moving objects](https://discourse.processing.org/t/collisions-on-moving-objects/24912)

<div class="topic-metadata">

**Author:** [@MaxMax](https://discourse.processing.org/u/MaxMax)\
**Replies:** 15\
**Last updated:** [October 26, 2020, 4:31pm UTC](https://discourse.processing.org/t/collisions-on-moving-objects/24912 "2020-10-26T16:31:09Z")

</div>

Hello, I am new to processing and I have to work on a school project. For my project, I need objects that are falling down to collide with my own moving character. I have been searching quite a bit but I can’t find how t…

---

## [Pan Video audio](https://discourse.processing.org/t/pan-video-audio/24924)

<div class="topic-metadata">

**Author:** [@Mountainoftwigs](https://discourse.processing.org/u/Mountainoftwigs)\
**Replies:** 0\
**Last updated:** [October 26, 2020, 4:06pm UTC](https://discourse.processing.org/t/pan-video-audio/24924 "2020-10-26T16:06:26Z")

</div>

Hello, i trying to pan audio from a video using the standard processing video player. I want to be able to pan audio of a video based on the position of mouseX position. There is no video.pan option in the standard vid…

---

## [Overlay sketch on movie](https://discourse.processing.org/t/overlay-sketch-on-movie/23857)

<div class="topic-metadata">

**Author:** [@petermakesnoise](https://discourse.processing.org/u/petermakesnoise)\
**Replies:** 3\
**Last updated:** [October 26, 2020, 3:35pm UTC](https://discourse.processing.org/t/overlay-sketch-on-movie/23857 "2020-10-26T15:35:15Z")

</div>

Hi, I’m trying to overlay a drawing sketch on a movie. The sketch I’m using is “RandomWalkLevy” from Daniel Shiffman’s “The Nature of Code”, which calls two functions in the main draw() block. However, the trace of the …

---

## [Turn sound off on movie playback](https://discourse.processing.org/t/turn-sound-off-on-movie-playback/24920)

<div class="topic-metadata">

**Author:** [@petermakesnoise](https://discourse.processing.org/u/petermakesnoise)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 3:27pm UTC](https://discourse.processing.org/t/turn-sound-off-on-movie-playback/24920 "2020-10-26T15:27:51Z")

</div>

Hi, Is it possible to switch the sound off on movie playback in Processing? There doesn’t seem to be an argument for that in the documentation.

---

## [How can I place the dates of my data inside my ellipses?](https://discourse.processing.org/t/how-can-i-place-the-dates-of-my-data-inside-my-ellipses/24853)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 3\
**Last updated:** [October 26, 2020, 1:39pm UTC](https://discourse.processing.org/t/how-can-i-place-the-dates-of-my-data-inside-my-ellipses/24853 "2020-10-26T13:39:18Z")

</div>

Hello, I’m writing the code so the ellipses fall in to a grid according to the data of my steps. This code has them all bunched up, but it’s in the works so I’m leaving it as I write the data so that’s okay! So my questi…

---

## [Select only one shape](https://discourse.processing.org/t/select-only-one-shape/24646)

<div class="topic-metadata">

**Author:** [@karbon](https://discourse.processing.org/u/karbon)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 1:12pm UTC](https://discourse.processing.org/t/select-only-one-shape/24646 "2020-10-26T13:12:13Z")

</div>

My code needs some minor adjustments. I couldn’t find any tutorials to only select one shape. I have a 3 button system. The dragging element (still trying to figure out how to make it visible) is slightly under my desire…

---

## [Probabilistic based drawing working for single object, breaking for \>1 objects](https://discourse.processing.org/t/probabilistic-based-drawing-working-for-single-object-breaking-for-1-objects/24876)

<div class="topic-metadata">

**Author:** [@watershed](https://discourse.processing.org/u/watershed)\
**Replies:** 7\
**Last updated:** [October 26, 2020, 12:31pm UTC](https://discourse.processing.org/t/probabilistic-based-drawing-working-for-single-object-breaking-for-1-objects/24876 "2020-10-26T12:31:11Z")

</div>

Hi, I am trying to write a program to render a brick-wall like pattern. At a high level, fixed length paths will be created as the wall ‘grows,’ which new paths being added as the current ones become ‘filled’ with the p…

---

## [Processing Memory Game](https://discourse.processing.org/t/processing-memory-game/24855)

<div class="topic-metadata">

**Author:** [@Itekai](https://discourse.processing.org/u/Itekai)\
**Replies:** 2\
**Last updated:** [October 26, 2020, 12:08pm UTC](https://discourse.processing.org/t/processing-memory-game/24855 "2020-10-26T12:08:32Z")

</div>

Hi, I’m a little stuck in my code. I’m trying to shuffle my deck, but it’s taking ages, to draw them. I waited for like 15 min and there is still no results. Does anyone has an idea how I can fix this? :frowning:

---

## [Rotate Snake Head](https://discourse.processing.org/t/rotate-snake-head/24903)

<div class="topic-metadata">

**Author:** [@Mischief-Managed](https://discourse.processing.org/u/Mischief-Managed)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 10:05am UTC](https://discourse.processing.org/t/rotate-snake-head/24903 "2020-10-26T10:05:24Z")

</div>

Hello! I am making the game snake and I am trying to rotate the snakehead, but I am stuck. Should I use the rotate function or should I redraw each eye under each conditional? Right now I have a class that consists of bo…

---

## [Filling a curveVertex shape](https://discourse.processing.org/t/filling-a-curvevertex-shape/24871)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 6\
**Last updated:** [October 25, 2020, 8:01pm UTC](https://discourse.processing.org/t/filling-a-curvevertex-shape/24871 "2020-10-25T20:01:14Z")

</div>

Hoping to get some help on a problem that has been baffling me for hours. There are two parts to the problem which may or may not be connected. The code below will execute, but only after a length pause which I believe …

---

## [How to delay part of the code in draw()?](https://discourse.processing.org/t/how-to-delay-part-of-the-code-in-draw/24872)

<div class="topic-metadata">

**Author:** [@IpNeNaEcRe](https://discourse.processing.org/u/IpNeNaEcRe)\
**Replies:** 3\
**Last updated:** [October 25, 2020, 8:31pm UTC](https://discourse.processing.org/t/how-to-delay-part-of-the-code-in-draw/24872 "2020-10-25T20:31:35Z")

</div>

I code a polarline function and use a Slider class to control the number of the lines. When I use delay() to make the image change slowly, the Slider gets slowly and hard to drag. So how can I slowly the image changing r…

---

## [Understanding what Libraries can be added - advice/info resource recommendations](https://discourse.processing.org/t/understanding-what-libraries-can-be-added-advice-info-resource-recommendations/24888)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 1:35pm UTC](https://discourse.processing.org/t/understanding-what-libraries-can-be-added-advice-info-resource-recommendations/24888 "2020-10-25T13:35:52Z")

</div>

Hi all, I’m confused about whether it is possible/advisable to import normal Java libraries into Processing. (I’m not a Java person really (at the moment) so can’t draw on any common sense knowledge about whether this …

---

## [Hello. I am just a beginner. I want to know how to complete a jump](https://discourse.processing.org/t/hello-i-am-just-a-beginner-i-want-to-know-how-to-complete-a-jump/24754)

<div class="topic-metadata">

**Author:** [@mengtong](https://discourse.processing.org/u/mengtong)\
**Replies:** 13\
**Last updated:** [October 25, 2020, 6:45pm UTC](https://discourse.processing.org/t/hello-i-am-just-a-beginner-i-want-to-know-how-to-complete-a-jump/24754 "2020-10-25T18:45:49Z")

</div>

please format code with \</\> button \* homework policy \* asking questions My current code, when I press another keycode in the middle of a jump, it changes the direction of the jump, instead of waiting for a jump to end …

---

## [Can't use P3D, can't follow an example, on Linux](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874)

<div class="topic-metadata">

**Author:** [@raboytniksings](https://discourse.processing.org/u/raboytniksings)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 2:24pm UTC](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874 "2020-10-25T14:24:38Z")

</div>

I am new to Processing, I have a goal in mind and I have found some tutorials on youtube that I think I can use to reach my goal. Here’s the code I’d like to tweak: int amount = 300; int\[\] x = new int\[amount\]; int\[\] y …

---

## [Scatter Rectangles From the Center - No Overlap](https://discourse.processing.org/t/scatter-rectangles-from-the-center-no-overlap/24867)

<div class="topic-metadata">

**Author:** [@DonaldZhu](https://discourse.processing.org/u/DonaldZhu)\
**Replies:** 2\
**Last updated:** [October 24, 2020, 10:55pm UTC](https://discourse.processing.org/t/scatter-rectangles-from-the-center-no-overlap/24867 "2020-10-24T22:55:57Z")

</div>

Hi, I have seen codes that scatter circles all over the canvas without overlaps (https://www.youtube.com/watch?v=XATr\_jdh-44&feature=youtu.be), but if the total number of circles is low, then there’s a chance that the cl…

---

## [RXTX mismatch on chromebook /dev/ttyusb0](https://discourse.processing.org/t/rxtx-mismatch-on-chromebook-dev-ttyusb0/24335)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 5\
**Last updated:** [October 24, 2020, 5:25am UTC](https://discourse.processing.org/t/rxtx-mismatch-on-chromebook-dev-ttyusb0/24335 "2020-10-24T05:25:57Z")

</div>

I seem to get dumber with each new error I encounter. I’m using a chromebook running linux in a container and then I run the processing-3.5.3 IDE on that. For some time now, I have been trying to connect an Arduino run…

---

## [Mouse x y coordinates (ControlP5)](https://discourse.processing.org/t/mouse-x-y-coordinates-controlp5/24774)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 6\
**Last updated:** [October 24, 2020, 10:35pm UTC](https://discourse.processing.org/t/mouse-x-y-coordinates-controlp5/24774 "2020-10-24T22:35:52Z")

</div>

Thank you for reading this. The following is a summary of the current code. I have an array of circles that represent LEDs. I have radio buttons, using the P5 library, to select a colour. What I’d like to do is click …

---

## [Processing freezes with every sketch](https://discourse.processing.org/t/processing-freezes-with-every-sketch/24558)

<div class="topic-metadata">

**Author:** [@Ere](https://discourse.processing.org/u/Ere)\
**Replies:** 3\
**Last updated:** [October 24, 2020, 8:53pm UTC](https://discourse.processing.org/t/processing-freezes-with-every-sketch/24558 "2020-10-24T20:53:47Z")

</div>

Hi! I’m working on MacBook Air 2019 Mojave 10.14.6 and every sketch, even examples, freezes eventually, the computer is unresponsive and I have to shut down, sometimes the canvas blink. Other programs work fine. I’m not…

---

## [How to get full float number expression?](https://discourse.processing.org/t/how-to-get-full-float-number-expression/24859)

<div class="topic-metadata">

**Author:** [@Duhovny](https://discourse.processing.org/u/Duhovny)\
**Replies:** 1\
**Last updated:** [October 24, 2020, 4:50pm UTC](https://discourse.processing.org/t/how-to-get-full-float-number-expression/24859 "2020-10-24T16:50:07Z")

</div>

Hello, first post here from me! I am a beginner in real programming, had some visual scripting experience as a hobby. I have a general question about floating point representation. I tested some things and found that a…

---

## [Passing voice data to Processing](https://discourse.processing.org/t/passing-voice-data-to-processing/24640)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 23\
**Last updated:** [October 24, 2020, 5:56pm UTC](https://discourse.processing.org/t/passing-voice-data-to-processing/24640 "2020-10-24T17:56:48Z")

</div>

Hi, I am a beginner in using Processing. I would like to make a project where voice commands (given at a real time) by the microphone of the notebook/tablet/smartphone are passed to Processing to display events linked w…

---

## [2d array movement help](https://discourse.processing.org/t/2d-array-movement-help/24851)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.processing.org/u/Lilith)\
**Replies:** 4\
**Last updated:** [October 24, 2020, 8:36am UTC](https://discourse.processing.org/t/2d-array-movement-help/24851 "2020-10-24T08:36:03Z")

</div>

Hello guys, I’m trying to create a game using an 2d array to create a grid of (invisible) squares to put items in them. I’m having trouble moving the grid of squares down because I don’t want them to fit the screen. Le…

---

## [Posterize question-What does this statement mean(set the pixel at the current index to r,g,b.)?](https://discourse.processing.org/t/posterize-question-what-does-this-statement-mean-set-the-pixel-at-the-current-index-to-r-g-b/24862)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 3\
**Last updated:** [October 24, 2020, 1:40am UTC](https://discourse.processing.org/t/posterize-question-what-does-this-statement-mean-set-the-pixel-at-the-current-index-to-r-g-b/24862 "2020-10-24T01:40:14Z")

</div>

I am supposed to posterize an image with purple and green. This is the code I am working with. I am trying to set the pixel at the current index to r,g,b. What exactly does it mean to::: set the pixel at the current i…

---

## [VIDEO LIBRARY FOR MAC CATALINA (64 bit)?](https://discourse.processing.org/t/video-library-for-mac-catalina-64-bit/24849)

<div class="topic-metadata">

**Author:** [@ggort](https://discourse.processing.org/u/ggort)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 5:31pm UTC](https://discourse.processing.org/t/video-library-for-mac-catalina-64-bit/24849 "2020-10-23T17:31:33Z")

</div>

Has anyone found a work around for video library for Mac Catalina or a new library for 64 bit? Everything I see, and everything I’ve tried suggested in the forum, doesn’t recognize webcam/external cam/or onboard cam. not…

---

## [Need help coding with coding SNAKE](https://discourse.processing.org/t/need-help-coding-with-coding-snake/24848)

<div class="topic-metadata">

**Author:** [@JohnnyTesto](https://discourse.processing.org/u/JohnnyTesto)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 12:31pm UTC](https://discourse.processing.org/t/need-help-coding-with-coding-snake/24848 "2020-10-23T12:31:51Z")

</div>

Hello, I really need help. I have to code snake but I have no clue anymore what to do. I currently have the snake coded and an apple which spawns at the start randomly. I need help in the following: Snake should be ab…

---

## [OpenCV detection problem](https://discourse.processing.org/t/opencv-detection-problem/24831)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 12:27pm UTC](https://discourse.processing.org/t/opencv-detection-problem/24831 "2020-10-23T12:27:07Z")

</div>

So I’m doing a videogame where you use your face to move the gun and blink to shot. Mi first attempt was doing it like this: setup() { camara = new Capture( this, ancho, alto ); camara.start(); opencv = new Open…

---

## [Spawn one sprite when another sprite exits](https://discourse.processing.org/t/spawn-one-sprite-when-another-sprite-exits/24811)

<div class="topic-metadata">

**Author:** [@jxjohn](https://discourse.processing.org/u/jxjohn)\
**Replies:** 14\
**Last updated:** [October 23, 2020, 12:19pm UTC](https://discourse.processing.org/t/spawn-one-sprite-when-another-sprite-exits/24811 "2020-10-23T12:19:25Z")

</div>

Hi I’m trying to say that whenever the enemy sprite leaves the screen a mini sprite will be spawned. I already managed to ensure that mini sprites are spawn when enemy leaves the screen but it spawns all eight mini sprit…

---

## [Boolean / if statement help](https://discourse.processing.org/t/boolean-if-statement-help/24809)

<div class="topic-metadata">

**Author:** [@kimchi](https://discourse.processing.org/u/kimchi)\
**Replies:** 9\
**Last updated:** [October 23, 2020, 8:13am UTC](https://discourse.processing.org/t/boolean-if-statement-help/24809 "2020-10-23T08:13:20Z")

</div>

Hi there, I’m trying to make a program that has a “fly” that jumps around the 4 dots of the clock. I have to use if statements in order to make the fly to move and I think I have a good idea of how to do it, but now I’m …

---

## [Multplying each element in an array](https://discourse.processing.org/t/multplying-each-element-in-an-array/24827)

<div class="topic-metadata">

**Author:** [@Mischief-Managed](https://discourse.processing.org/u/Mischief-Managed)\
**Replies:** 7\
**Last updated:** [October 23, 2020, 1:13am UTC](https://discourse.processing.org/t/multplying-each-element-in-an-array/24827 "2020-10-23T01:13:44Z")

</div>

Hi, I wanted to make an array where each element is simply being multiplied by 2. Here is what I have so far. Help would be greatly appreciated int expo(int\[\] array\[\]){ int mult = 2; for (int i=0;i\<array.length;i++)…

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

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