# Processing

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

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

**Page:** 259

---

## [Reading and writing variable or arrays in text format for later use](https://discourse.processing.org/t/reading-and-writing-variable-or-arrays-in-text-format-for-later-use/15561)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 7\
**Last updated:** [November 17, 2019, 6:43pm UTC](https://discourse.processing.org/t/reading-and-writing-variable-or-arrays-in-text-format-for-later-use/15561 "2019-11-17T18:43:02Z")

</div>

As the title suggests, whats the best method for doing this?

---

## [Triggering response from 3 Solenoids between Processing and Arduino](https://discourse.processing.org/t/triggering-response-from-3-solenoids-between-processing-and-arduino/15592)

<div class="topic-metadata">

**Author:** [@rebekah\_tkd](https://discourse.processing.org/u/rebekah_tkd)\
**Replies:** 6\
**Last updated:** [November 17, 2019, 6:23pm UTC](https://discourse.processing.org/t/triggering-response-from-3-solenoids-between-processing-and-arduino/15592 "2019-11-17T18:23:26Z")

</div>

hey guys, I am currently having problems trying to use Processing to tell arduino when to turn solenoids on and off. I am new to this so been struggling to find some help. I created a float array which contains data and …

---

## [Adding collisions and a scoreboard](https://discourse.processing.org/t/adding-collisions-and-a-scoreboard/15584)

<div class="topic-metadata">

**Author:** [@snyke123](https://discourse.processing.org/u/snyke123)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 6:12pm UTC](https://discourse.processing.org/t/adding-collisions-and-a-scoreboard/15584 "2019-11-17T18:12:51Z")

</div>

Hey for a school project I am making a little game where you control a spaceship with your mouse and you have to go between the walls. If you hit one of the walls you fail. (It is like a flappy bird game) But the proble…

---

## [Problem installing a library (Chroma)](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 10\
**Last updated:** [November 17, 2019, 5:39pm UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469 "2019-11-17T17:39:16Z")

</div>

Can someone with more experience of contributed libraries please look at https://github.com/neilpanchal/Chroma I cannot install this library in Processing. I have tried to download and manually install into ~/Documents/…

---

## [How to make a track attachment visualization?](https://discourse.processing.org/t/how-to-make-a-track-attachment-visualization/15425)

<div class="topic-metadata">

**Author:** [@Garry](https://discourse.processing.org/u/Garry)\
**Replies:** 5\
**Last updated:** [November 17, 2019, 5:33pm UTC](https://discourse.processing.org/t/how-to-make-a-track-attachment-visualization/15425 "2019-11-17T17:33:03Z")

</div>

i have 2 codes 1) import processing.dxf.\*; import ddf.minim.analysis.\*; import ddf.minim.\*; FFT fftLin; FFT fftLog; Waveform audio3D; Minim minim; AudioInput microphone; boolean record; PFont font; float camzoom;…

---

## [Running code very slow](https://discourse.processing.org/t/running-code-very-slow/15588)

<div class="topic-metadata">

**Author:** [@KapowFreshProcessing](https://discourse.processing.org/u/KapowFreshProcessing)\
**Replies:** 2\
**Last updated:** [November 17, 2019, 5:14pm UTC](https://discourse.processing.org/t/running-code-very-slow/15588 "2019-11-17T17:14:25Z")

</div>

Hiya! My code was running perfectly fine but now all of a sudden it is struggling to even display the contents that I have coded. Can i get dome help with this please? I am using windows 10 the 64 bit version Thanks

---

## [Help with creating axis & naming it](https://discourse.processing.org/t/help-with-creating-axis-naming-it/15554)

<div class="topic-metadata">

**Author:** [@madf](https://discourse.processing.org/u/madf)\
**Replies:** 4\
**Last updated:** [November 17, 2019, 4:50pm UTC](https://discourse.processing.org/t/help-with-creating-axis-naming-it/15554 "2019-11-17T16:50:13Z")

</div>

I am about to cry, I am so confused and lost. I’ve looked all over the processing.org resources but maybe my question is just too simple for it. I can’t figure out how to create and name an axis or how to create the litt…

---

## [Get rid of distortion](https://discourse.processing.org/t/get-rid-of-distortion/15564)

<div class="topic-metadata">

**Author:** [@bkaramah](https://discourse.processing.org/u/bkaramah)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 5:30am UTC](https://discourse.processing.org/t/get-rid-of-distortion/15564 "2019-11-17T05:30:26Z")

</div>

Hello, i want to project a picture onto a cylinder. However this is distorted during the projection. At the sides, it is strongly consumed, because of the uneven surface. How can I solve the problem?

---

## [Audio minim RAM overfill, when creating and deleting sounds](https://discourse.processing.org/t/audio-minim-ram-overfill-when-creating-and-deleting-sounds/15510)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 5\
**Last updated:** [November 17, 2019, 1:57pm UTC](https://discourse.processing.org/t/audio-minim-ram-overfill-when-creating-and-deleting-sounds/15510 "2019-11-17T13:57:10Z")

</div>

Hello there, I creating a sound engine for my 2D game, where i want to change pan and gain in each sound, so i create class, that have minim AudioSample, that loads specific sound, but when i want to delete this, it can…

---

## [Errors importing to openprocessing](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [November 17, 2019, 12:49pm UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569 "2019-11-17T12:49:02Z")

</div>

So I’ve ran into an issue porting code from pde to open processing, at first i realised that i was assigning variable was functions which for some reason is acceptable for boolean values in the pde environment, ie Boole…

---

## [The difference of p5.js and Processing](https://discourse.processing.org/t/the-difference-of-p5-js-and-processing/15566)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 1\
**Last updated:** [November 17, 2019, 7:17am UTC](https://discourse.processing.org/t/the-difference-of-p5-js-and-processing/15566 "2019-11-17T07:17:21Z")

</div>

Does anyone know in detail the grammatical differences between p5 .js and processing? I want to know about it.:sweat\_smile:

---

## [Can't find a solution to this error](https://discourse.processing.org/t/cant-find-a-solution-to-this-error/15536)

<div class="topic-metadata">

**Author:** [@jithin1](https://discourse.processing.org/u/jithin1)\
**Replies:** 2\
**Last updated:** [November 17, 2019, 5:18am UTC](https://discourse.processing.org/t/cant-find-a-solution-to-this-error/15536 "2019-11-17T05:18:59Z")

</div>

Can someone help me in solving this error… java.lang.RuntimeException: mouseEvent() already added for this instance of interfascia.IFButton at processing.core.PApplet.die(PApplet.java:3735) at processing.core.PApplet…

---

## [How to get image to change direction when it touches a wall](https://discourse.processing.org/t/how-to-get-image-to-change-direction-when-it-touches-a-wall/15528)

<div class="topic-metadata">

**Author:** [@Banana132](https://discourse.processing.org/u/Banana132)\
**Replies:** 15\
**Last updated:** [November 16, 2019, 8:10pm UTC](https://discourse.processing.org/t/how-to-get-image-to-change-direction-when-it-touches-a-wall/15528 "2019-11-16T20:10:13Z")

</div>

Hi there, im quite new to processing and programming in general, im trying to get a different image when it hits a wall but also that it changes its image to the direction it is going after it has hit a wall. I have go…

---

## [Acos() not giving angles between PI/2-3PI/2](https://discourse.processing.org/t/acos-not-giving-angles-between-pi-2-3pi-2/15513)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 2\
**Last updated:** [November 15, 2019, 5:51pm UTC](https://discourse.processing.org/t/acos-not-giving-angles-between-pi-2-3pi-2/15513 "2019-11-15T17:51:17Z")

</div>

I am making a tank game, using the following to determine the angle from the tank to the cursor rotate(atan(((mouseY-height/2)\*scalar)/((mouseX-width/2)\*scalar))); then drawing my cannon within it (for shortening purpo…

---

## [Making a Palette using for loops and arrays \[COMPLICATED\]](https://discourse.processing.org/t/making-a-palette-using-for-loops-and-arrays-complicated/15475)

<div class="topic-metadata">

**Author:** [@IsaiahZ](https://discourse.processing.org/u/IsaiahZ)\
**Replies:** 15\
**Last updated:** [November 15, 2019, 11:24am UTC](https://discourse.processing.org/t/making-a-palette-using-for-loops-and-arrays-complicated/15475 "2019-11-15T11:24:25Z")

</div>

So I am making a palette and am trying to learn for loops(nested loops) and arrays. I am having difficulty understanding the mechanics of them as well as how I am to implement them to this project. I will explain first …

---

## [Can you help me repair it?](https://discourse.processing.org/t/can-you-help-me-repair-it/15502)

<div class="topic-metadata">

**Author:** [@Soloh](https://discourse.processing.org/u/Soloh)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 9:27am UTC](https://discourse.processing.org/t/can-you-help-me-repair-it/15502 "2019-11-15T09:27:23Z")

</div>

int x=500; int o=600; void setup() { size(1000,1000); strokeWeight(2); } void draw() { background(100,150,200); line(500,200,x,700); ellipse(x,700,200,200); ellipse(x,700,170,170); ellipse(x,700,140,140); ellipse(x,70…

---

## [How to input static dataset in this code?](https://discourse.processing.org/t/how-to-input-static-dataset-in-this-code/14917)

<div class="topic-metadata">

**Author:** [@cadidutta](https://discourse.processing.org/u/cadidutta)\
**Replies:** 8\
**Last updated:** [November 15, 2019, 5:46am UTC](https://discourse.processing.org/t/how-to-input-static-dataset-in-this-code/14917 "2019-11-15T05:46:36Z")

</div>

'm a undergraduate Biomedical Engineering , only a beginner in coding. I was trying to understand this BCI code written in processing and wanted to input an EEG eye movement dataset rather than the microphone jack input …

---

## [Square an arraylist (new to coding)](https://discourse.processing.org/t/square-an-arraylist-new-to-coding/15489)

<div class="topic-metadata">

**Author:** [@NoSmoke11](https://discourse.processing.org/u/NoSmoke11)\
**Replies:** 5\
**Last updated:** [November 14, 2019, 10:16pm UTC](https://discourse.processing.org/t/square-an-arraylist-new-to-coding/15489 "2019-11-14T22:16:54Z")

</div>

Hello guys how do i square all the numbers in an arrayList? i want to square each number with itself, is this possible?

---

## [Way to use a method as parameter](https://discourse.processing.org/t/way-to-use-a-method-as-parameter/15494)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [November 14, 2019, 9:00pm UTC](https://discourse.processing.org/t/way-to-use-a-method-as-parameter/15494 "2019-11-14T21:00:08Z")

</div>

Hi I’ve been Looking for a way to create a method wich uses an other method for calculating stuff. As I surfed I found that there are methods in specific classes wich can do this for Example in the Library java.awt.event…

---

## [Giant LED Display Memory Leak?](https://discourse.processing.org/t/giant-led-display-memory-leak/140)

<div class="topic-metadata">

**Author:** [@Brick](https://discourse.processing.org/u/Brick)\
**Replies:** 16\
**Last updated:** [November 14, 2019, 8:07pm UTC](https://discourse.processing.org/t/giant-led-display-memory-leak/140 "2019-11-14T20:07:49Z")

</div>

Hi, Using instructions online I built a giant LED video screen. It’s very cool, but I ran into a big problem: the screen runs for about ~8-12 minutes (depending on the video) then freezes. I can reset and re-run as ma…

---

## [Any idea how to fix this? Quiz](https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418)

<div class="topic-metadata">

**Author:** [@CyberDodo](https://discourse.processing.org/u/CyberDodo)\
**Replies:** 7\
**Last updated:** [November 14, 2019, 4:52pm UTC](https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418 "2019-11-14T16:52:05Z")

</div>

int flag = 0; void setup() { size( 1366, 768); background(255); } void draw() { if(flag == 0){ push(); background(255); fill(255, 0, 0); rect (700, 300, 300, 300); fill(0, 255, 0); …

---

## [How about a GCloud Text-to-Speech & Speech-to-Text wrapper for Processing with a \<10 liner?](https://discourse.processing.org/t/how-about-a-gcloud-text-to-speech-speech-to-text-wrapper-for-processing-with-a-10-liner/15467)

<div class="topic-metadata">

**Author:** [@advancecoder](https://discourse.processing.org/u/advancecoder)\
**Replies:** 6\
**Last updated:** [November 14, 2019, 4:36pm UTC](https://discourse.processing.org/t/how-about-a-gcloud-text-to-speech-speech-to-text-wrapper-for-processing-with-a-10-liner/15467 "2019-11-14T16:36:44Z")

</div>

How about a GCloud Text-to-Speech & Speech-to-Text wrapper for Processing with a \<10 liner?

---

## [serialEvent(Serial port) realtime](https://discourse.processing.org/t/serialevent-serial-port-realtime/15485)

<div class="topic-metadata">

**Author:** [@kb12592](https://discourse.processing.org/u/kb12592)\
**Replies:** 1\
**Last updated:** [November 14, 2019, 4:35pm UTC](https://discourse.processing.org/t/serialevent-serial-port-realtime/15485 "2019-11-14T16:35:12Z")

</div>

Hi all, I was wondering if anyone could tell me how void serialEvent function works - I know it is called when data is available from the serial port - but does it wait until it has run through the whole function before…

---

## [Can't add elements to an arraylist?](https://discourse.processing.org/t/cant-add-elements-to-an-arraylist/15461)

<div class="topic-metadata">

**Author:** [@Althos](https://discourse.processing.org/u/Althos)\
**Replies:** 10\
**Last updated:** [November 14, 2019, 2:57pm UTC](https://discourse.processing.org/t/cant-add-elements-to-an-arraylist/15461 "2019-11-14T14:57:18Z")

</div>

Hi, Although I wouldn’t say I’m a complete novice, I’ve been unsucessfully trying to do something quite simple : add objects to an ArrayList Code is somethin like this : ArrayList\<Object\> objects = new ArrayList\<Objec…

---

## [Having trouble with my grid](https://discourse.processing.org/t/having-trouble-with-my-grid/15466)

<div class="topic-metadata">

**Author:** [@IsaiahZ](https://discourse.processing.org/u/IsaiahZ)\
**Replies:** 7\
**Last updated:** [November 14, 2019, 1:34pm UTC](https://discourse.processing.org/t/having-trouble-with-my-grid/15466 "2019-11-14T13:34:10Z")

</div>

Having trouble with the for loops. I need to keep the grid but get rid of the excess lines. If anyone could help. I’m very new to all this. size(500,500); final int N = 25; for(int i=0; i\<N; i++){ float xPosition …

---

## [How do I read windows accelerometer?](https://discourse.processing.org/t/how-do-i-read-windows-accelerometer/15318)

<div class="topic-metadata">

**Author:** [@irmantas](https://discourse.processing.org/u/irmantas)\
**Replies:** 37\
**Last updated:** [November 14, 2019, 1:24pm UTC](https://discourse.processing.org/t/how-do-i-read-windows-accelerometer/15318 "2019-11-14T13:24:12Z")

</div>

how do I read windows accelerometer?

---

## [Path around a perimeter](https://discourse.processing.org/t/path-around-a-perimeter/15059)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 19\
**Last updated:** [November 14, 2019, 8:12am UTC](https://discourse.processing.org/t/path-around-a-perimeter/15059 "2019-11-14T08:12:14Z")

</div>

Background (skip if you just want to get to the problem): I’m still trying to implement the voronoi project, having run into some issues with my initial method. Initially, i was incrementing the radius around a point, …

---

## [Caesar Cipher Text](https://discourse.processing.org/t/caesar-cipher-text/15477)

<div class="topic-metadata">

**Author:** [@Adrian1998](https://discourse.processing.org/u/Adrian1998)\
**Replies:** 1\
**Last updated:** [November 14, 2019, 5:32am UTC](https://discourse.processing.org/t/caesar-cipher-text/15477 "2019-11-14T05:32:29Z")

</div>

Hello I am currently struggling very hard on this program. I have to make a caesar cipher program and I can not figure out how to make the program cipher once. String Alpha = "abcdefghijklmnopqrstuvwxyz"; int i = 0; vo…

---

## [Color - changing RGB values when in HSB colorMode](https://discourse.processing.org/t/color-changing-rgb-values-when-in-hsb-colormode/15277)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 34\
**Last updated:** [November 14, 2019, 3:39am UTC](https://discourse.processing.org/t/color-changing-rgb-values-when-in-hsb-colormode/15277 "2019-11-14T03:39:05Z")

</div>

I have produced this crude and simple sketch to get and change a RGB value when I am in HSB colorMode. Later I will use bit shifting instead of green() and so on. But before I build on this, is this the best way to do t…

---

## [Needle sweep. I have needle going to 180 degrees, but I need it to sweep back to 0](https://discourse.processing.org/t/needle-sweep-i-have-needle-going-to-180-degrees-but-i-need-it-to-sweep-back-to-0/15473)

<div class="topic-metadata">

**Author:** [@DonnieBrasco](https://discourse.processing.org/u/DonnieBrasco)\
**Replies:** 3\
**Last updated:** [November 14, 2019, 1:47am UTC](https://discourse.processing.org/t/needle-sweep-i-have-needle-going-to-180-degrees-but-i-need-it-to-sweep-back-to-0/15473 "2019-11-14T01:47:20Z")

</div>

//Define Global Variables float x, y; //updating coordinates float a = 0; //find theta angle float r = 200; //radius void setup(){ size(640,480); } void draw(){ background(#6E96A7); //bluish background drawC…

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

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