# Latest

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

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

**Page:** 194

---

## [「Processing」「P5.js」Matrix arrangement calculation difference](https://discourse.processing.org/t/processing-p5-js-matrix-arrangement-calculation-difference/32265)

<div class="topic-metadata">

**Author:** [@niuuin](https://discourse.processing.org/u/niuuin)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 10:47am UTC](https://discourse.processing.org/t/processing-p5-js-matrix-arrangement-calculation-difference/32265 "2021-09-15T10:47:10Z")

</div>

The same calculation method gets different results in 「processing」 and 「P5.js」. Processing: int total; float itemSize; void setup() { size(400, 400); total = 6; itemSize = width/total; } void draw() { clear()…

---

## [New Windows and Android Gui Lib](https://discourse.processing.org/t/new-windows-and-android-gui-lib/28775)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 20\
**Last updated:** [September 14, 2021, 10:11pm UTC](https://discourse.processing.org/t/new-windows-and-android-gui-lib/28775 "2021-09-14T22:11:16Z")

</div>

First preliminary Build for the gui first the windows Library it allows you to add all the following. I will add more later but for now these were the basic requirements. with system radius. sketch code look…

---

## [Is it possible to determine a mouseclick order for buttons](https://discourse.processing.org/t/is-it-possible-to-determine-a-mouseclick-order-for-buttons/32254)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 10:41pm UTC](https://discourse.processing.org/t/is-it-possible-to-determine-a-mouseclick-order-for-buttons/32254 "2021-09-14T22:41:05Z")

</div>

I want to determine mouseclick orders for buttons, like: first click → on (conditions are true), second click → off, third click - \>on, … and it goes like this. But I could not figure a way to do this.

---

## [Uncaught TypeError: t is undefined (p5.min.js:4604:988), when trying to use button.mousePressed](https://discourse.processing.org/t/uncaught-typeerror-t-is-undefined-p5-min-js988-when-trying-to-use-button-mousepressed/32243)

<div class="topic-metadata">

**Author:** [@kewyj](https://discourse.processing.org/u/kewyj)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 9:47pm UTC](https://discourse.processing.org/t/uncaught-typeerror-t-is-undefined-p5-min-js988-when-trying-to-use-button-mousepressed/32243 "2021-09-14T21:47:24Z")

</div>

I’m making a generator for rooms, and it takes in 3 arguments - number of rooms, min size, and max size of the rooms generated. The code works fine when I try to hard code it: function setup() { createCanvas(1…

---

## [Battle interface](https://discourse.processing.org/t/battle-interface/32184)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 9:44pm UTC](https://discourse.processing.org/t/battle-interface/32184 "2021-09-14T21:44:27Z")

</div>

how do you make a battle interface like pokemon? or perhaps more like this with battle interface i mean you see the two images(one of the enemy and one of the player that i made on pixelart.com), a health bar and di…

---

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

---

## [Guidelines in plain language](https://discourse.processing.org/t/guidelines-in-plain-language/31815)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 11\
**Last updated:** [September 14, 2021, 5:29pm UTC](https://discourse.processing.org/t/guidelines-in-plain-language/31815 "2021-09-14T17:29:37Z")

</div>

First of all I think the forum guidelines are already written in plain language and everybody should read it before posting - but I know that it may still be difficult for some non-native speakers. For example, Creative …

---

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

---

## [Issue loading xml-feed in p5js](https://discourse.processing.org/t/issue-loading-xml-feed-in-p5js/8212)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 12\
**Last updated:** [September 14, 2021, 10:18am UTC](https://discourse.processing.org/t/issue-loading-xml-feed-in-p5js/8212 "2021-09-14T10:18:29Z")

</div>

Hi I am wondering how to correctly get load an xml file from an external website in p5js. In Processing it is no issue using loadXML on the url, but in p5js it seems more complicated, and just calling loadXML with the r…

---

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

---

## [\[valid reason\] Loading image outside Preload (p5js)](https://discourse.processing.org/t/valid-reason-loading-image-outside-preload-p5js/32234)

<div class="topic-metadata">

**Author:** [@Guy\_Yome](https://discourse.processing.org/u/Guy_Yome)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 3:46pm UTC](https://discourse.processing.org/t/valid-reason-loading-image-outside-preload-p5js/32234 "2021-09-13T15:46:34Z")

</div>

Hello! I want to know if there was a way to make sure an image was loaded when loading it outside Preload. I sometimes get “Uncaught ReferenceError: loadImage is not defined” and sometimes it loads. It doesnt seem to be …

---

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

---

## [Beginning with a Headless Raspberry Pi Zero](https://discourse.processing.org/t/beginning-with-a-headless-raspberry-pi-zero/32205)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 1\
**Last updated:** [September 12, 2021, 10:59am UTC](https://discourse.processing.org/t/beginning-with-a-headless-raspberry-pi-zero/32205 "2021-09-12T10:59:34Z")

</div>

Hi - I’m new to the Raspberry Pi - I got one recently because someone was giving away a “Zero” model. I found the tutorial for running Processing for the Pi Zero (here: https://pi.processing.org/) What I’m curious abo…

---

## [Polyglot programming in ruby and python](https://discourse.processing.org/t/polyglot-programming-in-ruby-and-python/32215)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [September 12, 2021, 10:49am UTC](https://discourse.processing.org/t/polyglot-programming-in-ruby-and-python/32215 "2021-09-12T10:49:42Z")

</div>

Recently Jorg Kantel has taken an interest in py5 see his recent blog entry here. Previously I have had some fun translating his python sketches to ruby, here is the py5 Sine Wave sketch translated to JRubyArt:- R1 = 10…

---

## [How to get this texture?](https://discourse.processing.org/t/how-to-get-this-texture/32157)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 5\
**Last updated:** [September 12, 2021, 10:00am UTC](https://discourse.processing.org/t/how-to-get-this-texture/32157 "2021-09-12T10:00:28Z")

</div>

Hello, I’m trying to work on adding more textures to my work. I’d like to understand how this type of texture can be achieved. Thanks for your help.

---

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

---

## [Full rotation using pointLight();](https://discourse.processing.org/t/full-rotation-using-pointlight/32185)

<div class="topic-metadata">

**Author:** [@achip30](https://discourse.processing.org/u/achip30)\
**Replies:** 4\
**Last updated:** [September 12, 2021, 12:04am UTC](https://discourse.processing.org/t/full-rotation-using-pointlight/32185 "2021-09-12T00:04:27Z")

</div>

Hello, my brain hurts. I am using the pointLight method on this sphere. I want the light to rotate around the sphere, but I can’t figure out how to do a complete rotation. I am incrementing the z position, but it stops w…

---

## [P5.js on the web](https://discourse.processing.org/t/p5-js-on-the-web/32206)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 1\
**Last updated:** [September 12, 2021, 2:29am UTC](https://discourse.processing.org/t/p5-js-on-the-web/32206 "2021-09-12T02:29:13Z")

</div>

I have been working on some P5.js code and I’d like to share it on the internet. I know that it’s quite easy to load it onto the P5.js editor site and get a hyperlink - but I’m wondering if there is guide or tutorial for…

---

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

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

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