# Processing

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

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

**Page:** 132

---

## [Need coding ideas](https://discourse.processing.org/t/need-coding-ideas/30095)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 7\
**Last updated:** [May 14, 2021, 2:13pm UTC](https://discourse.processing.org/t/need-coding-ideas/30095 "2021-05-14T14:13:30Z")

</div>

(I don’t know what tag to set, so I just set Processing) Does anyone have any fun coding challenges to do? Perhaps a website or something like that. Preferably some simple games, since they are usually interesting with …

---

## [Making an object stop, and move forward when key pressed (power bar)](https://discourse.processing.org/t/making-an-object-stop-and-move-forward-when-key-pressed-power-bar/29936)

<div class="topic-metadata">

**Author:** [@Trish](https://discourse.processing.org/u/Trish)\
**Replies:** 3\
**Last updated:** [May 13, 2021, 8:26pm UTC](https://discourse.processing.org/t/making-an-object-stop-and-move-forward-when-key-pressed-power-bar/29936 "2021-05-13T20:26:13Z")

</div>

Hello, I’m trying to code a ball that, when the program is executed, moves side to side. When a key is pressed (and held down), a power bar appears displaying how much power the ball is going to shoot with when the key i…

---

## [How to draw a circle in 3D when i have an array of n points that lay on the circle](https://discourse.processing.org/t/how-to-draw-a-circle-in-3d-when-i-have-an-array-of-n-points-that-lay-on-the-circle/30083)

<div class="topic-metadata">

**Author:** [@knoedel](https://discourse.processing.org/u/knoedel)\
**Replies:** 2\
**Last updated:** [May 13, 2021, 3:16pm UTC](https://discourse.processing.org/t/how-to-draw-a-circle-in-3d-when-i-have-an-array-of-n-points-that-lay-on-the-circle/30083 "2021-05-13T15:16:51Z")

</div>

Hello everyone! I am working on a project where I want to visualize the Hopf Fibration using the stereographic projection from 4D onto 3D. The maths part is working fine, but I have problems plotting the circles in 3D …

---

## [Change moving angle by changing the moving directions/speeds](https://discourse.processing.org/t/change-moving-angle-by-changing-the-moving-directions-speeds/30065)

<div class="topic-metadata">

**Author:** [@helloscoopz](https://discourse.processing.org/u/helloscoopz)\
**Replies:** 12\
**Last updated:** [May 13, 2021, 3:12pm UTC](https://discourse.processing.org/t/change-moving-angle-by-changing-the-moving-directions-speeds/30065 "2021-05-13T15:12:00Z")

</div>

void turn(float angle) { // need to change xSpeed and ySpeed so that object will move // with that changed angle } My problem is that I need to change the direction of the moving object counterclockwise with the a…

---

## [Is there any feasible way to use a model created using teachable machine in processing?](https://discourse.processing.org/t/is-there-any-feasible-way-to-use-a-model-created-using-teachable-machine-in-processing/30085)

<div class="topic-metadata">

**Author:** [@bontempos](https://discourse.processing.org/u/bontempos)\
**Replies:** 0\
**Last updated:** [May 13, 2021, 1:53pm UTC](https://discourse.processing.org/t/is-there-any-feasible-way-to-use-a-model-created-using-teachable-machine-in-processing/30085 "2021-05-13T13:53:59Z")

</div>

I’m in between converting to P5 a huge amount of matrix calculations I made a while ago for processing… because, then, I can use the ml5 library with image classification. But that’s a bit silly if I can have a simple w…

---

## [G4P ToggleButton (change state)](https://discourse.processing.org/t/g4p-togglebutton-change-state/30063)

<div class="topic-metadata">

**Author:** [@Liu.Exit](https://discourse.processing.org/u/Liu.Exit)\
**Replies:** 3\
**Last updated:** [May 13, 2021, 9:34am UTC](https://discourse.processing.org/t/g4p-togglebutton-change-state/30063 "2021-05-13T09:34:16Z")

</div>

Hello, is it possible to change the state of “G4P ToggleButton” other than with the mouse? (For example by receiving information from the serial port.) Thank you

---

## [Implement friction and gravity in a simple Spring](https://discourse.processing.org/t/implement-friction-and-gravity-in-a-simple-spring/30070)

<div class="topic-metadata">

**Author:** [@ikermorales](https://discourse.processing.org/u/ikermorales)\
**Replies:** 1\
**Last updated:** [May 12, 2021, 9:00pm UTC](https://discourse.processing.org/t/implement-friction-and-gravity-in-a-simple-spring/30070 "2021-05-12T21:00:45Z")

</div>

Hello, Im trying to make a Spring in Proccesing, I need to add “friction” and “gravity” to my Spring to finish the project but I dont figure it out how. I have managed to get here, I have created a basic Spring, but I d…

---

## [TicTacToe Game Support](https://discourse.processing.org/t/tictactoe-game-support/30050)

<div class="topic-metadata">

**Author:** [@Syntax64](https://discourse.processing.org/u/Syntax64)\
**Replies:** 6\
**Last updated:** [May 12, 2021, 3:54pm UTC](https://discourse.processing.org/t/tictactoe-game-support/30050 "2021-05-12T15:54:22Z")

</div>

What am I missing? Right Click works, but not Left Click. Most, if not all the code should be correct. Am i messing up a loop somewhere? I tried debugging but to no avail char\[\]\[\] mat; boolean xturn; void setup(){ siz…

---

## [Calculating pmouseX and pmouseY (Kinect)](https://discourse.processing.org/t/calculating-pmousex-and-pmousey-kinect/30051)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 5\
**Last updated:** [May 12, 2021, 9:39am UTC](https://discourse.processing.org/t/calculating-pmousex-and-pmousey-kinect/30051 "2021-05-12T09:39:35Z")

</div>

Hey, I’ve got a visual which interacts with the mouseX, mouseY and pmouseX, pmouseY. I wanna change it into interacting with the Kinect body track, however my problem is that I have no idea about changing the pmouse valu…

---

## [Data type for ArrayList get() function (class, OOP)](https://discourse.processing.org/t/data-type-for-arraylist-get-function-class-oop/30049)

<div class="topic-metadata">

**Author:** [@MBMNGT](https://discourse.processing.org/u/MBMNGT)\
**Replies:** 5\
**Last updated:** [May 12, 2021, 9:31am UTC](https://discourse.processing.org/t/data-type-for-arraylist-get-function-class-oop/30049 "2021-05-12T09:31:31Z")

</div>

Hi For Array List functions, I would like to know the type of data returned by the Particle part = particles.get(0) function ? after some try, ;;; it’s not float or int or string … so, what is ? Thank in advance Eric …

---

## [Frame stepping with GStreamer StepEvent](https://discourse.processing.org/t/frame-stepping-with-gstreamer-stepevent/29993)

<div class="topic-metadata">

**Author:** [@ermaciu](https://discourse.processing.org/u/ermaciu)\
**Replies:** 8\
**Last updated:** [May 11, 2021, 10:39pm UTC](https://discourse.processing.org/t/frame-stepping-with-gstreamer-stepevent/29993 "2021-05-11T22:39:48Z")

</div>

Hey everyone. I’m trying to use Processing for analyzing movement manually in videos. Unfortunately the video library doesn’t appear to have frame-stepping functionality built in, and the suggested example of calculatin…

---

## [Shiffman's Fourier Series](https://discourse.processing.org/t/shiffmans-fourier-series/29962)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 2\
**Last updated:** [May 11, 2021, 10:28pm UTC](https://discourse.processing.org/t/shiffmans-fourier-series/29962 "2021-05-11T22:28:43Z")

</div>

I’m going through the mess of sketches I have and found an interesting one I got from the coding train. I modified it by adding a slider to increase the number of circles it uses. When the number of circles gets big, t…

---

## [How to make array ip address UDP message when receiving colour arrays from Processing on Arduino](https://discourse.processing.org/t/how-to-make-array-ip-address-udp-message-when-receiving-colour-arrays-from-processing-on-arduino/29843)

<div class="topic-metadata">

**Author:** [@eunbiline98](https://discourse.processing.org/u/eunbiline98)\
**Replies:** 4\
**Last updated:** [May 11, 2021, 9:46pm UTC](https://discourse.processing.org/t/how-to-make-array-ip-address-udp-message-when-receiving-colour-arrays-from-processing-on-arduino/29843 "2021-05-11T21:46:15Z")

</div>

I have successfully sent colour array to esp32,but i have a problem if run program processing sometimes like quitting program and notification “WARNING: no real random source present! Could not run the sketch (Target VM…

---

## [Directional halo on 2D graphic](https://discourse.processing.org/t/directional-halo-on-2d-graphic/29832)

<div class="topic-metadata">

**Author:** [@afkqs](https://discourse.processing.org/u/afkqs)\
**Replies:** 8\
**Last updated:** [May 11, 2021, 9:02pm UTC](https://discourse.processing.org/t/directional-halo-on-2d-graphic/29832 "2021-05-11T21:02:32Z")

</div>

Hi there, This is a pretty open question but I wanted to ask the community for some insights. How would you proceed to create directional halo on a 2D graphic, whether a shape or an image? An example of the effect I’m…

---

## [How to make flag?](https://discourse.processing.org/t/how-to-make-flag/30055)

<div class="topic-metadata">

**Author:** [@savaxn](https://discourse.processing.org/u/savaxn)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 7:46pm UTC](https://discourse.processing.org/t/how-to-make-flag/30055 "2021-05-11T19:46:03Z")

</div>

please format code with \</\> button \* homework policy \* asking questions The flag should move once every few seconds to the right and then to the left

---

## [When i run processing video library it tells me not installed properly](https://discourse.processing.org/t/when-i-run-processing-video-library-it-tells-me-not-installed-properly/30014)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 3\
**Last updated:** [May 11, 2021, 3:30pm UTC](https://discourse.processing.org/t/when-i-run-processing-video-library-it-tells-me-not-installed-properly/30014 "2021-05-11T15:30:56Z")

</div>

i download it from the contribution manager in processing. it still has error

---

## [Coding Questions - Sound and Video](https://discourse.processing.org/t/coding-questions-sound-and-video/30041)

<div class="topic-metadata">

**Author:** [@kaiitj](https://discourse.processing.org/u/kaiitj)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 2:33pm UTC](https://discourse.processing.org/t/coding-questions-sound-and-video/30041 "2021-05-11T14:33:08Z")

</div>

I’m still very new to coding but I’m currently working with a 3D model that is motorized and reacts to sound, and I’m trying to figure out the best way to translate that digitally. I’ve done a code that “reveals” an imag…

---

## [Processing and Keith Peters' "Foundation Actionscript 3.0 Animation: Making Things Move!"](https://discourse.processing.org/t/processing-and-keith-peters-foundation-actionscript-3-0-animation-making-things-move/29787)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 12\
**Last updated:** [May 8, 2021, 5:27pm UTC](https://discourse.processing.org/t/processing-and-keith-peters-foundation-actionscript-3-0-animation-making-things-move/29787 "2021-05-08T17:27:16Z")

</div>

Hi I am reading the book by Keith Peters Foundation Actionscript 3.0 Animation: Making Things Move! (which is indirectly referenced at https://processing.org/examples/bouncy) It seems to me that all its codes could b…

---

## [How to save login](https://discourse.processing.org/t/how-to-save-login/30033)

<div class="topic-metadata">

**Author:** [@jessie\_lorentzen1](https://discourse.processing.org/u/jessie_lorentzen1)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 8:10am UTC](https://discourse.processing.org/t/how-to-save-login/30033 "2021-05-11T08:10:57Z")

</div>

Hi guys. I’m coding an app at the moment, but i’m having trouble makeing it save the sign up data in the program. Any tips or exampels to what i might do?

---

## [Processing's eventual switch from Java as primary language, over to Python?](https://discourse.processing.org/t/processings-eventual-switch-from-java-as-primary-language-over-to-python/23688)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 19\
**Last updated:** [May 11, 2021, 3:09am UTC](https://discourse.processing.org/t/processings-eventual-switch-from-java-as-primary-language-over-to-python/23688 "2021-05-11T03:09:00Z")

</div>

I remember reading something recently by one of the Processing higher-ups, saying that eventually Processing would most likely leave Java behind and switch over to Python as its primary language. Presumably this would me…

---

## [Questions about AI (theoretical)](https://discourse.processing.org/t/questions-about-ai-theoretical/28142)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 13\
**Last updated:** [May 11, 2021, 1:46am UTC](https://discourse.processing.org/t/questions-about-ai-theoretical/28142 "2021-05-11T01:46:24Z")

</div>

Just some questions about AI, which I don’t know where to ask. Will probably use it in the future. Is machine learning just a “framework” which you can put into a random situation and it would learn? what actual types …

---

## [How to access photos if importing Processing into eclipse?](https://discourse.processing.org/t/how-to-access-photos-if-importing-processing-into-eclipse/29995)

<div class="topic-metadata">

**Author:** [@Magic](https://discourse.processing.org/u/Magic)\
**Replies:** 3\
**Last updated:** [May 10, 2021, 11:59pm UTC](https://discourse.processing.org/t/how-to-access-photos-if-importing-processing-into-eclipse/29995 "2021-05-10T23:59:09Z")

</div>

Hello, I am currently working on a photomosaic project. It’s the same one that The Coding Train did a video on. I just tried to port it into eclipse, and am adding some extra functions. How does one make it to where ecli…

---

## [Random horizontal or vertical character movement](https://discourse.processing.org/t/random-horizontal-or-vertical-character-movement/30002)

<div class="topic-metadata">

**Author:** [@oussama10](https://discourse.processing.org/u/oussama10)\
**Replies:** 5\
**Last updated:** [May 10, 2021, 11:17pm UTC](https://discourse.processing.org/t/random-horizontal-or-vertical-character-movement/30002 "2021-05-10T23:17:05Z")

</div>

I am creating a bomberman game and I arrived to adding the enemies but I dont know how to do it. An enemy moves linearly, from top to bottom or from left to right, until it meets a barrier; he then reverses his directio…

---

## [How to run 2 java sketches in a single window](https://discourse.processing.org/t/how-to-run-2-java-sketches-in-a-single-window/29908)

<div class="topic-metadata">

**Author:** [@chaima](https://discourse.processing.org/u/chaima)\
**Replies:** 11\
**Last updated:** [May 10, 2021, 9:00am UTC](https://discourse.processing.org/t/how-to-run-2-java-sketches-in-a-single-window/29908 "2021-05-10T09:00:38Z")

</div>

Hello, I need to run two independent sketches in a single window. Is there any way to divide the window into 2 frames and run each sketch in a frame?

---

## [How do i make an object bounce off another](https://discourse.processing.org/t/how-do-i-make-an-object-bounce-off-another/29999)

<div class="topic-metadata">

**Author:** [@cloofs](https://discourse.processing.org/u/cloofs)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 4:19am UTC](https://discourse.processing.org/t/how-do-i-make-an-object-bounce-off-another/29999 "2021-05-10T04:19:43Z")

</div>

I’m doing a code where i want a ball(pong) to bounce off a rectangle(bouncer). does anyone know the code for a bounce off?

---

## [Bouncing line with for loops](https://discourse.processing.org/t/bouncing-line-with-for-loops/29972)

<div class="topic-metadata">

**Author:** [@Bromo](https://discourse.processing.org/u/Bromo)\
**Replies:** 15\
**Last updated:** [May 10, 2021, 1:06am UTC](https://discourse.processing.org/t/bouncing-line-with-for-loops/29972 "2021-05-10T01:06:44Z")

</div>

Hi, I’m currently trying to make a program that draws a line moving across the screen, if it reaches the edge ideally it’ll move in the opposite direction. When I run the program it seems to be stuck on the far left side…

---

## [3.3.6 Manual set-up](https://discourse.processing.org/t/3-3-6-manual-set-up/29987)

<div class="topic-metadata">

**Author:** [@delorean](https://discourse.processing.org/u/delorean)\
**Replies:** 2\
**Last updated:** [May 9, 2021, 10:36pm UTC](https://discourse.processing.org/t/3-3-6-manual-set-up/29987 "2021-05-09T22:36:32Z")

</div>

Hello, Processing community, I hope you can help, I have an old version of Processing 3.3.6 which I am moving from one computer to another. I have a sketch which uses video and webcam, it opens but hangs, and I think i…

---

## [Simple java TTS (text-to-speech) library / tool](https://discourse.processing.org/t/simple-java-tts-text-to-speech-library-tool/29986)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 2:35pm UTC](https://discourse.processing.org/t/simple-java-tts-text-to-speech-library-tool/29986 "2021-05-09T14:35:37Z")

</div>

Hi! I recently received a request for a text to speech program with a pause button. Is there any java library that has simple syntax and sounds understandable? Thank you.

---

## [Display PImage array elements in specific locations](https://discourse.processing.org/t/display-pimage-array-elements-in-specific-locations/29979)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 2\
**Last updated:** [May 9, 2021, 10:20am UTC](https://discourse.processing.org/t/display-pimage-array-elements-in-specific-locations/29979 "2021-05-09T10:20:36Z")

</div>

Hi! I’ve written a sketch that loads one PImage then slices this image into 16 equal (200px x 200px) “slices”. I have then created an array of PImage “slices” with 16 slots. I have written a for loop to look through the …

---

## [Save mouse coordinates and draw arrows with it](https://discourse.processing.org/t/save-mouse-coordinates-and-draw-arrows-with-it/29982)

<div class="topic-metadata">

**Author:** [@elenanito](https://discourse.processing.org/u/elenanito)\
**Replies:** 2\
**Last updated:** [May 9, 2021, 12:26pm UTC](https://discourse.processing.org/t/save-mouse-coordinates-and-draw-arrows-with-it/29982 "2021-05-09T12:26:06Z")

</div>

Im working on a program that draws arrows with the mouse, so for the tip of the arrow to be pointing in the right direction Im using PVector (one for the base and one for the tip of the arrow). I made it work so you can …

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

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