# Processing

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

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

**Page:** 142

---

## [How to add color for 3d terrain](https://discourse.processing.org/t/how-to-add-color-for-3d-terrain/28548)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 37\
**Last updated:** [March 27, 2021, 8:33am UTC](https://discourse.processing.org/t/how-to-add-color-for-3d-terrain/28548 "2021-03-27T08:33:59Z")

</div>

hi i need help how to make colors like this ?? thanks in advance

---

## [saveFrame function using background image and p3d](https://discourse.processing.org/t/saveframe-function-using-background-image-and-p3d/28889)

<div class="topic-metadata">

**Author:** [@kiernan](https://discourse.processing.org/u/kiernan)\
**Replies:** 5\
**Last updated:** [March 27, 2021, 2:45am UTC](https://discourse.processing.org/t/saveframe-function-using-background-image-and-p3d/28889 "2021-03-27T02:45:04Z")

</div>

I am having trouble using saveFrame to record a sketch which uses p3d with a background image. When I use saveFrame without the background image everything is captured fine and shows the sketch but when I put the backgro…

---

## [Ball bounces off the movable bats (extended PONG version)](https://discourse.processing.org/t/ball-bounces-off-the-movable-bats-extended-pong-version/28882)

<div class="topic-metadata">

**Author:** [@programmer](https://discourse.processing.org/u/programmer)\
**Replies:** 1\
**Last updated:** [March 26, 2021, 7:21pm UTC](https://discourse.processing.org/t/ball-bounces-off-the-movable-bats-extended-pong-version/28882 "2021-03-26T19:21:10Z")

</div>

I am creating an advanced version of the game Pong, where the bats can also move in the x-direction. I am trying to write a code to make the ball bounce off the bats on all four sides of the two bats. I was just able to …

---

## [Video library is 700 Mb in size](https://discourse.processing.org/t/video-library-is-700-mb-in-size/28878)

<div class="topic-metadata">

**Author:** [@onimatrix](https://discourse.processing.org/u/onimatrix)\
**Replies:** 3\
**Last updated:** [March 26, 2021, 6:36pm UTC](https://discourse.processing.org/t/video-library-is-700-mb-in-size/28878 "2021-03-26T18:36:17Z")

</div>

Hello comunity! I’ve just found out that the Video library is 700 Mb in size, as GStreamer has tons of dynamic libraries, seemingly for every codec under the sun. My exported application went from 76 Mb (embedding Java…

---

## [selectInput cannot find symbol](https://discourse.processing.org/t/selectinput-cannot-find-symbol/28820)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 6\
**Last updated:** [March 26, 2021, 3:21pm UTC](https://discourse.processing.org/t/selectinput-cannot-find-symbol/28820 "2021-03-26T15:21:47Z")

</div>

Hi, wandering if anyone can help please. I’m struggling to build my latest library as the fileInput class is causing errors. eclipse terminates the build process with the error error: cannot find symbol \[javac\] …

---

## [How can i load image files in processing without crashing the build](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 5\
**Last updated:** [March 26, 2021, 1:37pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870 "2021-03-26T13:37:07Z")

</div>

i have a processing sketch that loads svgfiles with the loadShape function from a folder within the source folder called graphics. when i build it as an executable app, i have to remove all the loadShape calls and refere…

---

## [Is my fractal optimized? Could it animate?](https://discourse.processing.org/t/is-my-fractal-optimized-could-it-animate/28845)

<div class="topic-metadata">

**Author:** [@rodsn](https://discourse.processing.org/u/rodsn)\
**Replies:** 3\
**Last updated:** [March 26, 2021, 12:44pm UTC](https://discourse.processing.org/t/is-my-fractal-optimized-could-it-animate/28845 "2021-03-26T12:44:33Z")

</div>

Hello everyone, hope you are doing fine. I am trying to implement a recursive system. The recursion is working properly, my questions are: is this optimal? Am i doing this in a efficient way? Can i implement some kind o…

---

## [Random question with song](https://discourse.processing.org/t/random-question-with-song/28853)

<div class="topic-metadata">

**Author:** [@Ellen](https://discourse.processing.org/u/Ellen)\
**Replies:** 1\
**Last updated:** [March 26, 2021, 9:29am UTC](https://discourse.processing.org/t/random-question-with-song/28853 "2021-03-26T09:29:24Z")

</div>

I’m stuck that I cannot make a song match a random question. Can anybody help, please? import processing.sound.\*; SoundFile file; String\[\] Texts = { "Question A", "Question B", "Question C", "Question D", …

---

## [I can't make sound effect on processing (Quiz)](https://discourse.processing.org/t/i-cant-make-sound-effect-on-processing-quiz/28848)

<div class="topic-metadata">

**Author:** [@Ellen](https://discourse.processing.org/u/Ellen)\
**Replies:** 16\
**Last updated:** [March 26, 2021, 9:15am UTC](https://discourse.processing.org/t/i-cant-make-sound-effect-on-processing-quiz/28848 "2021-03-26T09:15:20Z")

</div>

I want to make a function for. if I click the correct answer, that will make a sound I tried it, but it isn’t working I don’t know what is wrong… can anybody help me? import processing.sound.\*; SoundFile file; Stri…

---

## [Anyone can help me with scaling?](https://discourse.processing.org/t/anyone-can-help-me-with-scaling/28673)

<div class="topic-metadata">

**Author:** [@olia](https://discourse.processing.org/u/olia)\
**Replies:** 3\
**Last updated:** [March 25, 2021, 10:23pm UTC](https://discourse.processing.org/t/anyone-can-help-me-with-scaling/28673 "2021-03-25T22:23:38Z")

</div>

Sorry my eng not that good. So i created pattern with my own function and than used loop (i think u dont understand so just try my code) float a=0.0; int x = -20; int y = -20; int rad = 50; int dod = 50; void setup() {…

---

## [Get random letters and put into a string](https://discourse.processing.org/t/get-random-letters-and-put-into-a-string/28585)

<div class="topic-metadata">

**Author:** [@resboy2445](https://discourse.processing.org/u/resboy2445)\
**Replies:** 9\
**Last updated:** [March 25, 2021, 10:14am UTC](https://discourse.processing.org/t/get-random-letters-and-put-into-a-string/28585 "2021-03-25T10:14:48Z")

</div>

how do we generate random letters in processing, and store them in a string? do we use something like the random() function and the ascii number? i’m not even sure how to do that.

---

## [Moving multiple components left to right](https://discourse.processing.org/t/moving-multiple-components-left-to-right/28825)

<div class="topic-metadata">

**Author:** [@hwahwa](https://discourse.processing.org/u/hwahwa)\
**Replies:** 1\
**Last updated:** [March 25, 2021, 9:44am UTC](https://discourse.processing.org/t/moving-multiple-components-left-to-right/28825 "2021-03-25T09:44:57Z")

</div>

Hello, I’ve written some code that moves a rectangle and triangle (an arrow) to move left to right but I’m positive that there is a cleaner and more efficient way to do this. My code for this was a bit unorganised and I …

---

## [Making a line break instruction in a string work even though it's fetched from a csv file](https://discourse.processing.org/t/making-a-line-break-instruction-in-a-string-work-even-though-its-fetched-from-a-csv-file/28812)

<div class="topic-metadata">

**Author:** [@Bobolink](https://discourse.processing.org/u/Bobolink)\
**Replies:** 5\
**Last updated:** [March 25, 2021, 8:23am UTC](https://discourse.processing.org/t/making-a-line-break-instruction-in-a-string-work-even-though-its-fetched-from-a-csv-file/28812 "2021-03-25T08:23:44Z")

</div>

I’m trying to print a string with a line break in it, where this string is fetched from a csv file. When running the code below, typing in the string with the line break myself, everything works as expected: import pro…

---

## [Sprite code not working, please help](https://discourse.processing.org/t/sprite-code-not-working-please-help/28817)

<div class="topic-metadata">

**Author:** [@DrAwesomeSauce2000](https://discourse.processing.org/u/DrAwesomeSauce2000)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 1:39am UTC](https://discourse.processing.org/t/sprite-code-not-working-please-help/28817 "2021-03-25T01:39:04Z")

</div>

import sprites.utils.; import sprites.maths.; import sprites.\*; Sprite sonic; StopWatch sw= new StopWatch (); void setup() { size(1280, 720); sonic = new Sprite (this, “pngjoy.com\_sonic-sprite-modern-sonic-advance…

---

## [How to make my images spin around an ellipse in P3D?](https://discourse.processing.org/t/how-to-make-my-images-spin-around-an-ellipse-in-p3d/28745)

<div class="topic-metadata">

**Author:** [@Rindoom](https://discourse.processing.org/u/Rindoom)\
**Replies:** 5\
**Last updated:** [March 24, 2021, 11:14pm UTC](https://discourse.processing.org/t/how-to-make-my-images-spin-around-an-ellipse-in-p3d/28745 "2021-03-24T23:14:38Z")

</div>

Hey, guys. I recently learned about the peasycam library, thus how convenient and handy is, when it comes to mouse-driven camera rotation. So I tried to use the library in my recent project. The idea was to create a ring…

---

## [True or False game / If mousepressed correct answer, show next question randomly](https://discourse.processing.org/t/true-or-false-game-if-mousepressed-correct-answer-show-next-question-randomly/28808)

<div class="topic-metadata">

**Author:** [@Ellen](https://discourse.processing.org/u/Ellen)\
**Replies:** 2\
**Last updated:** [March 24, 2021, 10:33pm UTC](https://discourse.processing.org/t/true-or-false-game-if-mousepressed-correct-answer-show-next-question-randomly/28808 "2021-03-24T22:33:55Z")

</div>

Hi guys, I’d like to make a quiz game. basically, the question will show randomly and if there are 2 buttons, one is wrong and one has to be correct. And also If the user clicked correct answer, I want the question wi…

---

## [Could not connect to Processing Server](https://discourse.processing.org/t/could-not-connect-to-processing-server/28748)

<div class="topic-metadata">

**Author:** [@QQQ](https://discourse.processing.org/u/QQQ)\
**Replies:** 1\
**Last updated:** [March 24, 2021, 10:02pm UTC](https://discourse.processing.org/t/could-not-connect-to-processing-server/28748 "2021-03-24T22:02:25Z")

</div>

getting message - could not connect to processing server. Contributions cannot be installed or updated without internet connection. My internet is connected and I have tried disabling windows defender - nothing works. I…

---

## [Make timer state ON and timer state OFF Android to Arduino via bluetooth](https://discourse.processing.org/t/make-timer-state-on-and-timer-state-off-android-to-arduino-via-bluetooth/28668)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 17\
**Last updated:** [March 23, 2021, 11:08pm UTC](https://discourse.processing.org/t/make-timer-state-on-and-timer-state-off-android-to-arduino-via-bluetooth/28668 "2021-03-23T23:08:43Z")

</div>

Who help me code example for: Make timer state ON and timer state OFF Android to Arduino via bluetooth

---

## [Creating Circular Spectrogram](https://discourse.processing.org/t/creating-circular-spectrogram/6502)

<div class="topic-metadata">

**Author:** [@formm\_666](https://discourse.processing.org/u/formm_666)\
**Replies:** 6\
**Last updated:** [March 24, 2021, 5:22pm UTC](https://discourse.processing.org/t/creating-circular-spectrogram/6502 "2021-03-24T17:22:49Z")

</div>

can anyone help point me in a direction on how this can be done Example: https://vimeo.com/27135957 Thanks in advance

---

## [Disable font antialiasing](https://discourse.processing.org/t/disable-font-antialiasing/28792)

<div class="topic-metadata">

**Author:** [@yeppii](https://discourse.processing.org/u/yeppii)\
**Replies:** 1\
**Last updated:** [March 24, 2021, 5:09pm UTC](https://discourse.processing.org/t/disable-font-antialiasing/28792 "2021-03-24T17:09:31Z")

</div>

I’m making a game using processing 3. I use a pixel art font. But when I set the font size to large values like 60 and 100 the font becomes blurry. I know this is because of anti-aliasing, but how do I disable it? I have…

---

## [Mask from polygon](https://discourse.processing.org/t/mask-from-polygon/28797)

<div class="topic-metadata">

**Author:** [@dave307](https://discourse.processing.org/u/dave307)\
**Replies:** 1\
**Last updated:** [March 24, 2021, 4:56pm UTC](https://discourse.processing.org/t/mask-from-polygon/28797 "2021-03-24T16:56:25Z")

</div>

is it possible to create a mask from polygons made up of vertexes in a way that when it draws a new shape it will not draw over the mask, which I guess would be inverted from how a mask would normally be?

---

## [Ant won't recognize my javaVM (OS X Mojave)](https://discourse.processing.org/t/ant-wont-recognize-my-javavm-os-x-mojave/28785)

<div class="topic-metadata">

**Author:** [@crimsonwombat](https://discourse.processing.org/u/crimsonwombat)\
**Replies:** 1\
**Last updated:** [March 24, 2021, 10:49am UTC](https://discourse.processing.org/t/ant-wont-recognize-my-javavm-os-x-mojave/28785 "2021-03-24T10:49:15Z")

</div>

I’m trying to get the Processing source cloned to my OS X Mojave machine (to see if I can solve my Processing in BlueJ issues) and Ant keeps claiming that I have an incompatible version of the VM (15.0.1) however, when I…

---

## [How to send an OSC message from Pure data to Processing?](https://discourse.processing.org/t/how-to-send-an-osc-message-from-pure-data-to-processing/28782)

<div class="topic-metadata">

**Author:** [@romulovieira-me](https://discourse.processing.org/u/romulovieira-me)\
**Replies:** 1\
**Last updated:** [March 24, 2021, 6:08am UTC](https://discourse.processing.org/t/how-to-send-an-osc-message-from-pure-data-to-processing/28782 "2021-03-24T06:08:46Z")

</div>

Hello guys I want to send a word (string) to a server in Processing. How do I do this in Pure Data, using the OSC protocol? This is the code in processing: Can you give me a tip? Thanks

---

## [loadShape crashes sketch but only in the build](https://discourse.processing.org/t/loadshape-crashes-sketch-but-only-in-the-build/28778)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 11\
**Last updated:** [March 24, 2021, 2:34am UTC](https://discourse.processing.org/t/loadshape-crashes-sketch-but-only-in-the-build/28778 "2021-03-24T02:34:33Z")

</div>

this is a follow up to this problem When i build this application it just makes a blank grey window so i have identified the problem! for some reason it doesn’t like when i load svg shapes from a graphics folder. here i…

---

## [Topographical map](https://discourse.processing.org/t/topographical-map/13302)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 15\
**Last updated:** [March 23, 2021, 9:51pm UTC](https://discourse.processing.org/t/topographical-map/13302 "2021-03-23T21:51:50Z")

</div>

Hello! I am trying to figure out how to turn a perlin noise-type 3D terrain like this one: int cols, rows; int scl = 20; //scale int w = 1200; //width, adjustable int h = 900; //height, adjustable float \[\]\[\] z; void…

---

## [Help with FloatList](https://discourse.processing.org/t/help-with-floatlist/28763)

<div class="topic-metadata">

**Author:** [@Leommoraes](https://discourse.processing.org/u/Leommoraes)\
**Replies:** 1\
**Last updated:** [March 23, 2021, 4:43pm UTC](https://discourse.processing.org/t/help-with-floatlist/28763 "2021-03-23T16:43:16Z")

</div>

I need to create random sequences of colors within a FloatList, to create the genius game through this sequence of created colors, someone could help me, because I don’t even know where to start

---

## [How often does the draw function loop?](https://discourse.processing.org/t/how-often-does-the-draw-function-loop/28721)

<div class="topic-metadata">

**Author:** [@alex3](https://discourse.processing.org/u/alex3)\
**Replies:** 4\
**Last updated:** [March 23, 2021, 10:37am UTC](https://discourse.processing.org/t/how-often-does-the-draw-function-loop/28721 "2021-03-23T10:37:06Z")

</div>

Hi, I’m new to processing and I noticed my draw function was looping. Does this always happen and if so how many times does it loop?

---

## [Exporting P2D Programs](https://discourse.processing.org/t/exporting-p2d-programs/28712)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 5\
**Last updated:** [March 23, 2021, 9:55am UTC](https://discourse.processing.org/t/exporting-p2d-programs/28712 "2021-03-23T09:55:25Z")

</div>

When I export a program using the P2D renderer the exe file created does not open. Is there anyway to fix this issue? I am using a surface pro 7.

---

## [Getting a Processing sketch into Zoom as my camera](https://discourse.processing.org/t/getting-a-processing-sketch-into-zoom-as-my-camera/28744)

<div class="topic-metadata">

**Author:** [@danielnjackson](https://discourse.processing.org/u/danielnjackson)\
**Replies:** 3\
**Last updated:** [March 23, 2021, 7:14am UTC](https://discourse.processing.org/t/getting-a-processing-sketch-into-zoom-as-my-camera/28744 "2021-03-23T07:14:43Z")

</div>

Hey everyone, Apologies if this has been addressed before, I had a hard time searching effectively for it. One of my students is writing a sketch to manipulate their (incoming) webcam image, and it’s working great. How…

---

## [Change auto-indent amount (preferences)](https://discourse.processing.org/t/change-auto-indent-amount-preferences/28450)

<div class="topic-metadata">

**Author:** [@iansebryk](https://discourse.processing.org/u/iansebryk)\
**Replies:** 7\
**Last updated:** [March 23, 2021, 12:54am UTC](https://discourse.processing.org/t/change-auto-indent-amount-preferences/28450 "2021-03-23T00:54:30Z")

</div>

is there a way to reconfigure the auto indent? 10 chars is a excessive, irritating, and counter-productive. 2-4 chars is the standard and this should be the default from the get go.

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

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