# Processing

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

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

**Page:** 114

---

## [Processing on itch.io](https://discourse.processing.org/t/processing-on-itch-io/32256)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 9:16pm UTC](https://discourse.processing.org/t/processing-on-itch-io/32256 "2021-09-14T21:16:37Z")

</div>

on Top games made with Processing - itch.io there are a lot of games made with processing but i can’t figure out how to upload my own. how do i upload a processing game to itch.io?

---

## [OpenVR for Processing](https://discourse.processing.org/t/openvr-for-processing/32088)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 3\
**Last updated:** [September 14, 2021, 4:14pm UTC](https://discourse.processing.org/t/openvr-for-processing/32088 "2021-09-14T16:14:35Z")

</div>

on forum.processing.org (specifically OpenVR for Processing (Virtual Reality) - Processing 2.x and 3.x Forum) , user Dawars said this Hello, This is David, an undergraduate Computer Engineer student from Hungary. I f…

---

## [Gstreamer issue: No Real Random Source Present Processing 3.5 and 4 Video Not working](https://discourse.processing.org/t/gstreamer-issue-no-real-random-source-present-processing-3-5-and-4-video-not-working/32247)

<div class="topic-metadata">

**Author:** [@xrispy](https://discourse.processing.org/u/xrispy)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 11:03am UTC](https://discourse.processing.org/t/gstreamer-issue-no-real-random-source-present-processing-3-5-and-4-video-not-working/32247 "2021-09-14T11:03:44Z")

</div>

I have been having a long term issue with Processing 3.5-4.0 video library. I have not been able to use Processing video all year and it has impacted my artistic process. I am using Processing video library using GStrea…

---

## [How to rotate the buttons in Processing](https://discourse.processing.org/t/how-to-rotate-the-buttons-in-processing/32228)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 9:22am UTC](https://discourse.processing.org/t/how-to-rotate-the-buttons-in-processing/32228 "2021-09-14T09:22:25Z")

</div>

I have 24 buttons that will shape a circle together. So, the image of the buttons should look in a rotating way like this: I want to use the same 3 images (setImages(); 3 images for 3 mouseClick conditions in 1 butto…

---

## [Surface Resize issues](https://discourse.processing.org/t/surface-resize-issues/32237)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 10:04pm UTC](https://discourse.processing.org/t/surface-resize-issues/32237 "2021-09-13T22:04:53Z")

</div>

Hi, I am having trouble changing the size of my surface in a sketch. Basically I load an image, set the surface size to the size of the image then draw circles on the surface. The issue is that Processing is actually s…

---

## [Invoking Processor IDE from command line](https://discourse.processing.org/t/invoking-processor-ide-from-command-line/32238)

<div class="topic-metadata">

**Author:** [@rhole](https://discourse.processing.org/u/rhole)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 7:38pm UTC](https://discourse.processing.org/t/invoking-processor-ide-from-command-line/32238 "2021-09-13T19:38:51Z")

</div>

I am running Processing on Raspberry Pi 3. I work mainly one one rather long sketch. It would be handy to invoke the IDE editor from the command line so I do not have to start Processing to a generic sketch then load m…

---

## [InfluxDB example or library](https://discourse.processing.org/t/influxdb-example-or-library/32227)

<div class="topic-metadata">

**Author:** [@Jhdgkss](https://discourse.processing.org/u/Jhdgkss)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 7:29pm UTC](https://discourse.processing.org/t/influxdb-example-or-library/32227 "2021-09-13T19:29:51Z")

</div>

Hi all. Is there a library or code example for use of processing with influxDB? From a remote web address. I know influxDB does support Rest API. But not sure how to implement this in processing. Example code would be …

---

## [noLoop not working the way I expected](https://discourse.processing.org/t/noloop-not-working-the-way-i-expected/32174)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 8\
**Last updated:** [September 13, 2021, 6:34pm UTC](https://discourse.processing.org/t/noloop-not-working-the-way-i-expected/32174 "2021-09-13T18:34:08Z")

</div>

I have a simple sketch that opens and image, samples the pixels and redraws them with circles at set intervals. It works great in a loop but I only want it to process the image then stop. When I use the noLoop(); option…

---

## [Black Screen on Sketch 'Run'](https://discourse.processing.org/t/black-screen-on-sketch-run/32232)

<div class="topic-metadata">

**Author:** [@binge\_flow](https://discourse.processing.org/u/binge_flow)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 5:52pm UTC](https://discourse.processing.org/t/black-screen-on-sketch-run/32232 "2021-09-13T17:52:22Z")

</div>

I am running the Processing client (latest beta version) on a Macbook Pro 2019: Catalina Version 10.15.7. When I save my work and click the ‘Run’ button my display goes black for a couple of seconds and then it comes bac…

---

## [Multiple Image-Buttons That will Shape a Circle Together](https://discourse.processing.org/t/multiple-image-buttons-that-will-shape-a-circle-together/32221)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 12:18pm UTC](https://discourse.processing.org/t/multiple-image-buttons-that-will-shape-a-circle-together/32221 "2021-09-13T12:18:29Z")

</div>

I have several buttons that I created like this: In the setup() PImage\[\] imgs1 = {loadImage("AREA1\_1.png"),loadImage("AREA1\_2.png"),loadImage("AREA1\_3.png")}; cp5.addButton("AREA\_1") // The button .setValue(128) .setP…

---

## [Noisy gradients](https://discourse.processing.org/t/noisy-gradients/32217)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 4\
**Last updated:** [September 12, 2021, 1:18pm UTC](https://discourse.processing.org/t/noisy-gradients/32217 "2021-09-12T13:18:14Z")

</div>

hallo, i am wondering how a noise gradient like this that i found on the web could be created in processing. Any ideas? my idea approaching (so far) is using perlin noise field and blurring gradually. Anyone has a …

---

## [Image not showing](https://discourse.processing.org/t/image-not-showing/32204)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 5\
**Last updated:** [September 12, 2021, 9:04am UTC](https://discourse.processing.org/t/image-not-showing/32204 "2021-09-12T09:04:53Z")

</div>

why is my enemy image not showing? //characters PImage\[\] midas= new PImage\[8\]; PImage\[\] daughter= new PImage\[3\]; PImage\[\] enemy= new PImage\[8\]; boolean showMidas1= true; //coordinates float midasx= 1; float midasy= 1;…

---

## [Processing typing bar doesn't correspond with actual typed text!](https://discourse.processing.org/t/processing-typing-bar-doesnt-correspond-with-actual-typed-text/32216)

<div class="topic-metadata">

**Author:** [@Joost](https://discourse.processing.org/u/Joost)\
**Replies:** 1\
**Last updated:** [September 12, 2021, 11:19am UTC](https://discourse.processing.org/t/processing-typing-bar-doesnt-correspond-with-actual-typed-text/32216 "2021-09-12T11:19:22Z")

</div>

For the love of god if somebody could help me out, I am going insane. In Processing 4 (beta), the typing bar | does not appear where my letters appear when typing. Instead it appears way in front of all of the code tha…

---

## [Change variable every other loop](https://discourse.processing.org/t/change-variable-every-other-loop/32212)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [September 12, 2021, 9:44am UTC](https://discourse.processing.org/t/change-variable-every-other-loop/32212 "2021-09-12T09:44:07Z")

</div>

how do i make i3 equal 1, then make it equal 8 in the loop after, 1 again in the loop after and so forth?

---

## [Getting the average HSB from pixels](https://discourse.processing.org/t/getting-the-average-hsb-from-pixels/31965)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 33\
**Last updated:** [September 11, 2021, 4:21pm UTC](https://discourse.processing.org/t/getting-the-average-hsb-from-pixels/31965 "2021-09-11T16:21:39Z")

</div>

I have some simple code that is intended to find the average colour in a rectangle. That rectangle moves with the mouse. All is fine until I try to average two colours as in the example below. The Hue of half the sampl…

---

## [Show image if WASD is not pressed](https://discourse.processing.org/t/show-image-if-wasd-is-not-pressed/32168)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 16\
**Last updated:** [September 11, 2021, 5:20pm UTC](https://discourse.processing.org/t/show-image-if-wasd-is-not-pressed/32168 "2021-09-11T17:20:14Z")

</div>

when either w, a, s or d is pressed my code moves my image and cycles through different ones. i want it to show image "midas\[1\]’ if none of these buttons is pressed. i have a line of code if (key != 'w' && key!= 'a' && …

---

## [Different ways of multithreading](https://discourse.processing.org/t/different-ways-of-multithreading/32199)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 3:42pm UTC](https://discourse.processing.org/t/different-ways-of-multithreading/32199 "2021-09-11T15:42:28Z")

</div>

Hello everyone, I am aware of the use of thread(methodName) in processing for easy multithreading in a sketch, but this implementation of the thread class has limited functionality. You can’t put arguments into the funct…

---

## [Pixelated lines](https://discourse.processing.org/t/pixelated-lines/32186)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 3\
**Last updated:** [September 11, 2021, 3:03pm UTC](https://discourse.processing.org/t/pixelated-lines/32186 "2021-09-11T15:03:37Z")

</div>

Hi there! As you can see here, this lines are so pixelated, can you tell me why and how can I avoid it? Thank you so much! size(1000,1000); strokeWeight(20); background (255); for(int x=0;x\<1000;x=x+60){ stroke(0,0,0…

---

## [Can't run code due to syntax errors](https://discourse.processing.org/t/cant-run-code-due-to-syntax-errors/32193)

<div class="topic-metadata">

**Author:** [@mayyu](https://discourse.processing.org/u/mayyu)\
**Replies:** 3\
**Last updated:** [September 11, 2021, 9:32am UTC](https://discourse.processing.org/t/cant-run-code-due-to-syntax-errors/32193 "2021-09-11T09:32:57Z")

</div>

\< public class Person{ float x; float y; float xspeed; float yspeed; } Person (float tempX, float tempY) { x=tempX; y=tempY; xspeed = 4; yspeed = 4; } void move() { x = x+xspeed; if (x\>1000||x\<0){ xspeed=…

---

## [How can I fix stuttering. Is it due to unoptimized code?](https://discourse.processing.org/t/how-can-i-fix-stuttering-is-it-due-to-unoptimized-code/32160)

<div class="topic-metadata">

**Author:** [@DJx](https://discourse.processing.org/u/DJx)\
**Replies:** 13\
**Last updated:** [September 9, 2021, 10:51pm UTC](https://discourse.processing.org/t/how-can-i-fix-stuttering-is-it-due-to-unoptimized-code/32160 "2021-09-09T22:51:32Z")

</div>

Hi, so I’m making a game in Processing but unfortunately, I can’t seem to get the program to run smoothly. Sometimes it will stutter while running, while the next time be completely fine even though it is running the sam…

---

## [Text bar not lining up with text](https://discourse.processing.org/t/text-bar-not-lining-up-with-text/32171)

<div class="topic-metadata">

**Author:** [@Tbotics](https://discourse.processing.org/u/Tbotics)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 9:39pm UTC](https://discourse.processing.org/t/text-bar-not-lining-up-with-text/32171 "2021-09-09T21:39:33Z")

</div>

Hello As I begin typing, the text bar does not line up with what I am typing. Please take a look at the attached image. After the first few letters the bar becomes further away from the last character I have typed. …

---

## [Array of images](https://discourse.processing.org/t/array-of-images/32120)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 6\
**Last updated:** [September 9, 2021, 8:48pm UTC](https://discourse.processing.org/t/array-of-images/32120 "2021-09-09T20:48:20Z")

</div>

PImage \[\] fotos= new PImage \[1\]; int nroImg; void setup(){ nroImg=0; size(700,700); for (int i=0; i\<fotos.length; i++){ fotos\[i\]=loadImage(“mr”+i+".jpg"); } } void draw(){ background(0); image(fotos\[nroImg\],0,…

---

## [Is there a way to read out code from old pde file?](https://discourse.processing.org/t/is-there-a-way-to-read-out-code-from-old-pde-file/32143)

<div class="topic-metadata">

**Author:** [@tlow001](https://discourse.processing.org/u/tlow001)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 4:47pm UTC](https://discourse.processing.org/t/is-there-a-way-to-read-out-code-from-old-pde-file/32143 "2021-09-09T16:47:16Z")

</div>

Hello I want to pick up processing again after years of inactivity, but when I open an old file I get an error: I already tried to install an old veriosn of processing but I get the same result. Is there a way to g…

---

## [Not using Classes or Translate](https://discourse.processing.org/t/not-using-classes-or-translate/32161)

<div class="topic-metadata">

**Author:** [@UnsureNeedHelp](https://discourse.processing.org/u/UnsureNeedHelp)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 10:48am UTC](https://discourse.processing.org/t/not-using-classes-or-translate/32161 "2021-09-09T10:48:46Z")

</div>

Hey all! I’ve got code here but we’ve not been allowed to use classes or transformations such as rotate, translate, scale etc. I really need help making this code work with these rules. Not sure where to even start, any…

---

## [Why does PApplet fail silently when you don't implement draw()?](https://discourse.processing.org/t/why-does-papplet-fail-silently-when-you-dont-implement-draw/31906)

<div class="topic-metadata">

**Author:** [@codeWorth](https://discourse.processing.org/u/codeWorth)\
**Replies:** 6\
**Last updated:** [September 9, 2021, 4:45am UTC](https://discourse.processing.org/t/why-does-papplet-fail-silently-when-you-dont-implement-draw/31906 "2021-09-09T04:45:41Z")

</div>

Looking at the source, this is draw’s implementation in PApplet: public void draw() { // if no draw method, then shut things down //System.out.println("no draw method, goodbye"); finished = true; } What’s t…

---

## [Storing positions on an array and then calling the value (grid)](https://discourse.processing.org/t/storing-positions-on-an-array-and-then-calling-the-value-grid/32119)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 10:36pm UTC](https://discourse.processing.org/t/storing-positions-on-an-array-and-then-calling-the-value-grid/32119 "2021-09-08T22:36:43Z")

</div>

float xOffset = 0.0; float yOffset = 0.0; int rectSize = 30; int ellipseX = 90; int ellipseY = 320; int ellipseSize = 30; int boxPosX = 250; int boxPosY = 130; int spacingX = 45; int spacingY = 45; int i; int l; bo…

---

## [Problem with the volume. Minim Library](https://discourse.processing.org/t/problem-with-the-volume-minim-library/32128)

<div class="topic-metadata">

**Author:** [@kylu](https://discourse.processing.org/u/kylu)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 8:47pm UTC](https://discourse.processing.org/t/problem-with-the-volume-minim-library/32128 "2021-09-08T20:47:25Z")

</div>

Hey there! I’m working in a game proyect, using minim and Fisica libraries. I put the sound tracks but i can change the volume, i try using setVolume() and setGain() but there’s no way to modified it I let the entery c…

---

## [Help with noise map (terrain map)](https://discourse.processing.org/t/help-with-noise-map-terrain-map/32131)

<div class="topic-metadata">

**Author:** [@figle](https://discourse.processing.org/u/figle)\
**Replies:** 3\
**Last updated:** [September 8, 2021, 8:42pm UTC](https://discourse.processing.org/t/help-with-noise-map-terrain-map/32131 "2021-09-08T20:42:31Z")

</div>

Hi there, I’m trying to find a way to make an animated graphic similar in appearance to a poster I found online. Is there a way to programmatically make this noise map have more clustered areas and less noisy like here?…

---

## [How to delete a G4P GTextField](https://discourse.processing.org/t/how-to-delete-a-g4p-gtextfield/31897)

<div class="topic-metadata">

**Author:** [@Jos](https://discourse.processing.org/u/Jos)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 9:30am UTC](https://discourse.processing.org/t/how-to-delete-a-g4p-gtextfield/31897 "2021-09-08T09:30:26Z")

</div>

I want to use an G4P object just temporarily. For example a text field. But once created I can’t delete it any more. Is there a solution? import g4p\_controls.\*; void setup() { fill(200); size(400,200); fill(255); rec…

---

## [What is the traditional sign for square root?](https://discourse.processing.org/t/what-is-the-traditional-sign-for-square-root/32148)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [September 8, 2021, 8:09am UTC](https://discourse.processing.org/t/what-is-the-traditional-sign-for-square-root/32148 "2021-09-08T08:09:45Z")

</div>

This is not necessarily a processing question, but I understand that in coding we can make use of operands such as / for divide, \* for multiply, ^ for power, is there a predefined operand for squareroot, or is it just t…

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

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