# Latest

**URL:** https://discourse.processing.org/latest.md?page=91

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

**Page:** 92

---

## [Help with creating classes for my code](https://discourse.processing.org/t/help-with-creating-classes-for-my-code/40471)

<div class="topic-metadata">

**Author:** [@EB1](https://discourse.processing.org/u/EB1)\
**Replies:** 8\
**Last updated:** [January 8, 2023, 2:43pm UTC](https://discourse.processing.org/t/help-with-creating-classes-for-my-code/40471 "2023-01-08T14:43:29Z")

</div>

I have created a simple game where enemies move towards a stationary target but I am struggling to separate the code and put them into classes. I want to have 2 classes called enemy and target. I have attempted to move t…

---

## [Syntax error with void setup and draw functions](https://discourse.processing.org/t/syntax-error-with-void-setup-and-draw-functions/40508)

<div class="topic-metadata">

**Author:** [@vinnyvin](https://discourse.processing.org/u/vinnyvin)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 12:23pm UTC](https://discourse.processing.org/t/syntax-error-with-void-setup-and-draw-functions/40508 "2023-01-08T12:23:31Z")

</div>

void setup() { size(200, 200); rectMode(CENTER); noStroke(); fill(0, 102, 153, 204); } void draw() { background(255); rect(width-mouseX, height-mouseY, 50, 50); rect(mouseX, mouseY, 50, 50); } I keep gett…

---

## [Rotation movement](https://discourse.processing.org/t/rotation-movement/40509)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 12:08pm UTC](https://discourse.processing.org/t/rotation-movement/40509 "2023-01-08T12:08:47Z")

</div>

I’m trying to make a fun game & watched a few videos on rotation, but my rotation aint being consistant. I drew a red line where it first started moving so i could check, but now it moving backwards sideways it barely fo…

---

## [Bergen's Grid Illusion - wonky order of execution](https://discourse.processing.org/t/bergens-grid-illusion-wonky-order-of-execution/40505)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 12:03pm UTC](https://discourse.processing.org/t/bergens-grid-illusion-wonky-order-of-execution/40505 "2023-01-08T12:03:42Z")

</div>

hi All, I’m doing something wrong here - the grey “axles” should be behind the white ellipses, not the other way around as they are here - I’ve spent a couple of hours moving around code, but just can’t fix it - duhh! f…

---

## [Use 3D Graphics on Android for draw an .obj file offscreen](https://discourse.processing.org/t/use-3d-graphics-on-android-for-draw-an-obj-file-offscreen/40483)

<div class="topic-metadata">

**Author:** [@mbbl33](https://discourse.processing.org/u/mbbl33)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 9:48am UTC](https://discourse.processing.org/t/use-3d-graphics-on-android-for-draw-an-obj-file-offscreen/40483 "2023-01-08T09:48:38Z")

</div>

Hello all, I am trying to draw an .obj file offscreen under Android. The image should then be passed to OpenCV for further use as a matrix. In 2D the whole thing already works without problems. public class ObjDrawer…

---

## [Python mode "immediate" processing?](https://discourse.processing.org/t/python-mode-immediate-processing/40504)

<div class="topic-metadata">

**Author:** [@SailorMike](https://discourse.processing.org/u/SailorMike)\
**Replies:** 7\
**Last updated:** [January 8, 2023, 3:53am UTC](https://discourse.processing.org/t/python-mode-immediate-processing/40504 "2023-01-08T03:53:11Z")

</div>

I’m trying to learn Processing from “Math Adventures with Python” . The author shows a function that returns a number running from a command line (\>\>\>). How does one access a command environment line from Processing?

---

## [How I could resizes the object for character for a game](https://discourse.processing.org/t/how-i-could-resizes-the-object-for-character-for-a-game/40502)

<div class="topic-metadata">

**Author:** [@kayiist](https://discourse.processing.org/u/kayiist)\
**Replies:** 1\
**Last updated:** [January 8, 2023, 3:32am UTC](https://discourse.processing.org/t/how-i-could-resizes-the-object-for-character-for-a-game/40502 "2023-01-08T03:32:57Z")

</div>

float x = 200; float y = 200; int\[\] pipeX, pipeY; //Declaring void setup() { size(800, 620); bg =loadImage("bg.jpg"); top\_pipes = loadImage("top.png"); bottom\_pipes = loadImage("bottom.png"); pipeX = new int…

---

## [Redraw function with color change/mouse interaction](https://discourse.processing.org/t/redraw-function-with-color-change-mouse-interaction/40479)

<div class="topic-metadata">

**Author:** [@lemoney](https://discourse.processing.org/u/lemoney)\
**Replies:** 4\
**Last updated:** [January 7, 2023, 9:59pm UTC](https://discourse.processing.org/t/redraw-function-with-color-change-mouse-interaction/40479 "2023-01-07T21:59:34Z")

</div>

Hi, I’m in a class where we adapt code to fulfill the assignments. I’m working on mouse interaction with the redraw() function in Processing. What I’m trying to do is have the leaf colours change everytime the mouse is…

---

## [I tried making this stack column chart interactive by making the values of the columns appear at the up left corner with pressing the mouse over the column, but it is only appearing the first row of data](https://discourse.processing.org/t/i-tried-making-this-stack-column-chart-interactive-by-making-the-values-of-the-columns-appear-at-the-up-left-corner-with-pressing-the-mouse-over-the-column-but-it-is-only-appearing-the-first-row-of-data/40480)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 6\
**Last updated:** [January 7, 2023, 5:53pm UTC](https://discourse.processing.org/t/i-tried-making-this-stack-column-chart-interactive-by-making-the-values-of-the-columns-appear-at-the-up-left-corner-with-pressing-the-mouse-over-the-column-but-it-is-only-appearing-the-first-row-of-data/40480 "2023-01-07T17:53:31Z")

</div>

Hello there! So, this is the code: // Import the CSV file Table data; void setup() { size(850, 600); // Increase the width to 850 background(255); data = loadTable("data.csv", "header"); // Find the maximu…

---

## [Reading a file with createReader](https://discourse.processing.org/t/reading-a-file-with-createreader/40499)

<div class="topic-metadata">

**Author:** [@pacoruiz](https://discourse.processing.org/u/pacoruiz)\
**Replies:** 1\
**Last updated:** [January 7, 2023, 5:17pm UTC](https://discourse.processing.org/t/reading-a-file-with-createreader/40499 "2023-01-07T17:17:39Z")

</div>

Hi Im trying to make a code that read data from a file. I have just copy the code from the reference page, but it doesnt work. It read an empty line after the end of the file. Don’t know why. My file has this: 3,6 4,8 …

---

## [Grid collage of random PImage](https://discourse.processing.org/t/grid-collage-of-random-pimage/40447)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 1\
**Last updated:** [January 7, 2023, 6:52am UTC](https://discourse.processing.org/t/grid-collage-of-random-pimage/40447 "2023-01-07T06:52:54Z")

</div>

Hi Processing community! I just created the following slit collage which randomly places areas of the image on the x axis. How do I make my image into a grid of random areas of the image by adding the y axis? Now: G…

---

## [Create .csv file with data in a column (table)](https://discourse.processing.org/t/create-csv-file-with-data-in-a-column-table/40493)

<div class="topic-metadata">

**Author:** [@fsdonato](https://discourse.processing.org/u/fsdonato)\
**Replies:** 1\
**Last updated:** [January 7, 2023, 6:15am UTC](https://discourse.processing.org/t/create-csv-file-with-data-in-a-column-table/40493 "2023-01-07T06:15:35Z")

</div>

I’m writing a code that receives the value of a potentiometer at all times (float val\_pot2) I created a function to record these values in a table in .csv format I have the following problem: I am not able to save a ne…

---

## [Basic Wave Simulator](https://discourse.processing.org/t/basic-wave-simulator/40494)

<div class="topic-metadata">

**Author:** [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Replies:** 0\
**Last updated:** [January 7, 2023, 12:16am UTC](https://discourse.processing.org/t/basic-wave-simulator/40494 "2023-01-07T00:16:54Z")

</div>

Edit: Click the screen to play Hi all, so I came across this webpage detailing a basic wave simulator in C# and was blown away at all the code, Wave Simulator with C# - CodeProject, figured there had to be an easier way…

---

## [Code work on browser too slow, why?](https://discourse.processing.org/t/code-work-on-browser-too-slow-why/40455)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 5\
**Last updated:** [January 6, 2023, 10:35pm UTC](https://discourse.processing.org/t/code-work-on-browser-too-slow-why/40455 "2023-01-06T22:35:05Z")

</div>

Hi there… I mashup some codes and i got this final work. https://vrtxart.github.io/cover3/. I wondering wy its too slow after i upload it to guithub and open in a browser. The smoke efect almost do not work. this is…

---

## [Help drawing recursive trees](https://discourse.processing.org/t/help-drawing-recursive-trees/34656)

<div class="topic-metadata">

**Author:** [@43zombiegit](https://discourse.processing.org/u/43zombiegit)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 8:38pm UTC](https://discourse.processing.org/t/help-drawing-recursive-trees/34656 "2023-01-06T20:38:39Z")

</div>

Hi guys, I have the following code. I’m trying to get the branches to draw slowly through the draw function and not during one draw iteration but can’t figure it out given the recursion. If anyone could help that would …

---

## [Putting code into classes](https://discourse.processing.org/t/putting-code-into-classes/40474)

<div class="topic-metadata">

**Author:** [@JB1](https://discourse.processing.org/u/JB1)\
**Replies:** 2\
**Last updated:** [January 6, 2023, 1:20pm UTC](https://discourse.processing.org/t/putting-code-into-classes/40474 "2023-01-06T13:20:52Z")

</div>

I have a working game where the enemy moves towards a stationary target in the centre of the screen, I am struggling to put this code into classes I have attempted to put the code in classes but I go horribly wrong somew…

---

## [Help with a quiz I need to create with the random()](https://discourse.processing.org/t/help-with-a-quiz-i-need-to-create-with-the-random/40409)

<div class="topic-metadata">

**Author:** [@iinnessic](https://discourse.processing.org/u/iinnessic)\
**Replies:** 17\
**Last updated:** [January 6, 2023, 12:42pm UTC](https://discourse.processing.org/t/help-with-a-quiz-i-need-to-create-with-the-random/40409 "2023-01-06T12:42:15Z")

</div>

Hello! So I’m really desperate about that homework I’ve got to do. So the task is creating a quiz with 3 images as the answer options and those images always change their place. To chose one of those answers you click a…

---

## [IllegalArgumentException: This table has no column named ' '](https://discourse.processing.org/t/illegalargumentexception-this-table-has-no-column-named/40464)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 12:15pm UTC](https://discourse.processing.org/t/illegalargumentexception-this-table-has-no-column-named/40464 "2023-01-06T12:15:51Z")

</div>

Hello there! So, I have the following csv table: Jahr;Insgesamt 2022;17392 2021;18037 2020;18515 2019;18351 2018;17695 2017;16745 2016;16088 2015;15083 2014;14316 2013;13241 2012;12158 2011;11147 And this is my code: …

---

## [Array comparison](https://discourse.processing.org/t/array-comparison/37207)

<div class="topic-metadata">

**Author:** [@mvb](https://discourse.processing.org/u/mvb)\
**Replies:** 4\
**Last updated:** [January 6, 2023, 11:03am UTC](https://discourse.processing.org/t/array-comparison/37207 "2023-01-06T11:03:05Z")

</div>

Hello, I have the following code, you have to get a canvas with two lines of numbers from the two arrays. The top row must contain the values of the top\_array array and the bottom row must contain the values of the bott…

---

## [The function addColumn(String) does not exist](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 9\
**Last updated:** [January 5, 2023, 7:14pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459 "2023-01-05T19:14:50Z")

</div>

Hello! I tried running this Table code from the page of Processing https://processing.org/reference/Table.html Table table; void setup() { table = new Table(); table.addColumn("id"); table.addColumn("species…

---

## [Weird and unpredictable effect of strokeWeight](https://discourse.processing.org/t/weird-and-unpredictable-effect-of-strokeweight/40468)

<div class="topic-metadata">

**Author:** [@vadasambhar](https://discourse.processing.org/u/vadasambhar)\
**Replies:** 2\
**Last updated:** [January 5, 2023, 6:58pm UTC](https://discourse.processing.org/t/weird-and-unpredictable-effect-of-strokeweight/40468 "2023-01-05T18:58:08Z")

</div>

So I’m trying my hand at generative art, with nested inscribed circles within a square. What’s weird is that the exact same code gives wildly different output based on changing just the strokeWeight. Here’s the link to…

---

## [Use save(); in the background](https://discourse.processing.org/t/use-save-in-the-background/40446)

<div class="topic-metadata">

**Author:** [@Lissie](https://discourse.processing.org/u/Lissie)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 4:43pm UTC](https://discourse.processing.org/t/use-save-in-the-background/40446 "2023-01-05T16:43:13Z")

</div>

When i want to use the save function, the programm lags for a few milliseconds, can i make it so it does it in the background?

---

## [Syntax incomplete statement or extra code near 'extraneous input' help](https://discourse.processing.org/t/syntax-incomplete-statement-or-extra-code-near-extraneous-input-help/40462)

<div class="topic-metadata">

**Author:** [@Ethan1](https://discourse.processing.org/u/Ethan1)\
**Replies:** 8\
**Last updated:** [January 5, 2023, 5:12pm UTC](https://discourse.processing.org/t/syntax-incomplete-statement-or-extra-code-near-extraneous-input-help/40462 "2023-01-05T17:12:10Z")

</div>

I have an assignment to do where there is a stationary target in the middle and enemies move towards the target and the user will need to click over the enemies to destroy them. I have encountered a problem in my Target …

---

## [Camera in Processing (ViewPort)](https://discourse.processing.org/t/camera-in-processing-viewport/40442)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 6\
**Last updated:** [January 5, 2023, 4:05pm UTC](https://discourse.processing.org/t/camera-in-processing-viewport/40442 "2023-01-05T16:05:39Z")

</div>

Hello Community Processing. I want to make a 2D game with a top view, I need the camera to follow the player, but how many times I have not tried it either “floated” or flew away.

---

## [WEBGL positioning issue array of torus objects](https://discourse.processing.org/t/webgl-positioning-issue-array-of-torus-objects/40458)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 2\
**Last updated:** [January 5, 2023, 12:38pm UTC](https://discourse.processing.org/t/webgl-positioning-issue-array-of-torus-objects/40458 "2023-01-05T12:38:12Z")

</div>

Hey in this specific code I have a problem aligning an array of torus objects using WEBGL. When I switch it to circle with the same coordinates it runs fine. But when I use translate and Torus everything is off. I feel …

---

## [Help with animation doppler sound-wave propagation](https://discourse.processing.org/t/help-with-animation-doppler-sound-wave-propagation/40429)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 9\
**Last updated:** [January 5, 2023, 11:51am UTC](https://discourse.processing.org/t/help-with-animation-doppler-sound-wave-propagation/40429 "2023-01-05T11:51:08Z")

</div>

Hi! I am trying to create an abstract animation visualizing how sound waves propagate emitting from a moving object. Basically circles growing in radius while the x position of the object changes. Like in this animatio…

---

## [Order of layers not working as expected](https://discourse.processing.org/t/order-of-layers-not-working-as-expected/40452)

<div class="topic-metadata">

**Author:** [@slacle](https://discourse.processing.org/u/slacle)\
**Replies:** 10\
**Last updated:** [January 5, 2023, 11:04am UTC](https://discourse.processing.org/t/order-of-layers-not-working-as-expected/40452 "2023-01-05T11:04:28Z")

</div>

I want the circles on top and all the lines below them. Since I’m drawing the circles last, I expected them to all be on top of the lines. How can I solve this problem? p.s.: This is only a small simplified piece of wh…

---

## [I would like to know if there is any way to execute something with a short time without freeze the code](https://discourse.processing.org/t/i-would-like-to-know-if-there-is-any-way-to-execute-something-with-a-short-time-without-freeze-the-code/40445)

<div class="topic-metadata">

**Author:** [@Benjamin21](https://discourse.processing.org/u/Benjamin21)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 9:50am UTC](https://discourse.processing.org/t/i-would-like-to-know-if-there-is-any-way-to-execute-something-with-a-short-time-without-freeze-the-code/40445 "2023-01-05T09:50:46Z")

</div>

Hello, I would like to know if there is any way to execute something after some time without using delay() because it’s freezing the code while using this delay. If anyone can help me !! Thanks :wink:

---

## [Как сделать трехфазную нулевую схему?](https://discourse.processing.org/t/topic/40454)

<div class="topic-metadata">

**Author:** [@fancer](https://discourse.processing.org/u/fancer)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 7:36am UTC](https://discourse.processing.org/t/topic/40454 "2023-01-05T07:36:57Z")

</div>

Good afternoon! I need help writing code for a sifu with a three-phase zero circuit, I can’t figure out how to write it, in my example I only have a three-phase bridge circuit

---

## [Rasterizing a rotating PShape 3d Obj](https://discourse.processing.org/t/rasterizing-a-rotating-pshape-3d-obj/40448)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 11:25pm UTC](https://discourse.processing.org/t/rasterizing-a-rotating-pshape-3d-obj/40448 "2023-01-04T23:25:56Z")

</div>

Hi Processing Community! I am running into a wall creating the rasterized layer for my rotating PShape 3d models. Here is my current code: PShape obj, obj2; PImage txtr; float theta; PGraphics canvas; void setup(){ …

[Previous page](https://discourse.processing.org/latest.md?page=90)

[Next page](https://discourse.processing.org/latest.md?page=92)
