# Latest

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

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

**Page:** 145

---

## [How to reverse a animation loop that pulls values from an array](https://discourse.processing.org/t/how-to-reverse-a-animation-loop-that-pulls-values-from-an-array/36242)

<div class="topic-metadata">

**Author:** [@gary](https://discourse.processing.org/u/gary)\
**Replies:** 6\
**Last updated:** [April 13, 2022, 6:16pm UTC](https://discourse.processing.org/t/how-to-reverse-a-animation-loop-that-pulls-values-from-an-array/36242 "2022-04-13T18:16:21Z")

</div>

I’m having difficulty figuring out how to reverse the direction of an animated loop when it reaches the end of an array. I found an example online that creates two “states” with an additive and subtractive loop within ea…

---

## [Increment within class](https://discourse.processing.org/t/increment-within-class/36261)

<div class="topic-metadata">

**Author:** [@Whell](https://discourse.processing.org/u/Whell)\
**Replies:** 5\
**Last updated:** [April 13, 2022, 11:40am UTC](https://discourse.processing.org/t/increment-within-class/36261 "2022-04-13T11:40:18Z")

</div>

Hi, i’m trying to draw a button as an exercise, with hover effect, this button i’m doing have a dot close to each corner of the button, on the outside and this dot is supposed to animate entering the button, the problem …

---

## [Getting Messages from Telegram API](https://discourse.processing.org/t/getting-messages-from-telegram-api/36315)

<div class="topic-metadata">

**Author:** [@ivanlucas](https://discourse.processing.org/u/ivanlucas)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 11:37am UTC](https://discourse.processing.org/t/getting-messages-from-telegram-api/36315 "2022-04-13T11:37:48Z")

</div>

Good day to you community! I want to build an interface that display text and audio messages received in a certain Telegram account. Did anyone already work with Telegram API? How could I get text and audio messages in…

---

## [Reading a register value from PLC](https://discourse.processing.org/t/reading-a-register-value-from-plc/36303)

<div class="topic-metadata">

**Author:** [@herdal](https://discourse.processing.org/u/herdal)\
**Replies:** 4\
**Last updated:** [April 13, 2022, 9:40am UTC](https://discourse.processing.org/t/reading-a-register-value-from-plc/36303 "2022-04-13T09:40:46Z")

</div>

Hi , I am conducting a study on reading PLC variables remotely for data processing. I am looking for a way to read register data from a PLC by examining Server and Client examples. How can I read a variable without mak…

---

## [Coordinate ranges from CreateShape (customized shape)](https://discourse.processing.org/t/coordinate-ranges-from-createshape-customized-shape/36306)

<div class="topic-metadata">

**Author:** [@DianaG](https://discourse.processing.org/u/DianaG)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 9:33pm UTC](https://discourse.processing.org/t/coordinate-ranges-from-createshape-customized-shape/36306 "2022-04-12T21:33:10Z")

</div>

Hello Everyone, I am trying to recreate a basic poster with some randomness on the triangles and arcs (on key pressed). The range in which the shapes can move is the full length of the screen’s width and height/2. Howe…

---

## [Sketch seems laggy on primary display but not on secondary one](https://discourse.processing.org/t/sketch-seems-laggy-on-primary-display-but-not-on-secondary-one/35623)

<div class="topic-metadata">

**Author:** [@nicolaskellum](https://discourse.processing.org/u/nicolaskellum)\
**Replies:** 6\
**Last updated:** [April 12, 2022, 8:54pm UTC](https://discourse.processing.org/t/sketch-seems-laggy-on-primary-display-but-not-on-secondary-one/35623 "2022-04-12T20:54:50Z")

</div>

This is something I’ve noticed recently while working on a game with Processing. I plug in my second monitor (1440p) and run my sketch at full screen and it’s smooth, no problem. I try to run the same program on my prim…

---

## [GlitchMe3D: research creation on scenic objects and glitch](https://discourse.processing.org/t/glitchme3d-research-creation-on-scenic-objects-and-glitch/36309)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 6:45pm UTC](https://discourse.processing.org/t/glitchme3d-research-creation-on-scenic-objects-and-glitch/36309 "2022-04-12T18:45:33Z")

</div>

Hi! Flor de Fuego and I have been working on a research-creation project called GlitchMe3D. We mainly use Hydra live-coding environment for visuals but we have p5.js sketches too (also with sound) and I wanted to share t…

---

## [Reset by pressing key](https://discourse.processing.org/t/reset-by-pressing-key/35953)

<div class="topic-metadata">

**Author:** [@DomH](https://discourse.processing.org/u/DomH)\
**Replies:** 2\
**Last updated:** [April 12, 2022, 3:30pm UTC](https://discourse.processing.org/t/reset-by-pressing-key/35953 "2022-04-12T15:30:38Z")

</div>

Hello, I am trying to reset my canvas if pressing a key but cannot get it to work. Any ideas? int boxsize = 80; int cols, rows; ArrayList\<Box\> boxes = new ArrayList\<Box\>(); Box active; public enum Shape { TRIANGLE, …

---

## [How to load the PNG spritesheet properly? (Processing 3.5.4)](https://discourse.processing.org/t/how-to-load-the-png-spritesheet-properly-processing-3-5-4/35190)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 3\
**Last updated:** [April 12, 2022, 2:47pm UTC](https://discourse.processing.org/t/how-to-load-the-png-spritesheet-properly-processing-3-5-4/35190 "2022-04-12T14:47:20Z")

</div>

I have been coding a simple 2D game in Processing 3.5.4 for university purposes, however I’m stuck in the part in which I should make the PNG spritesheet load in screen with all its colours and moves. What I see when I r…

---

## [Exported Processing4 to Windows Error](https://discourse.processing.org/t/exported-processing4-to-windows-error/36298)

<div class="topic-metadata">

**Author:** [@abrawhite](https://discourse.processing.org/u/abrawhite)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 12:20pm UTC](https://discourse.processing.org/t/exported-processing4-to-windows-error/36298 "2022-04-12T12:20:27Z")

</div>

I have a processing 4 app that I built and exported to Windows .exe file. When I run it I’m getting an error saying I need JavaRuntime Environment 17. I was under the impression JRE is at version 8 and JDK is at version…

---

## [Find new Destination Point (rotate PVector)](https://discourse.processing.org/t/find-new-destination-point-rotate-pvector/22585)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 4\
**Last updated:** [April 12, 2022, 8:37am UTC](https://discourse.processing.org/t/find-new-destination-point-rotate-pvector/22585 "2022-04-12T08:37:10Z")

</div>

Hi everyone. I ve this silly problem that i cant figure out. Im creating an object that has an origin point and destination point. When i create a new object, i swap the coordinate and the destination vector is now the…

---

## [ClassCastException](https://discourse.processing.org/t/classcastexception/36290)

<div class="topic-metadata">

**Author:** [@XSun](https://discourse.processing.org/u/XSun)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 2:31am UTC](https://discourse.processing.org/t/classcastexception/36290 "2022-04-12T02:31:03Z")

</div>

Hi everyone, I’m trying to import a class from a separate file. I got ClassCast Exception message. Can anyone help me out? Thank you! add\_library('pdf') from Sq import Sq colorList=\["#F5AD27","#D86D6D","#9CFCA1","#C3CB…

---

## [Java Processing find matching text in a table and get the value from next to it](https://discourse.processing.org/t/java-processing-find-matching-text-in-a-table-and-get-the-value-from-next-to-it/36268)

<div class="topic-metadata">

**Author:** [@oZeppy](https://discourse.processing.org/u/oZeppy)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 2:44pm UTC](https://discourse.processing.org/t/java-processing-find-matching-text-in-a-table-and-get-the-value-from-next-to-it/36268 "2022-04-11T14:44:56Z")

</div>

I have a table and am trying to find a specific string within it, once found I’m trying to get a string from next to it. How would I go about doing that?

---

## [Query and review GSoC proposal 2022](https://discourse.processing.org/t/query-and-review-gsoc-proposal-2022/36272)

<div class="topic-metadata">

**Author:** [@lucky](https://discourse.processing.org/u/lucky)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 2:38pm UTC](https://discourse.processing.org/t/query-and-review-gsoc-proposal-2022/36272 "2022-04-11T14:38:54Z")

</div>

Hello, i had a little question. if we were to contribute to the Add on library project, can we propose more than one library in a single proposal (each one to be a 2 week work , like a small addition of code). The idea …

---

## [iOS15: How to use rotationX, accelerationX](https://discourse.processing.org/t/ios15-how-to-use-rotationx-accelerationx/36278)

<div class="topic-metadata">

**Author:** [@Ingo](https://discourse.processing.org/u/Ingo)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 2:34pm UTC](https://discourse.processing.org/t/ios15-how-to-use-rotationx-accelerationx/36278 "2022-04-11T14:34:29Z")

</div>

Hi, I’d like to write some webapps with my students, but the old code doesn’t work anymore, because of security reasons, I think. So found this video: https://www.youtube.com/watch?v=AbB9ayaffTc and tried it, but it doe…

---

## [Get value from specific column in last row](https://discourse.processing.org/t/get-value-from-specific-column-in-last-row/36250)

<div class="topic-metadata">

**Author:** [@oZeppy](https://discourse.processing.org/u/oZeppy)\
**Replies:** 5\
**Last updated:** [April 11, 2022, 10:23am UTC](https://discourse.processing.org/t/get-value-from-specific-column-in-last-row/36250 "2022-04-11T10:23:42Z")

</div>

Hi. I’m trying to find the last value in a column and print it. I’ve tried table.getRowCount.getString but can’t get it to work, it says getRowCount doesn’t exist. Sorry if this is very basic.

---

## [How would I make a point and click shooter game in processing?](https://discourse.processing.org/t/how-would-i-make-a-point-and-click-shooter-game-in-processing/36204)

<div class="topic-metadata">

**Author:** [@RyanLovesPlanes](https://discourse.processing.org/u/RyanLovesPlanes)\
**Replies:** 4\
**Last updated:** [April 11, 2022, 4:11am UTC](https://discourse.processing.org/t/how-would-i-make-a-point-and-click-shooter-game-in-processing/36204 "2022-04-11T04:11:15Z")

</div>

Hey ya’ll! This is my first post here as I am new to processing in general. I need to make a game for a project I am working on, in which a gun mounted In a fixed position shoots projectiles at incoming targets. I need t…

---

## [P5js open MIDI file](https://discourse.processing.org/t/p5js-open-midi-file/36259)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 4\
**Last updated:** [April 10, 2022, 11:44pm UTC](https://discourse.processing.org/t/p5js-open-midi-file/36259 "2022-04-10T23:44:24Z")

</div>

Is there a way to open MIDI files in P5js? I’ve found a library but is written in typescript Tonejs Also, is there a way to integrate that typescript library with P5js?

---

## [How do I make the stuff in my game matching the display](https://discourse.processing.org/t/how-do-i-make-the-stuff-in-my-game-matching-the-display/36267)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 10:07pm UTC](https://discourse.processing.org/t/how-do-i-make-the-stuff-in-my-game-matching-the-display/36267 "2022-04-10T22:07:37Z")

</div>

Hello. I made a game and tested it on 2 different devices. I noticed that the looks in my game are different. The text doesn’t match what I wanted etc. How do I make a game where the stuff inside it matches the display …

---

## [Audio that loops and distorts](https://discourse.processing.org/t/audio-that-loops-and-distorts/36266)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.processing.org/u/mary)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 9:46pm UTC](https://discourse.processing.org/t/audio-that-loops-and-distorts/36266 "2022-04-10T21:46:04Z")

</div>

I’m having trouble finding the correct parameters to make a button that produces a sound so I went with if key == x do this. When the audio plays it doesn’t stop and gets distorted. How do I fix it? The code in /\* \*/ is …

---

## [Converting a text file into a multidimensional array of data points](https://discourse.processing.org/t/converting-a-text-file-into-a-multidimensional-array-of-data-points/36007)

<div class="topic-metadata">

**Author:** [@TheSynchronomicon](https://discourse.processing.org/u/TheSynchronomicon)\
**Replies:** 4\
**Last updated:** [April 10, 2022, 7:11pm UTC](https://discourse.processing.org/t/converting-a-text-file-into-a-multidimensional-array-of-data-points/36007 "2022-04-10T19:11:15Z")

</div>

I want to be able to convert the following array from a text file \[\[-7.5,-7.5,-5.0\], \[-2.5,-7.5,0.0\], \[2.5,-7.5,0.0\], \[7.5,-7.5,-5.0\]\], , \[\[-7.5,-2.5,-7.5\], \[-2.5,-2.5,5.0\], \[2.5,-2.5,5.0\], \[7.5,-2.5,-7.5\]\], , \[\[-7.5,…

---

## [I need to make a reset timer in my Tic Tac Toe game](https://discourse.processing.org/t/i-need-to-make-a-reset-timer-in-my-tic-tac-toe-game/36149)

<div class="topic-metadata">

**Author:** [@Mori](https://discourse.processing.org/u/Mori)\
**Replies:** 16\
**Last updated:** [April 10, 2022, 2:40pm UTC](https://discourse.processing.org/t/i-need-to-make-a-reset-timer-in-my-tic-tac-toe-game/36149 "2022-04-10T14:40:34Z")

</div>

homework policy \* asking questions int\[\] Felder = new int\[9\]; int spielerFlag = 0; int x = 0; int y = 0; int win = 0; int tp = 0; boolean reset = false; void setup() { size(displayWidth, displayHeight); strokeWeig…

---

## [How send multiple values from Processing to Arduino](https://discourse.processing.org/t/how-send-multiple-values-from-processing-to-arduino/36167)

<div class="topic-metadata">

**Author:** [@yohan](https://discourse.processing.org/u/yohan)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 3:51pm UTC](https://discourse.processing.org/t/how-send-multiple-values-from-processing-to-arduino/36167 "2022-04-08T15:51:33Z")

</div>

I’m using shiftr to receive data into processing and I want to send it to Arduino. I’ve stored 8 values into an array and sent it to Arduino as a string. I’m having trouble with receiving the string in Arduino from proce…

---

## [Countdown timer in python](https://discourse.processing.org/t/countdown-timer-in-python/36243)

<div class="topic-metadata">

**Author:** [@snakey](https://discourse.processing.org/u/snakey)\
**Replies:** 2\
**Last updated:** [April 10, 2022, 10:03am UTC](https://discourse.processing.org/t/countdown-timer-in-python/36243 "2022-04-10T10:03:06Z")

</div>

Hi! I’m having trouble with a program that will start a countdown timer when a button is clicked. The problem is that the timer will start regardless if I clicked the button. buttonPressed = False start = False def set…

---

## [Processing equivalent to P5.js "repeat()"](https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247)

<div class="topic-metadata">

**Author:** [@Taxicletter](https://discourse.processing.org/u/Taxicletter)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 9:56am UTC](https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247 "2022-04-10T09:56:58Z")

</div>

Hi, On the openprocessing website I see in the p5.js programs “repeat()” where you can call a function and set beginning and end-values for variables and the step with which to increase. I know you can use a for-loop o…

---

## [Discussion and Review of Proposal - Addon Library Development - p5-teach.js](https://discourse.processing.org/t/discussion-and-review-of-proposal-addon-library-development-p5-teach-js/29065)

<div class="topic-metadata">

**Author:** [@two.ticks](https://discourse.processing.org/u/two.ticks)\
**Replies:** 19\
**Last updated:** [April 10, 2022, 6:18am UTC](https://discourse.processing.org/t/discussion-and-review-of-proposal-addon-library-development-p5-teach-js/29065 "2022-04-10T06:18:54Z")

</div>

Hi everyone! I am Aditya Siddheshwar. I am interested in building an addon library for teaching. This project would involve developing tools for teaching through p5.js, adding functions to animate shapes and exporting th…

---

## [Object attributes randomly removed?](https://discourse.processing.org/t/object-attributes-randomly-removed/36214)

<div class="topic-metadata">

**Author:** [@PrincessLeia](https://discourse.processing.org/u/PrincessLeia)\
**Replies:** 2\
**Last updated:** [April 9, 2022, 10:28pm UTC](https://discourse.processing.org/t/object-attributes-randomly-removed/36214 "2022-04-09T22:28:14Z")

</div>

Hi, so I’ve been learning the maths involved with the calculations for the reflection velocity of objects hitting uneven or circular surfaces. In this project: p5.js Web Editor I have the problem where most of my objec…

---

## [How do I find the last time a specific string is said in a column of a table?](https://discourse.processing.org/t/how-do-i-find-the-last-time-a-specific-string-is-said-in-a-column-of-a-table/36240)

<div class="topic-metadata">

**Author:** [@oZeppy](https://discourse.processing.org/u/oZeppy)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 9:39pm UTC](https://discourse.processing.org/t/how-do-i-find-the-last-time-a-specific-string-is-said-in-a-column-of-a-table/36240 "2022-04-09T21:39:40Z")

</div>

Hi! I’m working on a large project and have gotten to a stage where I need to find the last time a specific string is stated in a column and get a value in a different cell on the same row. I have some ideas on how to do…

---

## [P5 COLOR GRIDS but how?](https://discourse.processing.org/t/p5-color-grids-but-how/36185)

<div class="topic-metadata">

**Author:** [@FrankyWes](https://discourse.processing.org/u/FrankyWes)\
**Replies:** 3\
**Last updated:** [April 9, 2022, 7:35am UTC](https://discourse.processing.org/t/p5-color-grids-but-how/36185 "2022-04-09T07:35:25Z")

</div>

Hi hello! Recently I coded a grid system to create typography. My question, how can I change the color of individual tiles?? Here’s the code, feel free to play around!! int amount = 10; int\[\]\[\] state = new int\[amount…

---

## [PImage and Image switch](https://discourse.processing.org/t/pimage-and-image-switch/36222)

<div class="topic-metadata">

**Author:** [@Parinaz](https://discourse.processing.org/u/Parinaz)\
**Replies:** 2\
**Last updated:** [April 9, 2022, 5:06am UTC](https://discourse.processing.org/t/pimage-and-image-switch/36222 "2022-04-09T05:06:43Z")

</div>

Dear I want to create an atmosphere to generate an structure by switching colors, I wanted those layers to come in order and make that structure. However, when I press every key I designed In the keyPressed event for …

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

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