# Processing

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

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

**Page:** 234

---

## [Sound in Processing with Jackd on Linux Ubuntu](https://discourse.processing.org/t/sound-in-processing-with-jackd-on-linux-ubuntu/18139)

<div class="topic-metadata">

**Author:** [@jeanFrancoisHicter](https://discourse.processing.org/u/jeanFrancoisHicter)\
**Replies:** 8\
**Last updated:** [February 26, 2020, 6:20pm UTC](https://discourse.processing.org/t/sound-in-processing-with-jackd-on-linux-ubuntu/18139 "2020-02-26T18:20:34Z")

</div>

Hey, folks! I use Processing with sound library. The sound is heavily chopped – as I make dramatic LFO treatments – with the native Pulseaudio server, so I try to use Jackd to see if it is better… But I have no sound …

---

## [G4P TOOL and code](https://discourse.processing.org/t/g4p-tool-and-code/18095)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 6:03pm UTC](https://discourse.processing.org/t/g4p-tool-and-code/18095 "2020-02-26T18:03:36Z")

</div>

I’ve created a window that has a button that opens a 2nd window. The code shows an orange underlining some worries but I do not understand what is missing. The code runs normally.

---

## [Differences between renderers](https://discourse.processing.org/t/differences-between-renderers/18141)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 2:32pm UTC](https://discourse.processing.org/t/differences-between-renderers/18141 "2020-02-26T14:32:22Z")

</div>

Other than textsize what other differences should be expected from renderers and is there a way to adjust this. void settings(){ //size(W,H,JAVA2D); if(Terrain3d){ size(W,H,P3D); }else{ size(W,H,FX2D); /…

---

## [Generative photo collage](https://discourse.processing.org/t/generative-photo-collage/18129)

<div class="topic-metadata">

**Author:** [@jeaan](https://discourse.processing.org/u/jeaan)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 2:17pm UTC](https://discourse.processing.org/t/generative-photo-collage/18129 "2020-02-26T14:17:18Z")

</div>

I’m attempting to create a visual collage with the same effect as this one: Multiplicity + Masking + Cropping + Size Variation + Random Placement are the key factors I’d like to integrate.I’m new to Processing so I’m …

---

## [Random walker through points](https://discourse.processing.org/t/random-walker-through-points/18040)

<div class="topic-metadata">

**Author:** [@Giyomu](https://discourse.processing.org/u/Giyomu)\
**Replies:** 15\
**Last updated:** [February 26, 2020, 10:50am UTC](https://discourse.processing.org/t/random-walker-through-points/18040 "2020-02-26T10:50:30Z")

</div>

Hi there, I am working on a random walker through points, and I am struggling to get the next closest point in the walker class. The idea is to have one or few random walkers going from point to point until there is no…

---

## [Why won't this run? (keyPressed)](https://discourse.processing.org/t/why-wont-this-run-keypressed/18082)

<div class="topic-metadata">

**Author:** [@ebec4](https://discourse.processing.org/u/ebec4)\
**Replies:** 25\
**Last updated:** [February 26, 2020, 1:46pm UTC](https://discourse.processing.org/t/why-wont-this-run-keypressed/18082 "2020-02-26T13:46:11Z")

</div>

void setup() { frameRate(10); size(500, 500); } void draw() { background(200); if (keyPressed) { if (key == CODED) { if (keyCode == UP) { color c20=color(108,52,131); //PUR…

---

## [How to make code with other editors also for Processing!](https://discourse.processing.org/t/how-to-make-code-with-other-editors-also-for-processing/17938)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 9:41am UTC](https://discourse.processing.org/t/how-to-make-code-with-other-editors-also-for-processing/17938 "2020-02-26T09:41:01Z")

</div>

Execuse me, but Processing editor is not good choice for creating bigger projects, like big games, big programs etc. I hate some thinks on this Processing basic editor, there is: All the files, wich haves code, must be…

---

## [Help with java library (AI for Games)](https://discourse.processing.org/t/help-with-java-library-ai-for-games/18039)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 9:22am UTC](https://discourse.processing.org/t/help-with-java-library-ai-for-games/18039 "2020-02-26T09:22:38Z")

</div>

I found an ai library in java & thought should try it. I’m doing the tutorial, but get an error Idk how to fix. this is in main import game2dai.\*; import game2dai.entities.\*; import game2dai.entityshapes.\*; import game…

---

## [Varying scale at frameCount](https://discourse.processing.org/t/varying-scale-at-framecount/17896)

<div class="topic-metadata">

**Author:** [@ChrisHaz3ll](https://discourse.processing.org/u/ChrisHaz3ll)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 8:41am UTC](https://discourse.processing.org/t/varying-scale-at-framecount/17896 "2020-02-26T08:41:30Z")

</div>

I have an animation that graduates between colours at intervals… I’m also exploring how to adjust the scale at varying points along frameCount… I’ve tried tinkering with scale at different points (both within the for loo…

---

## [Drawing hexagon grid radially from center](https://discourse.processing.org/t/drawing-hexagon-grid-radially-from-center/17874)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 12:54am UTC](https://discourse.processing.org/t/drawing-hexagon-grid-radially-from-center/17874 "2020-02-26T00:54:58Z")

</div>

Is there a single formula I can use for dist that will bring these red hexagons to the right place? dist = unitDiameter \* 0.75 works for ringNum\[2\], then the more distant rings start getting too close. PVector figureCe…

---

## [Opening live camera feed via button press](https://discourse.processing.org/t/opening-live-camera-feed-via-button-press/18084)

<div class="topic-metadata">

**Author:** [@Dubs](https://discourse.processing.org/u/Dubs)\
**Replies:** 1\
**Last updated:** [February 25, 2020, 11:49pm UTC](https://discourse.processing.org/t/opening-live-camera-feed-via-button-press/18084 "2020-02-25T23:49:48Z")

</div>

Trying to have a live web-cam feed open when a specific button is pressed… there will be two buttons and I’d need two different video feeds to open (they will have different mods to the facial recognition aspect) Very n…

---

## [Beginner: help with classes and game](https://discourse.processing.org/t/beginner-help-with-classes-and-game/18074)

<div class="topic-metadata">

**Author:** [@amprocessing](https://discourse.processing.org/u/amprocessing)\
**Replies:** 7\
**Last updated:** [February 25, 2020, 11:01pm UTC](https://discourse.processing.org/t/beginner-help-with-classes-and-game/18074 "2020-02-25T23:01:58Z")

</div>

So I am making a small maze game. I want to add objects that when the ball touches it, they die. I have been practicing on another sketch. I’ve used classes for the aliens and the ball, as I thought this would be the bes…

---

## [Weird rectangle](https://discourse.processing.org/t/weird-rectangle/18073)

<div class="topic-metadata">

**Author:** [@bugotc14](https://discourse.processing.org/u/bugotc14)\
**Replies:** 6\
**Last updated:** [February 25, 2020, 8:40pm UTC](https://discourse.processing.org/t/weird-rectangle/18073 "2020-02-25T20:40:01Z")

</div>

run the code and see, IDK why but the rectangle position is so weird, I tried to make a button and make it in the middle but for some reason, it won’t work int rectSizeX = 300,rectSizeY = 250; // X and Y size of re…

---

## [Applying bounds to a force directed graph](https://discourse.processing.org/t/applying-bounds-to-a-force-directed-graph/18045)

<div class="topic-metadata">

**Author:** [@dandotdot](https://discourse.processing.org/u/dandotdot)\
**Replies:** 4\
**Last updated:** [February 25, 2020, 9:47am UTC](https://discourse.processing.org/t/applying-bounds-to-a-force-directed-graph/18045 "2020-02-25T09:47:43Z")

</div>

Hi there, I have a sketch that uses a force directed graph code example I found, but there’s nothing in it to stop clusters of nodes drifting off-screen due to the repulsive force, and the fact that clusters are not alw…

---

## [Processing 3.5.4 p5js error](https://discourse.processing.org/t/processing-3-5-4-p5js-error/17351)

<div class="topic-metadata">

**Author:** [@marzinp](https://discourse.processing.org/u/marzinp)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 7:52am UTC](https://discourse.processing.org/t/processing-3-5-4-p5js-error/17351 "2020-02-25T07:52:55Z")

</div>

Hi, since I installed Processing 3.5.4 and updated p5js mode, I can’t load any p5js sketch. Error: “Failed to open http://127.0.0.1:8524 Aucune application n’est associée au fichier spécifié pour cette opération.” Pro…

---

## [Sketch folder dissapeared](https://discourse.processing.org/t/sketch-folder-dissapeared/17805)

<div class="topic-metadata">

**Author:** [@gomiza](https://discourse.processing.org/u/gomiza)\
**Replies:** 5\
**Last updated:** [February 25, 2020, 6:42am UTC](https://discourse.processing.org/t/sketch-folder-dissapeared/17805 "2020-02-25T06:42:38Z")

</div>

I accidentally moved the Processing folder from the Documents folder to another location and Processing stopped launching: every time I launch Processing, I get an error message that says “Sketch folder disappeared”, and…

---

## [Monitoring process of ffmpeg in processing](https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 7\
**Last updated:** [February 25, 2020, 5:32am UTC](https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950 "2020-02-25T05:32:10Z")

</div>

Hi all, I’m using ffmpeg to output audio tracks from videos using the example by Hamoid found here but slightly modified (code below). What I would like to do is to pipe the progress from ffmpeg back into processing so…

---

## [Why can't i color this bubble?](https://discourse.processing.org/t/why-cant-i-color-this-bubble/17915)

<div class="topic-metadata">

**Author:** [@Rai](https://discourse.processing.org/u/Rai)\
**Replies:** 36\
**Last updated:** [February 24, 2020, 9:13pm UTC](https://discourse.processing.org/t/why-cant-i-color-this-bubble/17915 "2020-02-24T21:13:34Z")

</div>

please help me why can’t i color this bubble ? Bubble b1; Bubble b2; void setup() { size(640, 360); b1 = new Bubble(200, 360, 60, color(255, 100, 0)); b2 = new Bubble(400, 360, 60, color(0, 100, 200)); } void dr…

---

## [Drawing connected lines with keystroke commands](https://discourse.processing.org/t/drawing-connected-lines-with-keystroke-commands/17947)

<div class="topic-metadata">

**Author:** [@MichelO](https://discourse.processing.org/u/MichelO)\
**Replies:** 8\
**Last updated:** [February 24, 2020, 2:09pm UTC](https://discourse.processing.org/t/drawing-connected-lines-with-keystroke-commands/17947 "2020-02-24T14:09:53Z")

</div>

I have been trying to write a code that will allow me to press numbers keys and draw lines of that length, each connected to the one before. Ideally, the image would rotate 90 degrees between each line segment. In other …

---

## [How to find location of random object](https://discourse.processing.org/t/how-to-find-location-of-random-object/18061)

<div class="topic-metadata">

**Author:** [@NotConsumable](https://discourse.processing.org/u/NotConsumable)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 11:57am UTC](https://discourse.processing.org/t/how-to-find-location-of-random-object/18061 "2020-02-24T11:57:01Z")

</div>

so I am trying to make a hot and cold game and i have a randomly generated ellipse and i was wondering how to find the location of the ellipse in relation to my mouse so whenever i click it shows me how far away i am fro…

---

## [Why can I not draw in the serialEvent() function?](https://discourse.processing.org/t/why-can-i-not-draw-in-the-serialevent-function/18032)

<div class="topic-metadata">

**Author:** [@tophee](https://discourse.processing.org/u/tophee)\
**Replies:** 6\
**Last updated:** [February 24, 2020, 10:09am UTC](https://discourse.processing.org/t/why-can-i-not-draw-in-the-serialevent-function/18032 "2020-02-24T10:09:55Z")

</div>

When I put the text("Bla", 30,30) in the loop, it works, i.e. it prints “Bla” on my Canvas. void Draw() { text("Bla", 30,30); } But when I but the same code into the serialEvent() function and trigger it by receiving…

---

## [Music player now rewinds the whole song](https://discourse.processing.org/t/music-player-now-rewinds-the-whole-song/18036)

<div class="topic-metadata">

**Author:** [@Robb](https://discourse.processing.org/u/Robb)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 5:07am UTC](https://discourse.processing.org/t/music-player-now-rewinds-the-whole-song/18036 "2020-02-24T05:07:56Z")

</div>

I’m new to Processing and programming overall. I’ve been making this code as part of my mid-term assigment. It consists on making a music player with the help of the Minim library. I cannot write code I haven’t been toug…

---

## [How to get a .pdf export in correct dimensions?](https://discourse.processing.org/t/how-to-get-a-pdf-export-in-correct-dimensions/14094)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 13\
**Last updated:** [February 23, 2020, 6:12am UTC](https://discourse.processing.org/t/how-to-get-a-pdf-export-in-correct-dimensions/14094 "2020-02-23T06:12:56Z")

</div>

Hello! Intro: This is my very first (of many) post in this forum and it is about the issue that made me find this community. A couple of years back I found a “digitizer” project online. (measuring arm) I bought the…

---

## [The dry sound of delay function in Sound library is not output](https://discourse.processing.org/t/the-dry-sound-of-delay-function-in-sound-library-is-not-output/17999)

<div class="topic-metadata">

**Author:** [@AETA](https://discourse.processing.org/u/AETA)\
**Replies:** 1\
**Last updated:** [February 22, 2020, 7:00am UTC](https://discourse.processing.org/t/the-dry-sound-of-delay-function-in-sound-library-is-not-output/17999 "2020-02-22T07:00:40Z")

</div>

I tested delay function in Sound library with the simple sequencer. You can control start and stop by space bar. When delaySw = false, it goes well. But, delaySw = true, the dry sound is not output. In addition, I wou…

---

## [Repeating shapes](https://discourse.processing.org/t/repeating-shapes/18033)

<div class="topic-metadata">

**Author:** [@Mythikal](https://discourse.processing.org/u/Mythikal)\
**Replies:** 1\
**Last updated:** [February 23, 2020, 7:03am UTC](https://discourse.processing.org/t/repeating-shapes/18033 "2020-02-23T07:03:37Z")

</div>

I have a player I want to control with the arrow keys. I can’t figure out for the life of me how to stop the objects the player is made out of (an ellipse and rectangle) from repeating after moving. I’m sure the solutio…

---

## [Calculating the impact of a collision in box2d for Processing](https://discourse.processing.org/t/calculating-the-impact-of-a-collision-in-box2d-for-processing/17835)

<div class="topic-metadata">

**Author:** [@ilinx](https://discourse.processing.org/u/ilinx)\
**Replies:** 3\
**Last updated:** [February 23, 2020, 6:10am UTC](https://discourse.processing.org/t/calculating-the-impact-of-a-collision-in-box2d-for-processing/17835 "2020-02-23T06:10:24Z")

</div>

Hi all, I’ve been searching around the internet for a while now, but couldn’t find a solution to the following problem: In box2d for Processing, I’d like to calculate the impact of a contact in order to modify certain …

---

## [Processing 3.5.3 - G4P library - print variable to 2nd window](https://discourse.processing.org/t/processing-3-5-3-g4p-library-print-variable-to-2nd-window/17968)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 4\
**Last updated:** [February 21, 2020, 5:47pm UTC](https://discourse.processing.org/t/processing-3-5-3-g4p-library-print-variable-to-2nd-window/17968 "2020-02-21T17:47:24Z")

</div>

I’m using the g4p\_controls library. Pressing a button opens a second window. In the 2nd window I have placed some labels that correspond to the values of a sensor. I’m trying to display the sensor value next to the label…

---

## [Executing shell commands](https://discourse.processing.org/t/executing-shell-commands/18000)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 2\
**Last updated:** [February 23, 2020, 12:54am UTC](https://discourse.processing.org/t/executing-shell-commands/18000 "2020-02-23T00:54:38Z")

</div>

I’m trying to run an executable file as follows: void setup() { noLoop(); } void draw() { launch("/usr/bin/gpsbabel"); launch("/usr/bin/gpsbabel -i gpx -f /home/phil/Downloads/test3.gpx -o garmin -F /dev/ttyUSB0")…

---

## [Check boolean method in all instances for true/false](https://discourse.processing.org/t/check-boolean-method-in-all-instances-for-true-false/18022)

<div class="topic-metadata">

**Author:** [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Replies:** 12\
**Last updated:** [February 22, 2020, 11:01pm UTC](https://discourse.processing.org/t/check-boolean-method-in-all-instances-for-true-false/18022 "2020-02-22T23:01:24Z")

</div>

This is not scalable, what is the correct way to go about checking to see if the boolean method in all instances are false, rather than && each instance? for (Button b : buttons) { b.render(); if (b.isHovering(…

---

## [Glsl background difference](https://discourse.processing.org/t/glsl-background-difference/18024)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 0\
**Last updated:** [February 22, 2020, 8:05pm UTC](https://discourse.processing.org/t/glsl-background-difference/18024 "2020-02-22T20:05:10Z")

</div>

hi to all! i’m tryng to subtract the background ov a video stream processing code import processing.video.\*; Capture video; PShader shader; PGraphics pg; void setup() { size(1280, 720, P2D); shader = loadShade…

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

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