# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=240

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

**Page:** 241

---

## [I am trying to load in a sound file to my p5 sound project, but they all come out distorted or my screen goes black](https://discourse.processing.org/t/i-am-trying-to-load-in-a-sound-file-to-my-p5-sound-project-but-they-all-come-out-distorted-or-my-screen-goes-black/6121)

<div class="topic-metadata">

**Author:** [@thesavgplatypus](https://discourse.processing.org/u/thesavgplatypus)\
**Replies:** 13\
**Last updated:** [March 26, 2021, 2:30pm UTC](https://discourse.processing.org/t/i-am-trying-to-load-in-a-sound-file-to-my-p5-sound-project-but-they-all-come-out-distorted-or-my-screen-goes-black/6121 "2021-03-26T14:30:30Z")

</div>

I have tried .ogg, .m4a, .mp3, everything. any suggestions?

---

## [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…

---

## [Need help with trigonometry or circle geometry](https://discourse.processing.org/t/need-help-with-trigonometry-or-circle-geometry/28773)

<div class="topic-metadata">

**Author:** [@Yom](https://discourse.processing.org/u/Yom)\
**Replies:** 10\
**Last updated:** [March 26, 2021, 4:51am UTC](https://discourse.processing.org/t/need-help-with-trigonometry-or-circle-geometry/28773 "2021-03-26T04:51:24Z")

</div>

Hello! For a little project, I would like to put rectangles around a circle… with a twist : the length of the rectangle, the space between each rectangle, and the circle diameter, are user parameters, they must not be c…

---

## [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() {…

---

## [Simple multiplication game](https://discourse.processing.org/t/simple-multiplication-game/28847)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 9:05pm UTC](https://discourse.processing.org/t/simple-multiplication-game/28847 "2021-03-25T21:05:28Z")

</div>

Hi! I just want to share a simple game to help my nephew learn multiplications: https://editor.p5js.org/jgmy/sketches/c1u819TPy

---

## [Adding node module to p5.js](https://discourse.processing.org/t/adding-node-module-to-p5-js/28842)

<div class="topic-metadata">

**Author:** [@cenkakay08](https://discourse.processing.org/u/cenkakay08)\
**Replies:** 2\
**Last updated:** [March 25, 2021, 8:02pm UTC](https://discourse.processing.org/t/adding-node-module-to-p5-js/28842 "2021-03-25T20:02:35Z")

</div>

Hi everyone. I’m working on bin packing project. I want to use node module to placement of rectangles. Node module that I want to use: rectangle-bin-pack - npm I’m using p5.vscode extension on VS code for develop. Is t…

---

## [Begginer asks for command 'for'](https://discourse.processing.org/t/begginer-asks-for-command-for/28837)

<div class="topic-metadata">

**Author:** [@xiquip](https://discourse.processing.org/u/xiquip)\
**Replies:** 4\
**Last updated:** [March 25, 2021, 7:37pm UTC](https://discourse.processing.org/t/begginer-asks-for-command-for/28837 "2021-03-25T19:37:18Z")

</div>

I am a beginner in the world of programming and so far I have only seen how to draw basic shapes and apply color to them. I am studying a programming subject at the university, in a university degree in design and this f…

---

## [A newbie needs help](https://discourse.processing.org/t/a-newbie-needs-help/28832)

<div class="topic-metadata">

**Author:** [@xiquip](https://discourse.processing.org/u/xiquip)\
**Replies:** 5\
**Last updated:** [March 25, 2021, 5:30pm UTC](https://discourse.processing.org/t/a-newbie-needs-help/28832 "2021-03-25T17:30:01Z")

</div>

Hello Im dont have a clue about programming and at school they gave us some exercises Anyone knows how to set a random value to an alpha? For example, a circle, triangle or square. for example , I assign a variable to …

---

## [Is there a way to draw rectangles in WebGL mode without it being affected by the camera?](https://discourse.processing.org/t/is-there-a-way-to-draw-rectangles-in-webgl-mode-without-it-being-affected-by-the-camera/28814)

<div class="topic-metadata">

**Author:** [@graph100](https://discourse.processing.org/u/graph100)\
**Replies:** 2\
**Last updated:** [March 25, 2021, 4:19pm UTC](https://discourse.processing.org/t/is-there-a-way-to-draw-rectangles-in-webgl-mode-without-it-being-affected-by-the-camera/28814 "2021-03-25T16:19:22Z")

</div>

Hi, I’ve been wondering for some time if there is a way to draw rectangles (or any 2d shape for that matter) in WebGL mode without it being affected by the camera angle. I’d like to make some kind of GUI system where the…

---

## [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 …

---

## [Checkbox switch Question Updated](https://discourse.processing.org/t/checkbox-switch-question-updated/28826)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 0\
**Last updated:** [March 25, 2021, 9:31am UTC](https://discourse.processing.org/t/checkbox-switch-question-updated/28826 "2021-03-25T09:31:56Z")

</div>

Hi, I would like to be able to select different circle A and B with a createCheckbox() What I want is when the A is selected then we select the B, the circle A should disappear and the checkbox A must be unchecked Rig…

---

## [Export from P5 to PDF/SVG](https://discourse.processing.org/t/export-from-p5-to-pdf-svg/28530)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 4\
**Last updated:** [March 25, 2021, 9:28am UTC](https://discourse.processing.org/t/export-from-p5-to-pdf-svg/28530 "2021-03-25T09:28:14Z")

</div>

Hello, is it still possible to make an SVG/PDF export with P5? p5.svg.js doesn’t seem to work, see these threads about it: Has anyone found a way that works with the current version of P5? Thank you!

---

## [Checkbox background color](https://discourse.processing.org/t/checkbox-background-color/28527)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 2\
**Last updated:** [March 25, 2021, 9:26am UTC](https://discourse.processing.org/t/checkbox-background-color/28527 "2021-03-25T09:26:36Z")

</div>

I’m trying to change the background color of a checkbox. in css I have tried: input\[type="checkbox"\] { position: relative; appearance: none; background-color: #2ecc71; color: #49400c; } this does not work. And…

---

## [deviceId constraint ignored?](https://discourse.processing.org/t/deviceid-constraint-ignored/28791)

<div class="topic-metadata">

**Author:** [@\_RicH\_1](https://discourse.processing.org/u/_RicH_1)\
**Replies:** 4\
**Last updated:** [March 25, 2021, 8:24am UTC](https://discourse.processing.org/t/deviceid-constraint-ignored/28791 "2021-03-25T08:24:38Z")

</div>

Hi, I’m wanting to use mutliple camera inputs so I’m using the deviceId constraint on createCapture, but it doesnt seem to matter what I enter it will always just uses the first availalbe video source If device ID isn’…

---

## [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…

---

## [Just a little help](https://discourse.processing.org/t/just-a-little-help/28768)

<div class="topic-metadata">

**Author:** [@cjswinter](https://discourse.processing.org/u/cjswinter)\
**Replies:** 5\
**Last updated:** [March 25, 2021, 12:07am UTC](https://discourse.processing.org/t/just-a-little-help/28768 "2021-03-25T00:07:54Z")

</div>

Hi, sorry but would someone be able to explain why this code runs fine 7 times in a row and then fails on the 8th. Nothing changes. This is almost certainly not the correct way to code this, but I am still learning. Th…

---

## [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…

---

## [How can I limit the player's movement?](https://discourse.processing.org/t/how-can-i-limit-the-players-movement/28760)

<div class="topic-metadata">

**Author:** [@ValkerieZ](https://discourse.processing.org/u/ValkerieZ)\
**Replies:** 1\
**Last updated:** [March 24, 2021, 9:46pm UTC](https://discourse.processing.org/t/how-can-i-limit-the-players-movement/28760 "2021-03-24T21:46:24Z")

</div>

I am not sure why my code is not working. Specifically the section where i am trying to limit the players movements so he does not go out of bounds. This is an incomplete project that I’m trying to nail but i just can’t…

---

## [Text display has gone "Fuzzy"](https://discourse.processing.org/t/text-display-has-gone-fuzzy/28694)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 13\
**Last updated:** [March 24, 2021, 8:47pm UTC](https://discourse.processing.org/t/text-display-has-gone-fuzzy/28694 "2021-03-24T20:47:10Z")

</div>

Not sure how easy this is to replicate! I’ve been working for weeks/months in Android Mode using fullScreen(P2D) as the renderer and just this last half hour, all text rendering has gone “fuzzy” - like on partial render…

---

## [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?

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=239)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=241)
