# Processing

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

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

**Page:** 148

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Chaining GLSL frag shaders](https://discourse.processing.org/t/chaining-glsl-frag-shaders/28006)

<div class="topic-metadata">

**Author:** [@rikitiki](https://discourse.processing.org/u/rikitiki)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 5:07pm UTC](https://discourse.processing.org/t/chaining-glsl-frag-shaders/28006 "2021-02-23T17:07:41Z")

</div>

Hello, I’m attempting to chain some very simple fragment shaders and I’m unsure what I’m doing wrong. I’m following the concept outlined in the readme posted by cansik in this bloom filter: https://github.com/cansik/pr…

---

## [Positive counter (Click game)](https://discourse.processing.org/t/positive-counter-click-game/28027)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 4\
**Last updated:** [February 23, 2021, 7:50pm UTC](https://discourse.processing.org/t/positive-counter-click-game/28027 "2021-02-23T19:50:27Z")

</div>

Hello, I would like to create a counter which, each time I press correctly on an edge increases by 1, but that if I press next to it or if I take too long then the counter returns to 0. example if I press correctly on 5…

---

## [3d-sine-cosine-in-3d from p5js to Processing 3.x](https://discourse.processing.org/t/3d-sine-cosine-in-3d-from-p5js-to-processing-3-x/28022)

<div class="topic-metadata">

**Author:** [@HerClau](https://discourse.processing.org/u/HerClau)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 2:17pm UTC](https://discourse.processing.org/t/3d-sine-cosine-in-3d-from-p5js-to-processing-3-x/28022 "2021-02-23T14:17:42Z")

</div>

I am trying to reproduce the example “Sine Cosine in 3D” from the site at the beginning of the skecht. I show you how far I have come. But it is very far from reproducing the p5js skecht. Could you guide me to reach th…

---

## [Menu for a game](https://discourse.processing.org/t/menu-for-a-game/28005)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 2\
**Last updated:** [February 23, 2021, 8:47am UTC](https://discourse.processing.org/t/menu-for-a-game/28005 "2021-02-23T08:47:40Z")

</div>

Hello, after multiple help and time I have this code: int wait = 1000; int lastTime = 0; int score = 0; int bonus = 1; int square\_size = 50; float square\_x; float square\_y; void setup() { fullScreen(); } void dr…

---

## [Can someone help me with getting this clock right?](https://discourse.processing.org/t/can-someone-help-me-with-getting-this-clock-right/28012)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 9:25am UTC](https://discourse.processing.org/t/can-someone-help-me-with-getting-this-clock-right/28012 "2021-02-23T09:25:11Z")

</div>

At the moment, I have dots/ellipses around the clock as marks for the numbers. I’m trying to make them as lines, like a normal analog clock has, but I’m not sure how to do this. So how do I make the dots/ellipses as line…

---

## [Gradient Shape Grid](https://discourse.processing.org/t/gradient-shape-grid/27604)

<div class="topic-metadata">

**Author:** [@flipercliper](https://discourse.processing.org/u/flipercliper)\
**Replies:** 15\
**Last updated:** [February 23, 2021, 5:31am UTC](https://discourse.processing.org/t/gradient-shape-grid/27604 "2021-02-23T05:31:57Z")

</div>

Hi everyone! New to the forum but have been following you for a while and you all are doing a gret job with the open source. I’ve been doing some simple projects with processing but this is quite tricky for me… I need …

---

## [Convert UDP packet to floats?](https://discourse.processing.org/t/convert-udp-packet-to-floats/27843)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 17\
**Last updated:** [February 22, 2021, 8:05pm UTC](https://discourse.processing.org/t/convert-udp-packet-to-floats/27843 "2021-02-22T20:05:17Z")

</div>

Hello everyone, I’m working with UDP for the first time, using a program called opentrack which sends out packets of bytes over UDP. I can receive the packets in processing, but I’m having trouble figuring out to convert…

---

## [Score and score multiplier for a clicker](https://discourse.processing.org/t/score-and-score-multiplier-for-a-clicker/27994)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 2\
**Last updated:** [February 22, 2021, 4:28pm UTC](https://discourse.processing.org/t/score-and-score-multiplier-for-a-clicker/27994 "2021-02-22T16:28:20Z")

</div>

Hello, with this code I would like there to be a counter every time I press a square, but if I put too long or if I press next to it the counter goes back to 0 and even if it is possible a score multiplier, imagine tha…

---

## [QueasyCam FOV problem](https://discourse.processing.org/t/queasycam-fov-problem/27996)

<div class="topic-metadata">

**Author:** [@yeppii](https://discourse.processing.org/u/yeppii)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 1:15pm UTC](https://discourse.processing.org/t/queasycam-fov-problem/27996 "2021-02-22T13:15:53Z")

</div>

I am making a game, and I am using queasycam as the camera library. I am getting this output when I run the game: It should render the surface fully but its showing the surface like that. What can I do to solve this?

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

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