# Processing

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

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

**Page:** 260

---

## [Cant find solution for restart](https://discourse.processing.org/t/cant-find-solution-for-restart/15462)

<div class="topic-metadata">

**Author:** [@actuallyagod](https://discourse.processing.org/u/actuallyagod)\
**Replies:** 1\
**Last updated:** [November 13, 2019, 7:51pm UTC](https://discourse.processing.org/t/cant-find-solution-for-restart/15462 "2019-11-13T19:51:19Z")

</div>

Hi All! I have been trying to add a restart button to this code but variables dont seem to work for me or maybe im doing it wrong. As of now i have tried to add: void keyPressed() { if(key == 'r') { restart(); } } …

---

## [Problem with Library Methods](https://discourse.processing.org/t/problem-with-library-methods/15455)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 8\
**Last updated:** [November 13, 2019, 5:10pm UTC](https://discourse.processing.org/t/problem-with-library-methods/15455 "2019-11-13T17:10:14Z")

</div>

Hi I’m trying to create a processing library using eclipse, everything Looks fine so far but if I use following Code for a class package test; import processing.core.\*; public class Testclass{ PAppplet parent; Testc…

---

## [Java SE and installing for 64-bit OSX](https://discourse.processing.org/t/java-se-and-installing-for-64-bit-osx/15038)

<div class="topic-metadata">

**Author:** [@neari](https://discourse.processing.org/u/neari)\
**Replies:** 5\
**Last updated:** [November 13, 2019, 4:56pm UTC](https://discourse.processing.org/t/java-se-and-installing-for-64-bit-osx/15038 "2019-11-13T16:56:33Z")

</div>

Hi, I am a newbie to the forum but have some working experiences with processing™ I just wanted to know what Apple Mac is using to replace Java virtual machine, I was asked to install latest version of Java SE 15.0 but …

---

## [Png loses alpha when use rotate function,](https://discourse.processing.org/t/png-loses-alpha-when-use-rotate-function/15450)

<div class="topic-metadata">

**Author:** [@juju](https://discourse.processing.org/u/juju)\
**Replies:** 18\
**Last updated:** [November 13, 2019, 4:37pm UTC](https://discourse.processing.org/t/png-loses-alpha-when-use-rotate-function/15450 "2019-11-13T16:37:53Z")

</div>

How come the png alpha doesn’t work when rotating in P3D? .png files included below PImage img1, img2; int x = 1; void setup() { size(900, 600, P3D); img1 = loadImage("circle.png"); img2 =loadImage("square.png"…

---

## [How do you make a function run the same way as draw()?](https://discourse.processing.org/t/how-do-you-make-a-function-run-the-same-way-as-draw/15373)

<div class="topic-metadata">

**Author:** [@24stevek](https://discourse.processing.org/u/24stevek)\
**Replies:** 13\
**Last updated:** [November 13, 2019, 12:42pm UTC](https://discourse.processing.org/t/how-do-you-make-a-function-run-the-same-way-as-draw/15373 "2019-11-13T12:42:44Z")

</div>

Hi, guys, I’m a Korean student who just started learning processing. My English might be awkward but please don’t be mad at it. So, I am making this project that shows the moving of electrons. I made an animation of an …

---

## [My sound file wont play or work and I don't know why](https://discourse.processing.org/t/my-sound-file-wont-play-or-work-and-i-dont-know-why/15445)

<div class="topic-metadata">

**Author:** [@DudVudAura](https://discourse.processing.org/u/DudVudAura)\
**Replies:** 6\
**Last updated:** [November 13, 2019, 5:48am UTC](https://discourse.processing.org/t/my-sound-file-wont-play-or-work-and-i-dont-know-why/15445 "2019-11-13T05:48:23Z")

</div>

import processing.sound.\*; SoundFile file; String audioName = "tank shot.wav"; String path; void setup() { frameRate(60); background(0); size(1500,1500); file = new SoundFile(this, "Sleigh Ride.mp3"); file…

---

## [Error with Serial Communication using the call response method](https://discourse.processing.org/t/error-with-serial-communication-using-the-call-response-method/15432)

<div class="topic-metadata">

**Author:** [@SaltyApe](https://discourse.processing.org/u/SaltyApe)\
**Replies:** 1\
**Last updated:** [November 13, 2019, 2:29am UTC](https://discourse.processing.org/t/error-with-serial-communication-using-the-call-response-method/15432 "2019-11-13T02:29:47Z")

</div>

Hello! I am a newbie in Arduino and Processing and I am having some issues with receiving data using serial call response. Processing outputs Error Disabling SerialEvent() for COM6 null and does not print the data i send…

---

## [Help with Intersecting Functions of Game Elements](https://discourse.processing.org/t/help-with-intersecting-functions-of-game-elements/15345)

<div class="topic-metadata">

**Author:** [@las6525](https://discourse.processing.org/u/las6525)\
**Replies:** 5\
**Last updated:** [November 10, 2019, 11:20am UTC](https://discourse.processing.org/t/help-with-intersecting-functions-of-game-elements/15345 "2019-11-10T11:20:52Z")

</div>

Hi All, I am playing around with building an incredibly simple two-person competitive game. Here’s the concept: One player uses the mouse, EI the ‘spaceship’ that shoots a ‘light beam’ when the mouse is clicked. The ot…

---

## [How to make an advanced Score in Processing?](https://discourse.processing.org/t/how-to-make-an-advanced-score-in-processing/15436)

<div class="topic-metadata">

**Author:** [@Leyonad](https://discourse.processing.org/u/Leyonad)\
**Replies:** 3\
**Last updated:** [November 12, 2019, 10:09pm UTC](https://discourse.processing.org/t/how-to-make-an-advanced-score-in-processing/15436 "2019-11-12T22:09:40Z")

</div>

Hello, I’m developing a game in processing. It’s about hitting a ball with a bat so that the ball is thrown back. If you hit the ball, you get a point or the score increases by 1. I want to add a shop to the main menu,…

---

## [Bouncing Throwable Ball](https://discourse.processing.org/t/bouncing-throwable-ball/15429)

<div class="topic-metadata">

**Author:** [@riverhawc](https://discourse.processing.org/u/riverhawc)\
**Replies:** 3\
**Last updated:** [November 12, 2019, 8:25pm UTC](https://discourse.processing.org/t/bouncing-throwable-ball/15429 "2019-11-12T20:25:09Z")

</div>

Hi all. I’ve made the basic bouncing ball, but I’m trying to make it so that it maintains the velocity of the cursor. is there something I did wrong? PVector location; PVector velocity; PVector gravity; int sz = 100; …

---

## [Getting 2D Array of Objects to Randomly Scale](https://discourse.processing.org/t/getting-2d-array-of-objects-to-randomly-scale/15390)

<div class="topic-metadata">

**Author:** [@Lane](https://discourse.processing.org/u/Lane)\
**Replies:** 8\
**Last updated:** [November 12, 2019, 7:53pm UTC](https://discourse.processing.org/t/getting-2d-array-of-objects-to-randomly-scale/15390 "2019-11-12T19:53:34Z")

</div>

Hello! I’m trying to make my background of stars randomly scale. I used a 2D array of class Star to display what I have right now. I’m very new to processing so explaining this to me in basic terms would be very much app…

---

## [How to detect path progression direction](https://discourse.processing.org/t/how-to-detect-path-progression-direction/15404)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 8\
**Last updated:** [November 12, 2019, 7:36pm UTC](https://discourse.processing.org/t/how-to-detect-path-progression-direction/15404 "2019-11-12T19:36:43Z")

</div>

hi guys, let’s say I have different paths from a vector file, and I want them to be all the vertices evolving in clockwise direction how there are now how I want them to be what I have done so far is: I have alr…

---

## [Does Processing have something equivalent to a "cloud variable"?](https://discourse.processing.org/t/does-processing-have-something-equivalent-to-a-cloud-variable/15385)

<div class="topic-metadata">

**Author:** [@Devon123](https://discourse.processing.org/u/Devon123)\
**Replies:** 4\
**Last updated:** [November 12, 2019, 6:13pm UTC](https://discourse.processing.org/t/does-processing-have-something-equivalent-to-a-cloud-variable/15385 "2019-11-12T18:13:36Z")

</div>

In Scratch, a cloud variable is a variable that is stored in the cloud. So if someone on one computer changes it, anyone using that scetch on a different computer will see the variable change. Is there a way to do this i…

---

## [Touchscreen Question](https://discourse.processing.org/t/touchscreen-question/15405)

<div class="topic-metadata">

**Author:** [@Ladan](https://discourse.processing.org/u/Ladan)\
**Replies:** 10\
**Last updated:** [November 12, 2019, 3:11pm UTC](https://discourse.processing.org/t/touchscreen-question/15405 "2019-11-12T15:11:57Z")

</div>

I haave written a programm, in which you can click buttons, and a text will appear. Now, I have to know, if MousePressed() works on a touchscreen monitor, that means you dont click the mouse, but you tap the screen. @kl…

---

## [Can I upload an image to the web?](https://discourse.processing.org/t/can-i-upload-an-image-to-the-web/15222)

<div class="topic-metadata">

**Author:** [@PhoenixStormJr](https://discourse.processing.org/u/PhoenixStormJr)\
**Replies:** 10\
**Last updated:** [November 12, 2019, 10:18am UTC](https://discourse.processing.org/t/can-i-upload-an-image-to-the-web/15222 "2019-11-12T10:18:33Z")

</div>

Ok this isn’t a question about the code itself. In processing examples there’s one where they download an image from the internet and display it. My question is “is there a website that I can upload an image and use it’s…

---

## [Which library? for simple GUI programming, need to use it with Arduino](https://discourse.processing.org/t/which-library-for-simple-gui-programming-need-to-use-it-with-arduino/15299)

<div class="topic-metadata">

**Author:** [@jk2019](https://discourse.processing.org/u/jk2019)\
**Replies:** 6\
**Last updated:** [November 12, 2019, 6:42am UTC](https://discourse.processing.org/t/which-library-for-simple-gui-programming-need-to-use-it-with-arduino/15299 "2019-11-12T06:42:03Z")

</div>

Hi, Could someone please inform which library should I use? Need - want to create a simple GUI for the data captured from Arduino. Want to reflect changes in the data, and may also display data. Former alone is also en…

---

## [Array and ArrayList performances for an expanding number of items (not a question)](https://discourse.processing.org/t/array-and-arraylist-performances-for-an-expanding-number-of-items-not-a-question/15347)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 3\
**Last updated:** [November 11, 2019, 11:49pm UTC](https://discourse.processing.org/t/array-and-arraylist-performances-for-an-expanding-number-of-items-not-a-question/15347 "2019-11-11T23:49:14Z")

</div>

At last I decided to take the time to write some code to test wether ArrayList of regular arrays are the fastest for stuff like particles (my own objects, with an expanding array size). My test code is not very interest…

---

## [Processing to Arduino Serial Library Example](https://discourse.processing.org/t/processing-to-arduino-serial-library-example/11143)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 5\
**Last updated:** [November 11, 2019, 11:44pm UTC](https://discourse.processing.org/t/processing-to-arduino-serial-library-example/11143 "2019-11-11T23:44:32Z")

</div>

The SimpleWrite example in the Processing examples was not working on PCs I had available to me. The Arduino resets when establishing a serial connection. I added a delay(1000) to allow the Arduino to reset after se…

---

## [Problem with Bezier Curves when exporting SVG from illustrator,](https://discourse.processing.org/t/problem-with-bezier-curves-when-exporting-svg-from-illustrator/15232)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 4\
**Last updated:** [November 6, 2019, 3:19pm UTC](https://discourse.processing.org/t/problem-with-bezier-curves-when-exporting-svg-from-illustrator/15232 "2019-11-06T15:19:16Z")

</div>

hi all, I came across this little problem: when exporting a bezier curve as svg from illustrator and then importing it to processing, the control points are considered as vertices, does anyone know how to access anchor …

---

## [How to load images using an arrayList?](https://discourse.processing.org/t/how-to-load-images-using-an-arraylist/15263)

<div class="topic-metadata">

**Author:** [@B\_s](https://discourse.processing.org/u/B_s)\
**Replies:** 6\
**Last updated:** [November 8, 2019, 10:41pm UTC](https://discourse.processing.org/t/how-to-load-images-using-an-arraylist/15263 "2019-11-08T22:41:32Z")

</div>

Hello, Complete newbie to processing so any help is appreciated and apologies for my lack of language knowledge. I am trying to make a grid of 9 images that, when keyPressed, randomises the order of the images. I have …

---

## [Glowy ellipses using javaFX bloom \[MULTIPLE QUESTIONS\]](https://discourse.processing.org/t/glowy-ellipses-using-javafx-bloom-multiple-questions/15156)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 27\
**Last updated:** [November 11, 2019, 9:38pm UTC](https://discourse.processing.org/t/glowy-ellipses-using-javafx-bloom-multiple-questions/15156 "2019-11-11T21:38:36Z")

</div>

Multiple questions \> How to make glowy ellipses using javaFX bloom? How to make ellipse motion effect that it fades in to the ellipse? Thank you EDIT : And how to import javafx bloom library?

---

## [A JSONArray text must start with '\[' Error](https://discourse.processing.org/t/a-jsonarray-text-must-start-with-error/15389)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 2\
**Last updated:** [November 11, 2019, 9:25pm UTC](https://discourse.processing.org/t/a-jsonarray-text-must-start-with-error/15389 "2019-11-11T21:25:50Z")

</div>

Hey, So I’m trying to get to grips using JSON with processing and I’m having a couple of problems. Currently I’ve created a piece of code which uses the Runescape API to loop through a list of known in game item id’s (…

---

## [Interacting with GitHub in Processing](https://discourse.processing.org/t/interacting-with-github-in-processing/15309)

<div class="topic-metadata">

**Author:** [@metype](https://discourse.processing.org/u/metype)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 8:29pm UTC](https://discourse.processing.org/t/interacting-with-github-in-processing/15309 "2019-11-11T20:29:06Z")

</div>

I am making a project that I occasionally want to push and pull from a GitHub repository, this is cause I have a level editor, and I want it to be possible for people to upload their levels so others in other places can …

---

## [Key and mouse pressed with boolean](https://discourse.processing.org/t/key-and-mouse-pressed-with-boolean/15274)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 13\
**Last updated:** [November 11, 2019, 8:30pm UTC](https://discourse.processing.org/t/key-and-mouse-pressed-with-boolean/15274 "2019-11-11T20:30:51Z")

</div>

Hi, i wonder if it’s possible to use a boolean with the code proposed by @tutantontut import processing.event.MouseEvent; boolean\[\] mouses = new boolean\[2\]; boolean pressLeft = true; boolean pressRight = true; boolean …

---

## [Background(image) not working](https://discourse.processing.org/t/background-image-not-working/14305)

<div class="topic-metadata">

**Author:** [@Ladan](https://discourse.processing.org/u/Ladan)\
**Replies:** 73\
**Last updated:** [November 11, 2019, 7:58pm UTC](https://discourse.processing.org/t/background-image-not-working/14305 "2019-11-11T19:58:25Z")

</div>

I have written this code: void Setup(){ size(1920, 1080); PImage img; img = loadImage("desktop-wallpaper-9.jpg"); background(img); } and it just opens this window:

---

## [How do I move an object upwards?](https://discourse.processing.org/t/how-do-i-move-an-object-upwards/15288)

<div class="topic-metadata">

**Author:** [@ImConfused](https://discourse.processing.org/u/ImConfused)\
**Replies:** 3\
**Last updated:** [November 11, 2019, 7:48pm UTC](https://discourse.processing.org/t/how-do-i-move-an-object-upwards/15288 "2019-11-11T19:48:15Z")

</div>

I need help I’m doing this project and I don’t know how to move the object upwards.

---

## [Live datafeed in Processing](https://discourse.processing.org/t/live-datafeed-in-processing/15251)

<div class="topic-metadata">

**Author:** [@rs1002](https://discourse.processing.org/u/rs1002)\
**Replies:** 5\
**Last updated:** [November 11, 2019, 7:44pm UTC](https://discourse.processing.org/t/live-datafeed-in-processing/15251 "2019-11-11T19:44:47Z")

</div>

Please help to understand if i can connect to a live data feed in the processing. I want to know if its possible to work on live streaming of data thorugh this software?

---

## [How to pick specific parts of a Shape3D shape (processing)](https://discourse.processing.org/t/how-to-pick-specific-parts-of-a-shape3d-shape-processing/15240)

<div class="topic-metadata">

**Author:** [@20dshepard](https://discourse.processing.org/u/20dshepard)\
**Replies:** 3\
**Last updated:** [November 11, 2019, 5:10pm UTC](https://discourse.processing.org/t/how-to-pick-specific-parts-of-a-shape3d-shape-processing/15240 "2019-11-11T17:10:09Z")

</div>

I am attempting to make a voxel-ish world builder, and I need to be able to stack the different blocks. How can I pick the separate sides of the block with the shapes3d library. Whenever I pick the shape, it renders it a…

---

## [Turning 2D map into a 3D first person view](https://discourse.processing.org/t/turning-2d-map-into-a-3d-first-person-view/15396)

<div class="topic-metadata">

**Author:** [@graysonh](https://discourse.processing.org/u/graysonh)\
**Replies:** 4\
**Last updated:** [November 11, 2019, 4:42pm UTC](https://discourse.processing.org/t/turning-2d-map-into-a-3d-first-person-view/15396 "2019-11-11T16:42:54Z")

</div>

I have spinodal decomposition code to create “maps” like in the image below and I would like to turn it into a 3D walk-around game like Daniel Shiffman’s example with ray casting, but I don’t know how ray casting could b…

---

## [How to remove sensor drift?](https://discourse.processing.org/t/how-to-remove-sensor-drift/14733)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 4\
**Last updated:** [November 11, 2019, 11:23am UTC](https://discourse.processing.org/t/how-to-remove-sensor-drift/14733 "2019-11-11T11:23:08Z")

</div>

I have taken continuous readings of body temperature from the temperature sensor. I have observed that there is a drift of the temperature value during baseline reading. What are the methods that I could eliminate sensor…

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

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