# Latest

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

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

**Page:** 251

---

## [Does anyone know how to rotate 90º a Textfield in ControlP5?](https://discourse.processing.org/t/does-anyone-know-how-to-rotate-90-a-textfield-in-controlp5/26962)

<div class="topic-metadata">

**Author:** [@AlOn](https://discourse.processing.org/u/AlOn)\
**Replies:** 7\
**Last updated:** [February 26, 2021, 1:55pm UTC](https://discourse.processing.org/t/does-anyone-know-how-to-rotate-90-a-textfield-in-controlp5/26962 "2021-02-26T13:55:13Z")

</div>

This seems a simple question, but I’m not able to solve the issue. It is possible to rotate the controlP5 controllers? I need it exactly 90º CCW. But I’m unable to find the solution. Possible options: Use a rotate na…

---

## [Processing and WASM?](https://discourse.processing.org/t/processing-and-wasm/28073)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 2\
**Last updated:** [February 26, 2021, 8:41am UTC](https://discourse.processing.org/t/processing-and-wasm/28073 "2021-02-26T08:41:02Z")

</div>

Hi and good morning, exists any test to work with WASM and Processing today?

---

## [Why does this font show as boxes?](https://discourse.processing.org/t/why-does-this-font-show-as-boxes/27873)

<div class="topic-metadata">

**Author:** [@wilwol](https://discourse.processing.org/u/wilwol)\
**Replies:** 5\
**Last updated:** [February 26, 2021, 3:49am UTC](https://discourse.processing.org/t/why-does-this-font-show-as-boxes/27873 "2021-02-26T03:49:08Z")

</div>

Hey, I didn’t know if this is the place to do this but I’m struggling to display this font on my sketch. !\[Skærmbillede 2021-02-16 235044|391x418\](upload://aec4gcHf61fJrbYaMZEfVufuKq2.jpeg) As can be seen above…

---

## [Create p5.js Instances Sequentially in For Loop But Only After the Previous One Finishes](https://discourse.processing.org/t/create-p5-js-instances-sequentially-in-for-loop-but-only-after-the-previous-one-finishes/28050)

<div class="topic-metadata">

**Author:** [@nguzman](https://discourse.processing.org/u/nguzman)\
**Replies:** 3\
**Last updated:** [February 25, 2021, 10:07pm UTC](https://discourse.processing.org/t/create-p5-js-instances-sequentially-in-for-loop-but-only-after-the-previous-one-finishes/28050 "2021-02-25T22:07:31Z")

</div>

The basic question is in the title. I use a function to define a p5.js instance with a particular set of parameters. The sketch itself runs an in-browser video game. When any one out of a set of events occurs in the game…

---

## [Shear box left and right AND up and down?](https://discourse.processing.org/t/shear-box-left-and-right-and-up-and-down/28067)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 5\
**Last updated:** [February 25, 2021, 8:52pm UTC](https://discourse.processing.org/t/shear-box-left-and-right-and-up-and-down/28067 "2021-02-25T20:52:26Z")

</div>

Hello everyone! I am trying to skew a box left and right and up and down. If the box is rotated appropriately (I am actually using a .obj file for the box, because I’ll want to use other .obj files after this test), I c…

---

## [For loop driven by event crashes](https://discourse.processing.org/t/for-loop-driven-by-event-crashes/28065)

<div class="topic-metadata">

**Author:** [@cmoredock](https://discourse.processing.org/u/cmoredock)\
**Replies:** 4\
**Last updated:** [February 25, 2021, 7:56pm UTC](https://discourse.processing.org/t/for-loop-driven-by-event-crashes/28065 "2021-02-25T19:56:11Z")

</div>

https://editor.p5js.org/cmoredock@rdschool.org/sketches/obDjqJJfM let lt = input1.value(); let st = input2.value(); let tt = input3.value(); // why does this infinite loop? for (let i = st; i \< lt; i = i + tt) …

---

## [Problem installing processing](https://discourse.processing.org/t/problem-installing-processing/28079)

<div class="topic-metadata">

**Author:** [@john02139](https://discourse.processing.org/u/john02139)\
**Replies:** 1\
**Last updated:** [February 25, 2021, 6:08pm UTC](https://discourse.processing.org/t/problem-installing-processing/28079 "2021-02-25T18:08:08Z")

</div>

I am a retired guy trying to learn Python using a book titled “Math Adventures With Python”. This book requires that I download and install “Processing” as a necessity for completing the exercises therein. To this end…

---

## [Forum-like site creation](https://discourse.processing.org/t/forum-like-site-creation/28052)

<div class="topic-metadata">

**Author:** [@ath](https://discourse.processing.org/u/ath)\
**Replies:** 7\
**Last updated:** [February 25, 2021, 10:21am UTC](https://discourse.processing.org/t/forum-like-site-creation/28052 "2021-02-25T10:21:41Z")

</div>

Hello, I’m new to all the coding stuff so the question might be way too general. I want to code a website where people will be writing posts under specific threads, which will be saved so that other users can read them…

---

## [2d graph of signals of arduino](https://discourse.processing.org/t/2d-graph-of-signals-of-arduino/27921)

<div class="topic-metadata">

**Author:** [@xD\_echicero\_xD](https://discourse.processing.org/u/xD_echicero_xD)\
**Replies:** 10\
**Last updated:** [February 25, 2021, 4:11am UTC](https://discourse.processing.org/t/2d-graph-of-signals-of-arduino/27921 "2021-02-25T04:11:32Z")

</div>

import processing.serial.Serial; import grafica.\*; public GPlot plot2 ; static final int PORT\_INDEX = 0, BAUDS = 9600; int i=0; int\[\] vals = {}; //float\[\] vals = {}; void setup() { vals=new int\[5\]; size(850, 660); …

---

## [Processing magic](https://discourse.processing.org/t/processing-magic/28072)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 1\
**Last updated:** [February 25, 2021, 3:16am UTC](https://discourse.processing.org/t/processing-magic/28072 "2021-02-25T03:16:40Z")

</div>

int num = 6000; float\[\] x01 = new float\[num\]; float\[\] y01 = new float\[num\]; float\[\] z01 = new float\[num\]; float\[\] x02 = new float\[num\]; float\[\] y02 = new float\[num\]; float\[\] z02 = new float\[num\]; float\[\] deg01 = new flo…

---

## [Slider and box rotation](https://discourse.processing.org/t/slider-and-box-rotation/28071)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 1\
**Last updated:** [February 25, 2021, 2:44am UTC](https://discourse.processing.org/t/slider-and-box-rotation/28071 "2021-02-25T02:44:29Z")

</div>

import controlP5.\*; ControlP5 cp5; Slider boxSize; Slider2D rotate; ColorWheel col; Toggle start; void setup() { size(800, 600, P3D); cp5 = new ControlP5(this); boxSize = cp5.addSlider("BOX SIZE") …

---

## [Processing 4 core - P2D & P3D not working](https://discourse.processing.org/t/processing-4-core-p2d-p3d-not-working/28026)

<div class="topic-metadata">

**Author:** [@Xelo](https://discourse.processing.org/u/Xelo)\
**Replies:** 5\
**Last updated:** [February 25, 2021, 1:56am UTC](https://discourse.processing.org/t/processing-4-core-p2d-p3d-not-working/28026 "2021-02-25T01:56:35Z")

</div>

A few days ago, Processing 4\* suddenly stopped being able to run any p2D and p3D sketches. Upon running the error below displays… Warning: Caught Exception while retrieving executable temp base directory: java.io.IOExc…

---

## [Loading a .PNG image into PGraphics](https://discourse.processing.org/t/loading-a-png-image-into-pgraphics/28064)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 9:53pm UTC](https://discourse.processing.org/t/loading-a-png-image-into-pgraphics/28064 "2021-02-24T21:53:51Z")

</div>

Is there a very simple way of loading an image into PGraphics? I’m currently rendering direct to PGraphics and saving this as an image file: “1.PNG” If I want to continue the render, I need to load this image back int…

---

## [How to debug smooth color change in processing?](https://discourse.processing.org/t/how-to-debug-smooth-color-change-in-processing/28057)

<div class="topic-metadata">

**Author:** [@MExley](https://discourse.processing.org/u/MExley)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 8:07pm UTC](https://discourse.processing.org/t/how-to-debug-smooth-color-change-in-processing/28057 "2021-02-24T20:07:15Z")

</div>

I have written code in which the stroke color should transition smoothly through red, orange, yellow, green etc. in a loop. The rest of the code works perfectly but I am having issues attaining the color transitions. It…

---

## [Help for a beginner please (asking for input a multi-digit variable)](https://discourse.processing.org/t/help-for-a-beginner-please-asking-for-input-a-multi-digit-variable/28053)

<div class="topic-metadata">

**Author:** [@freddukas](https://discourse.processing.org/u/freddukas)\
**Replies:** 6\
**Last updated:** [February 24, 2021, 7:11pm UTC](https://discourse.processing.org/t/help-for-a-beginner-please-asking-for-input-a-multi-digit-variable/28053 "2021-02-24T19:11:48Z")

</div>

Hello everyone, I’m quite new with coding and I would like to create a prime number detector using arduino. I have a pretty good idea how to do it using a divider variable and modulos. My problem is : how can I create…

---

## [Slow simulation](https://discourse.processing.org/t/slow-simulation/28061)

<div class="topic-metadata">

**Author:** [@Belengaz](https://discourse.processing.org/u/Belengaz)\
**Replies:** 1\
**Last updated:** [February 24, 2021, 6:47pm UTC](https://discourse.processing.org/t/slow-simulation/28061 "2021-02-24T18:47:55Z")

</div>

Hey guys! new on processing. The question is the simulation does not run fluently. When i work with a few object things are very good but when create many piece of solids everything screws. So is there anything that i ca…

---

## [Processing collision rect and circle (PacMan)](https://discourse.processing.org/t/processing-collision-rect-and-circle-pacman/28021)

<div class="topic-metadata">

**Author:** [@dimitris](https://discourse.processing.org/u/dimitris)\
**Replies:** 19\
**Last updated:** [February 24, 2021, 5:01pm UTC](https://discourse.processing.org/t/processing-collision-rect-and-circle-pacman/28021 "2021-02-24T17:01:52Z")

</div>

So this is my code\<3 So my question is how can the main character not be able to go through the “obstacles” as you want to call them. Yes, that, I need collision or something I​ do not know:( thanks a lot\<3 Face f1; Ene…

---

## [Faster and faster squares (Click game)](https://discourse.processing.org/t/faster-and-faster-squares-click-game/28043)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 8\
**Last updated:** [February 24, 2021, 4:21pm UTC](https://discourse.processing.org/t/faster-and-faster-squares-click-game/28043 "2021-02-24T16:21:28Z")

</div>

Hello, I would like in my game that every 15 seconds the speed of appearance of the edges increases by x time (example the first 15 seconds is 1 square every 1 second then the next 15 seconds will be 1 square every 0.7s…

---

## [Print CSV not working](https://discourse.processing.org/t/print-csv-not-working/28045)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 3:57pm UTC](https://discourse.processing.org/t/print-csv-not-working/28045 "2021-02-24T15:57:11Z")

</div>

I am trying to load a CSV file and print the contents. The file loads and I get the filename, but the rows and columns are not passed. Here is my code: "use strict"; let i, k, trows, tcols; let table, loadButton; fun…

---

## [Using serial input from arduino to execute events in processing](https://discourse.processing.org/t/using-serial-input-from-arduino-to-execute-events-in-processing/28038)

<div class="topic-metadata">

**Author:** [@eelhum](https://discourse.processing.org/u/eelhum)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 3:44pm UTC](https://discourse.processing.org/t/using-serial-input-from-arduino-to-execute-events-in-processing/28038 "2021-02-24T15:44:04Z")

</div>

Hi all! I’m pretty new to arduino and processing, and I’m sure there’s a way around this but I can’t seem to figure it out My code in processing uses Case, so i switch between 5 different outputs by pressing keys 1,2,3,…

---

## [Hide and center cursor but still move camera](https://discourse.processing.org/t/hide-and-center-cursor-but-still-move-camera/28016)

<div class="topic-metadata">

**Author:** [@yeppii](https://discourse.processing.org/u/yeppii)\
**Replies:** 10\
**Last updated:** [February 24, 2021, 3:35pm UTC](https://discourse.processing.org/t/hide-and-center-cursor-but-still-move-camera/28016 "2021-02-24T15:35:57Z")

</div>

I want to hide the cursor and position it to the center of the window. I tried using the robot class to move cursor to the center of screen and it worked but the problem is I also need to be able to rotate the QueasyCam …

---

## [Trying to make a little app that saves all the characters that i type](https://discourse.processing.org/t/trying-to-make-a-little-app-that-saves-all-the-characters-that-i-type/27704)

<div class="topic-metadata">

**Author:** [@denis](https://discourse.processing.org/u/denis)\
**Replies:** 21\
**Last updated:** [February 24, 2021, 3:18pm UTC](https://discourse.processing.org/t/trying-to-make-a-little-app-that-saves-all-the-characters-that-i-type/27704 "2021-02-24T15:18:15Z")

</div>

Hey guys, howre you? I wanted to create something that can save all the characters that i type on my computer. I think is not that difficult, but i am kind of new with all this, so i dont know how to do it. Anyone that …

---

## [Curve - control points settings for gauss curve behavior](https://discourse.processing.org/t/curve-control-points-settings-for-gauss-curve-behavior/27911)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 6\
**Last updated:** [February 24, 2021, 9:35am UTC](https://discourse.processing.org/t/curve-control-points-settings-for-gauss-curve-behavior/27911 "2021-02-24T09:35:46Z")

</div>

I am just trying to understand the control points from a curve. The curve should behave like a Gaussian curve. Unfortunately, I don’t really understand how to handle the control points. Can someone please help me? M…

---

## [Multiple p5 sketches on one page](https://discourse.processing.org/t/multiple-p5-sketches-on-one-page/28035)

<div class="topic-metadata">

**Author:** [@add2fic](https://discourse.processing.org/u/add2fic)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 9:13am UTC](https://discourse.processing.org/t/multiple-p5-sketches-on-one-page/28035 "2021-02-24T09:13:38Z")

</div>

Hi, I’m trying to add multiple p5 sketches on one page. I’m trying to use the .parent(‘x’) function to put the canvases inside of their own divs, when I use one it shows up just fine, but when I include two, the other on…

---

## [Write my text in red when I take too long to press the square or if I click next to it (click game)](https://discourse.processing.org/t/write-my-text-in-red-when-i-take-too-long-to-press-the-square-or-if-i-click-next-to-it-click-game/28036)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 3\
**Last updated:** [February 24, 2021, 8:35am UTC](https://discourse.processing.org/t/write-my-text-in-red-when-i-take-too-long-to-press-the-square-or-if-i-click-next-to-it-click-game/28036 "2021-02-24T08:35:45Z")

</div>

Hello, I would like to do as the title indicates put the text ‘’ x0 ‘’ (and not the “score = 0”) in red when I click next to a square. int wait = 1000; int lastTime = 0; int score = 0; int score2 = 0; int bonus = 1; …

---

## [Noob can't invert colors at the right time](https://discourse.processing.org/t/noob-cant-invert-colors-at-the-right-time/28037)

<div class="topic-metadata">

**Author:** [@stevelew](https://discourse.processing.org/u/stevelew)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 4:01am UTC](https://discourse.processing.org/t/noob-cant-invert-colors-at-the-right-time/28037 "2021-02-24T04:01:04Z")

</div>

I’m drawing a triangle between three wandering points. I want to invert the fill color when the triangle “flattens,” ie when all three points are on the same line. I thought I would be able to do this by matching the s…

---

## [Random() limit : high values required](https://discourse.processing.org/t/random-limit-high-values-required/27927)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 9\
**Last updated:** [February 24, 2021, 12:10am UTC](https://discourse.processing.org/t/random-limit-high-values-required/27927 "2021-02-24T00:10:24Z")

</div>

Does anyone know the upper limit for the random() function ?? I’m needing 400,000,000 + Solution would be: A=random(20000) B=random(20000) If (A & B)=X (Or any upper limit required) But this is messy. Any thought…

---

## [I get a TypeError: f.default.\_friendlyAutoplayError randomly when calling video.loop()](https://discourse.processing.org/t/i-get-a-typeerror-f-default-friendlyautoplayerror-randomly-when-calling-video-loop/27675)

<div class="topic-metadata">

**Author:** [@sandersturing](https://discourse.processing.org/u/sandersturing)\
**Replies:** 4\
**Last updated:** [February 23, 2021, 10:53pm UTC](https://discourse.processing.org/t/i-get-a-typeerror-f-default-friendlyautoplayerror-randomly-when-calling-video-loop/27675 "2021-02-23T22:53:35Z")

</div>

Can’t really find anything when googling the error. When I call video.loop (actually, I’m calling a couple of really small videos (together smaller than 2MB), like so: for(let i = 0; i \< videos.length; i++){ videos\[…

---

## [Drawbot image to gcode](https://discourse.processing.org/t/drawbot-image-to-gcode/28029)

<div class="topic-metadata">

**Author:** [@Marek1](https://discourse.processing.org/u/Marek1)\
**Replies:** 3\
**Last updated:** [February 23, 2021, 9:44pm UTC](https://discourse.processing.org/t/drawbot-image-to-gcode/28029 "2021-02-23T21:44:17Z")

</div>

I like drawing pictures with this code. I have my own buids of drawbot, Im trying create gcode with this one. Downloaded Processing, open all pdes files in one folder… I dont know, how load adress of any pictures from we…

---

## [Manually calculate additive blendmode with pixels\[\]](https://discourse.processing.org/t/manually-calculate-additive-blendmode-with-pixels/28031)

<div class="topic-metadata">

**Author:** [@lilzer7](https://discourse.processing.org/u/lilzer7)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 8:34pm UTC](https://discourse.processing.org/t/manually-calculate-additive-blendmode-with-pixels/28031 "2021-02-23T20:34:09Z")

</div>

Hi, I’m currently coding a program in which I draw some random generated patterns like this : function setup() { colorMode(RGB, 255, 255, 255, 255); blendMode(ADD); } function draw() { for(var i = 0; i \< …

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

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