# Latest

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

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

**Page:** 389

---

## [How can I constantly save variables in tables as the program runs?](https://discourse.processing.org/t/how-can-i-constantly-save-variables-in-tables-as-the-program-runs/18160)

<div class="topic-metadata">

**Author:** [@abdullahmq](https://discourse.processing.org/u/abdullahmq)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 8:06am UTC](https://discourse.processing.org/t/how-can-i-constantly-save-variables-in-tables-as-the-program-runs/18160 "2020-02-27T08:06:42Z")

</div>

Hi, I am using saveTable() function in my code and the problem I am getting is that my table is constantly saved after every 20 seconds but after about 400 rows I start to get rows with only zeros…I am really confused…re…

---

## [Table javascript p5.js](https://discourse.processing.org/t/table-javascript-p5-js/18168)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 0\
**Last updated:** [February 27, 2020, 2:09am UTC](https://discourse.processing.org/t/table-javascript-p5-js/18168 "2020-02-27T02:09:40Z")

</div>

Am I doing this correct? I read the tutoral on making Tables in p5.js, but when I try to make one it won’t run. ATM i’m trying to get a table to hold all the positions of the walls. here main var wall = \[35\]; var bs = …

---

## [PR review (p5-web-editor)](https://discourse.processing.org/t/pr-review-p5-web-editor/18104)

<div class="topic-metadata">

**Author:** [@mynk](https://discourse.processing.org/u/mynk)\
**Replies:** 2\
**Last updated:** [February 27, 2020, 1:42am UTC](https://discourse.processing.org/t/pr-review-p5-web-editor/18104 "2020-02-27T01:42:16Z")

</div>

Hi guys, any p5-web-editor dev here… I would request you to please review the pr that I made few days ago, I don’t know If the issue was relevant, or my solution was accurate . Sorry if this was not the right place to po…

---

## [Chunk loading possibility's](https://discourse.processing.org/t/chunk-loading-possibilitys/18146)

<div class="topic-metadata">

**Author:** [@Phaleron](https://discourse.processing.org/u/Phaleron)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 10:16pm UTC](https://discourse.processing.org/t/chunk-loading-possibilitys/18146 "2020-02-26T22:16:35Z")

</div>

Hi all, I am struggling a bit deciding what i should use with my chunk loading system. my initial idea was to cycle trough all possible locations around the player, check if the chunk already exist, if not, create a ne…

---

## [Need help for Gsoc 2020 for a new library on particle system](https://discourse.processing.org/t/need-help-for-gsoc-2020-for-a-new-library-on-particle-system/18092)

<div class="topic-metadata">

**Author:** [@ShreyanshAnchlia](https://discourse.processing.org/u/ShreyanshAnchlia)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 9:40pm UTC](https://discourse.processing.org/t/need-help-for-gsoc-2020-for-a-new-library-on-particle-system/18092 "2020-02-26T21:40:47Z")

</div>

Hi, I am Shreyansh, B.Tech undergraduate student from India. For GSoC 2020 I wanted to make a dedicated library for a particle system. Currently, as it stands right now the particle system is a very complicated topic an…

---

## [Why does this code run as desired but the flow of colors seems backwards](https://discourse.processing.org/t/why-does-this-code-run-as-desired-but-the-flow-of-colors-seems-backwards/18149)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 12\
**Last updated:** [February 26, 2020, 9:51pm UTC](https://discourse.processing.org/t/why-does-this-code-run-as-desired-but-the-flow-of-colors-seems-backwards/18149 "2020-02-26T21:51:39Z")

</div>

I guess this is primarily a question about flow of the program – aka what’s going on under the hood. The code does run and mouse interaction is as desired, but I don’t understand why. Probably something simple I’m not se…

---

## [Generative Art Tutorials with p5](https://discourse.processing.org/t/generative-art-tutorials-with-p5/18042)

<div class="topic-metadata">

**Author:** [@tanvikumar](https://discourse.processing.org/u/tanvikumar)\
**Replies:** 1\
**Last updated:** [February 26, 2020, 8:08pm UTC](https://discourse.processing.org/t/generative-art-tutorials-with-p5/18042 "2020-02-26T20:08:33Z")

</div>

Hello Community! This is Tanvi Kumar, a final year student at NIT-T, India. I’ve been working with p5 for a while now and did GSoC’18 under The Processing Foundation. Post this I’ve had the opportunity to interact with …

---

## [Need help with buttons and array](https://discourse.processing.org/t/need-help-with-buttons-and-array/17117)

<div class="topic-metadata">

**Author:** [@TjarkTV](https://discourse.processing.org/u/TjarkTV)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 8:14pm UTC](https://discourse.processing.org/t/need-help-with-buttons-and-array/17117 "2020-02-26T20:14:22Z")

</div>

hey guys I have a problem. I want to make a programm where i can press buttons to add something to an array which i can read, so like an numpad. the layout and all is great but when i want to add the function that when i…

---

## [MiM - A modern math editor for web](https://discourse.processing.org/t/mim-a-modern-math-editor-for-web/12936)

<div class="topic-metadata">

**Author:** [@Oskar](https://discourse.processing.org/u/Oskar)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 7:37pm UTC](https://discourse.processing.org/t/mim-a-modern-math-editor-for-web/12936 "2020-02-26T19:37:57Z")

</div>

Hi Everyone, @Alexandra and I are working on this for GSoC, and would love to get your feedback. You’re welcome to play around with the editor, just visit https://math-in-motion.github.io/early-demo/ Cheers!

---

## [How to check if an int array contains a number](https://discourse.processing.org/t/how-to-check-if-an-int-array-contains-a-number/18068)

<div class="topic-metadata">

**Author:** [@Yannik](https://discourse.processing.org/u/Yannik)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 7:14pm UTC](https://discourse.processing.org/t/how-to-check-if-an-int-array-contains-a-number/18068 "2020-02-26T19:14:21Z")

</div>

How can I check if an array contains a number? Here’s an example: int \[\] array = new int \[200\]; array\[0\] = int(random(0,200)); If(array.contains 20){ println(“20”); }

---

## [Class Extensions possible error](https://discourse.processing.org/t/class-extensions-possible-error/18148)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 7:04pm UTC](https://discourse.processing.org/t/class-extensions-possible-error/18148 "2020-02-26T19:04:57Z")

</div>

Just wandering if this is a bug. I have a constructor called tab. then I have created a horizontal tab constructor which extends tab This class works seemingly fine but when I use the following constructor I am…

---

## [How to contribute to processing.py](https://discourse.processing.org/t/how-to-contribute-to-processing-py/17885)

<div class="topic-metadata">

**Author:** [@parth1811](https://discourse.processing.org/u/parth1811)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 6:50pm UTC](https://discourse.processing.org/t/how-to-contribute-to-processing-py/17885 "2020-02-26T18:50:12Z")

</div>

I wish to contribute to the project, I have successfully set up everything. But have a doubt, about Once you have made some changes in processing.py how can you load the development version on the PDE for testing? In mo…

---

## [Sound in Processing with Jackd on Linux Ubuntu](https://discourse.processing.org/t/sound-in-processing-with-jackd-on-linux-ubuntu/18139)

<div class="topic-metadata">

**Author:** [@jeanFrancoisHicter](https://discourse.processing.org/u/jeanFrancoisHicter)\
**Replies:** 8\
**Last updated:** [February 26, 2020, 6:20pm UTC](https://discourse.processing.org/t/sound-in-processing-with-jackd-on-linux-ubuntu/18139 "2020-02-26T18:20:34Z")

</div>

Hey, folks! I use Processing with sound library. The sound is heavily chopped – as I make dramatic LFO treatments – with the native Pulseaudio server, so I try to use Jackd to see if it is better… But I have no sound …

---

## [G4P TOOL and code](https://discourse.processing.org/t/g4p-tool-and-code/18095)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 6:03pm UTC](https://discourse.processing.org/t/g4p-tool-and-code/18095 "2020-02-26T18:03:36Z")

</div>

I’ve created a window that has a button that opens a 2nd window. The code shows an orange underlining some worries but I do not understand what is missing. The code runs normally.

---

## [Line problem with rotatingY axis](https://discourse.processing.org/t/line-problem-with-rotatingy-axis/18131)

<div class="topic-metadata">

**Author:** [@iriquois](https://discourse.processing.org/u/iriquois)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 4:36pm UTC](https://discourse.processing.org/t/line-problem-with-rotatingy-axis/18131 "2020-02-26T16:36:52Z")

</div>

the line becomes distorted when rotating in the Y axis, but if I make the same thing in processing it works fine! any ideas? let btn, btn2; let y = 0; let x = 0; function setup() { createCanvas(600, 400, WEBGL); …

---

## [About screen pressure sensitivity](https://discourse.processing.org/t/about-screen-pressure-sensitivity/17987)

<div class="topic-metadata">

**Author:** [@tayyarare](https://discourse.processing.org/u/tayyarare)\
**Replies:** 4\
**Last updated:** [February 26, 2020, 4:29pm UTC](https://discourse.processing.org/t/about-screen-pressure-sensitivity/17987 "2020-02-26T16:29:30Z")

</div>

Hi there, I want to use screen touch pressure about size or opacity.Is it possible? I can’t reach pressure sensor or something else.

---

## [Minimum Spanning Tree - Minimum distance problem](https://discourse.processing.org/t/minimum-spanning-tree-minimum-distance-problem/18038)

<div class="topic-metadata">

**Author:** [@Giyomu](https://discourse.processing.org/u/Giyomu)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 3:46pm UTC](https://discourse.processing.org/t/minimum-spanning-tree-minimum-distance-problem/18038 "2020-02-26T15:46:14Z")

</div>

Hey there, I am having some issue with the minimum distance method. In this test, I am trying to reproduce; 9.9: Minimum Spanning Tree from the coding train in Processing.js (https://www.youtube.com/watch?v=BxabnKrOjT0&t…

---

## [Differences between renderers](https://discourse.processing.org/t/differences-between-renderers/18141)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [February 26, 2020, 2:32pm UTC](https://discourse.processing.org/t/differences-between-renderers/18141 "2020-02-26T14:32:22Z")

</div>

Other than textsize what other differences should be expected from renderers and is there a way to adjust this. void settings(){ //size(W,H,JAVA2D); if(Terrain3d){ size(W,H,P3D); }else{ size(W,H,FX2D); /…

---

## [Generative photo collage](https://discourse.processing.org/t/generative-photo-collage/18129)

<div class="topic-metadata">

**Author:** [@jeaan](https://discourse.processing.org/u/jeaan)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 2:17pm UTC](https://discourse.processing.org/t/generative-photo-collage/18129 "2020-02-26T14:17:18Z")

</div>

I’m attempting to create a visual collage with the same effect as this one: Multiplicity + Masking + Cropping + Size Variation + Random Placement are the key factors I’d like to integrate.I’m new to Processing so I’m …

---

## [Random walker through points](https://discourse.processing.org/t/random-walker-through-points/18040)

<div class="topic-metadata">

**Author:** [@Giyomu](https://discourse.processing.org/u/Giyomu)\
**Replies:** 15\
**Last updated:** [February 26, 2020, 10:50am UTC](https://discourse.processing.org/t/random-walker-through-points/18040 "2020-02-26T10:50:30Z")

</div>

Hi there, I am working on a random walker through points, and I am struggling to get the next closest point in the walker class. The idea is to have one or few random walkers going from point to point until there is no…

---

## [Why won't this run? (keyPressed)](https://discourse.processing.org/t/why-wont-this-run-keypressed/18082)

<div class="topic-metadata">

**Author:** [@ebec4](https://discourse.processing.org/u/ebec4)\
**Replies:** 25\
**Last updated:** [February 26, 2020, 1:46pm UTC](https://discourse.processing.org/t/why-wont-this-run-keypressed/18082 "2020-02-26T13:46:11Z")

</div>

void setup() { frameRate(10); size(500, 500); } void draw() { background(200); if (keyPressed) { if (key == CODED) { if (keyCode == UP) { color c20=color(108,52,131); //PUR…

---

## [How to make code with other editors also for Processing!](https://discourse.processing.org/t/how-to-make-code-with-other-editors-also-for-processing/17938)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 9:41am UTC](https://discourse.processing.org/t/how-to-make-code-with-other-editors-also-for-processing/17938 "2020-02-26T09:41:01Z")

</div>

Execuse me, but Processing editor is not good choice for creating bigger projects, like big games, big programs etc. I hate some thinks on this Processing basic editor, there is: All the files, wich haves code, must be…

---

## [Help with java library (AI for Games)](https://discourse.processing.org/t/help-with-java-library-ai-for-games/18039)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 9:22am UTC](https://discourse.processing.org/t/help-with-java-library-ai-for-games/18039 "2020-02-26T09:22:38Z")

</div>

I found an ai library in java & thought should try it. I’m doing the tutorial, but get an error Idk how to fix. this is in main import game2dai.\*; import game2dai.entities.\*; import game2dai.entityshapes.\*; import game…

---

## [Varying scale at frameCount](https://discourse.processing.org/t/varying-scale-at-framecount/17896)

<div class="topic-metadata">

**Author:** [@ChrisHaz3ll](https://discourse.processing.org/u/ChrisHaz3ll)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 8:41am UTC](https://discourse.processing.org/t/varying-scale-at-framecount/17896 "2020-02-26T08:41:30Z")

</div>

I have an animation that graduates between colours at intervals… I’m also exploring how to adjust the scale at varying points along frameCount… I’ve tried tinkering with scale at different points (both within the for loo…

---

## [Drawing hexagon grid radially from center](https://discourse.processing.org/t/drawing-hexagon-grid-radially-from-center/17874)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 12:54am UTC](https://discourse.processing.org/t/drawing-hexagon-grid-radially-from-center/17874 "2020-02-26T00:54:58Z")

</div>

Is there a single formula I can use for dist that will bring these red hexagons to the right place? dist = unitDiameter \* 0.75 works for ringNum\[2\], then the more distant rings start getting too close. PVector figureCe…

---

## [Opening live camera feed via button press](https://discourse.processing.org/t/opening-live-camera-feed-via-button-press/18084)

<div class="topic-metadata">

**Author:** [@Dubs](https://discourse.processing.org/u/Dubs)\
**Replies:** 1\
**Last updated:** [February 25, 2020, 11:49pm UTC](https://discourse.processing.org/t/opening-live-camera-feed-via-button-press/18084 "2020-02-25T23:49:48Z")

</div>

Trying to have a live web-cam feed open when a specific button is pressed… there will be two buttons and I’d need two different video feeds to open (they will have different mods to the facial recognition aspect) Very n…

---

## [Beginner: help with classes and game](https://discourse.processing.org/t/beginner-help-with-classes-and-game/18074)

<div class="topic-metadata">

**Author:** [@amprocessing](https://discourse.processing.org/u/amprocessing)\
**Replies:** 7\
**Last updated:** [February 25, 2020, 11:01pm UTC](https://discourse.processing.org/t/beginner-help-with-classes-and-game/18074 "2020-02-25T23:01:58Z")

</div>

So I am making a small maze game. I want to add objects that when the ball touches it, they die. I have been practicing on another sketch. I’ve used classes for the aliens and the ball, as I thought this would be the bes…

---

## [Weird rectangle](https://discourse.processing.org/t/weird-rectangle/18073)

<div class="topic-metadata">

**Author:** [@bugotc14](https://discourse.processing.org/u/bugotc14)\
**Replies:** 6\
**Last updated:** [February 25, 2020, 8:40pm UTC](https://discourse.processing.org/t/weird-rectangle/18073 "2020-02-25T20:40:01Z")

</div>

run the code and see, IDK why but the rectangle position is so weird, I tried to make a button and make it in the middle but for some reason, it won’t work int rectSizeX = 300,rectSizeY = 250; // X and Y size of re…

---

## [Applying bounds to a force directed graph](https://discourse.processing.org/t/applying-bounds-to-a-force-directed-graph/18045)

<div class="topic-metadata">

**Author:** [@dandotdot](https://discourse.processing.org/u/dandotdot)\
**Replies:** 4\
**Last updated:** [February 25, 2020, 9:47am UTC](https://discourse.processing.org/t/applying-bounds-to-a-force-directed-graph/18045 "2020-02-25T09:47:43Z")

</div>

Hi there, I have a sketch that uses a force directed graph code example I found, but there’s nothing in it to stop clusters of nodes drifting off-screen due to the repulsive force, and the fact that clusters are not alw…

---

## [Processing 3.5.4 p5js error](https://discourse.processing.org/t/processing-3-5-4-p5js-error/17351)

<div class="topic-metadata">

**Author:** [@marzinp](https://discourse.processing.org/u/marzinp)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 7:52am UTC](https://discourse.processing.org/t/processing-3-5-4-p5js-error/17351 "2020-02-25T07:52:55Z")

</div>

Hi, since I installed Processing 3.5.4 and updated p5js mode, I can’t load any p5js sketch. Error: “Failed to open http://127.0.0.1:8524 Aucune application n’est associée au fichier spécifié pour cette opération.” Pro…

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

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