# Processing

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

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

**Page:** 228

---

## [Key Pressed to Change text](https://discourse.processing.org/t/key-pressed-to-change-text/18810)

<div class="topic-metadata">

**Author:** [@arianzz](https://discourse.processing.org/u/arianzz)\
**Replies:** 2\
**Last updated:** [March 20, 2020, 3:44pm UTC](https://discourse.processing.org/t/key-pressed-to-change-text/18810 "2020-03-20T15:44:10Z")

</div>

Hello! I am trying to add text with every keypressed. So if key is pressed, words “I BET” show up, then when key pressed again, “YOU DIDN’T”… and so on. So far this is what I have: it shows all the text at once when key…

---

## [\[SOLVED\] Strings in .txt file won't display the same as in the program](https://discourse.processing.org/t/solved-strings-in-txt-file-wont-display-the-same-as-in-the-program/12273)

<div class="topic-metadata">

**Author:** [@kartibrown](https://discourse.processing.org/u/kartibrown)\
**Replies:** 13\
**Last updated:** [July 2, 2019, 6:03pm UTC](https://discourse.processing.org/t/solved-strings-in-txt-file-wont-display-the-same-as-in-the-program/12273 "2019-07-02T18:03:59Z")

</div>

Hello! I’m new to programming in java Processing. I made my first game that actually works, but I can’t get the leaderboard to work. The strings in the .txt file looks like this: Bubblegum 654 Hello 765 looooo…

---

## [Changing the size of a triangle depending on mouseY](https://discourse.processing.org/t/changing-the-size-of-a-triangle-depending-on-mousey/18841)

<div class="topic-metadata">

**Author:** [@PixelVolt38](https://discourse.processing.org/u/PixelVolt38)\
**Replies:** 2\
**Last updated:** [March 20, 2020, 3:29pm UTC](https://discourse.processing.org/t/changing-the-size-of-a-triangle-depending-on-mousey/18841 "2020-03-20T15:29:02Z")

</div>

Hey, So I was trying to do a program that, among other things, changed the size of a triangle depending on how high the mouse was. What I wanted to do is start with the triangle at size 0 at a point and gradually make i…

---

## [Opening up Processing](https://discourse.processing.org/t/opening-up-processing/18813)

<div class="topic-metadata">

**Author:** [@PropagandA](https://discourse.processing.org/u/PropagandA)\
**Replies:** 10\
**Last updated:** [March 20, 2020, 12:13am UTC](https://discourse.processing.org/t/opening-up-processing/18813 "2020-03-20T00:13:16Z")

</div>

Whenever I open up Processing, it opens up and immediately shuts down.

---

## [Not enough memory while referencing array](https://discourse.processing.org/t/not-enough-memory-while-referencing-array/18787)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 2\
**Last updated:** [March 19, 2020, 10:43pm UTC](https://discourse.processing.org/t/not-enough-memory-while-referencing-array/18787 "2020-03-19T22:43:04Z")

</div>

I am trying to create a simulation of an ocean and I need to be able to move fish around based on a background fluid. When I try to do this I get a message saying “Could not run the sketch (Target VM failed to initialize…

---

## [Help creating an ArrayList of color values](https://discourse.processing.org/t/help-creating-an-arraylist-of-color-values/18475)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 24\
**Last updated:** [March 19, 2020, 8:49pm UTC](https://discourse.processing.org/t/help-creating-an-arraylist-of-color-values/18475 "2020-03-19T20:49:14Z")

</div>

Hello - I am trying to create an ArrayList of color values so I can utilize the features it has for dynamically slotting values in and out at various places. But as color is a primitive data type, it will not work in an…

---

## [How to deal with conflicting classes](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [March 19, 2020, 6:09pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794 "2020-03-19T18:09:15Z")

</div>

I have imported the poi library, a library which deals with parsing word documents, however the library itself uses a class called table which is shared with the main processing library, which I would also like to make u…

---

## [Making my 'bird' flappy fly](https://discourse.processing.org/t/making-my-bird-flappy-fly/18749)

<div class="topic-metadata">

**Author:** [@bry\_pk](https://discourse.processing.org/u/bry_pk)\
**Replies:** 6\
**Last updated:** [March 19, 2020, 10:01am UTC](https://discourse.processing.org/t/making-my-bird-flappy-fly/18749 "2020-03-19T10:01:16Z")

</div>

Here is my code for this game I’m making, it is a knockoff flappy birds. My Bird just disappears off-screen and will not return even when I press my key(s). int x = 0; void setup() { PImage tubeImg = loadImage("TUBE.p…

---

## [Python mode for Rosetta Code -- wiki and examples](https://discourse.processing.org/t/python-mode-for-rosetta-code-wiki-and-examples/18721)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 23\
**Last updated:** [March 18, 2020, 6:09pm UTC](https://discourse.processing.org/t/python-mode-for-rosetta-code-wiki-and-examples/18721 "2020-03-18T18:09:21Z")

</div>

Hi Jeremy! I’ve got so excited about your work with the Rosetta examples… I have created a category there for Processing\_Python but now I’m not sure I should have done that… maybe marking using this would be best: =={…

---

## [Lavoro con le Classi](https://discourse.processing.org/t/lavoro-con-le-classi/18769)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 5:32pm UTC](https://discourse.processing.org/t/lavoro-con-le-classi/18769 "2020-03-18T17:32:13Z")

</div>

Ciao a tutti! Sto lavorando per creare un’interfaccia per un gioco in modo che si attivo (cliccando su Play Game inizia il gioco), questo è il codice che dovrebbe risultare all’interno del gioco: int state = 0; PImage …

---

## [Could someone explain this code to me](https://discourse.processing.org/t/could-someone-explain-this-code-to-me/18767)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 18\
**Last updated:** [March 18, 2020, 3:50pm UTC](https://discourse.processing.org/t/could-someone-explain-this-code-to-me/18767 "2020-03-18T15:50:52Z")

</div>

Hi everyone, I wonder if someone can explaine to me how this code work : int locX, locY; int offsetX, offsetY; final int unit = 32; byte\[\]\[\] terrain = new byte\[10\]\[10\]; void setup() { size(321, 321); for (int …

---

## [Background appearing above array of images](https://discourse.processing.org/t/background-appearing-above-array-of-images/18746)

<div class="topic-metadata">

**Author:** [@jake\_b](https://discourse.processing.org/u/jake_b)\
**Replies:** 2\
**Last updated:** [March 18, 2020, 2:56pm UTC](https://discourse.processing.org/t/background-appearing-above-array-of-images/18746 "2020-03-18T14:56:58Z")

</div>

Hi everyone, I’ve got an issue whereby an array of images I’ve got loading as a grid is appearing behind the background. In the pen I’ve attached the images have been replaced with rectangles, but hopefully the issue can…

---

## [Not sure why interface and implementation is not working](https://discourse.processing.org/t/not-sure-why-interface-and-implementation-is-not-working/18736)

<div class="topic-metadata">

**Author:** [@jeromepayne](https://discourse.processing.org/u/jeromepayne)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 2:22pm UTC](https://discourse.processing.org/t/not-sure-why-interface-and-implementation-is-not-working/18736 "2020-03-18T14:22:20Z")

</div>

Can you all take a look at my code and tell me where I am going wrong? interface IBeacon { // Determines whether beacon is within range of truck Boolean isPresent(); // Determines how for beacon is from truck int g…

---

## [How to move a object, not in draw()](https://discourse.processing.org/t/how-to-move-a-object-not-in-draw/18761)

<div class="topic-metadata">

**Author:** [@Mike2020](https://discourse.processing.org/u/Mike2020)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 12:57pm UTC](https://discourse.processing.org/t/how-to-move-a-object-not-in-draw/18761 "2020-03-18T12:57:31Z")

</div>

Hi folks, how to move a object, not in draw()? I make a function ship(), how can I make the ship() move from one point to another point slowly ? Is there any function relate to time, for example ship() can move from poi…

---

## [How to change the properties of class with sensor data from Arduino](https://discourse.processing.org/t/how-to-change-the-properties-of-class-with-sensor-data-from-arduino/18638)

<div class="topic-metadata">

**Author:** [@Gbouna](https://discourse.processing.org/u/Gbouna)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 6:03am UTC](https://discourse.processing.org/t/how-to-change-the-properties-of-class-with-sensor-data-from-arduino/18638 "2020-03-18T06:03:25Z")

</div>

Hello; I’m so new to processing and I need help with my code. Basically i have a sensor connected to Arduino that sends out data of an array of data. I’m able to send the data to processing and gets them converted to i…

---

## [Spawn a shape or object whenever the initial object reaches a specific locaton](https://discourse.processing.org/t/spawn-a-shape-or-object-whenever-the-initial-object-reaches-a-specific-locaton/18737)

<div class="topic-metadata">

**Author:** [@NotConsumable](https://discourse.processing.org/u/NotConsumable)\
**Replies:** 2\
**Last updated:** [March 17, 2020, 3:45pm UTC](https://discourse.processing.org/t/spawn-a-shape-or-object-whenever-the-initial-object-reaches-a-specific-locaton/18737 "2020-03-17T15:45:20Z")

</div>

I have an ellipse moving across the screen with ellipse(redBallX,redBallY,40,40); redBallX = redBallX +1; I was wondering how I would make it so that when the X value of the ball hits 50 pixels across the screen as the…

---

## [Trouble using mouse events to control movement of an object](https://discourse.processing.org/t/trouble-using-mouse-events-to-control-movement-of-an-object/18553)

<div class="topic-metadata">

**Author:** [@Irhutchi](https://discourse.processing.org/u/Irhutchi)\
**Replies:** 10\
**Last updated:** [March 17, 2020, 3:33pm UTC](https://discourse.processing.org/t/trouble-using-mouse-events-to-control-movement-of-an-object/18553 "2020-03-17T15:33:30Z")

</div>

Hi, I am working on a project and am relatively new to programming. I am have setup a ball class outside of main tab and am having trouble with using mouse events inside the ball class which are then called in the draw()…

---

## [Display text on image](https://discourse.processing.org/t/display-text-on-image/18731)

<div class="topic-metadata">

**Author:** [@ej8000](https://discourse.processing.org/u/ej8000)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 1:50pm UTC](https://discourse.processing.org/t/display-text-on-image/18731 "2020-03-17T13:50:32Z")

</div>

how can I write text on Image or shape ,and become(the image and the text) one unit,so when i drag the image,also the text within it is dragged.

---

## [ArrayIndexOutOfBoundsException: 0](https://discourse.processing.org/t/arrayindexoutofboundsexception-0/18709)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 9:55am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-0/18709 "2020-03-17T09:55:17Z")

</div>

Hello everyone, I have this error when I just want to rename a table like this in void draw: phazi \[i\] = net.phase \[i\]; I’m just posting a “light” program below if you see something badly written. net.phase\[i\] com fr…

---

## [Closing only PApplet with exit() code](https://discourse.processing.org/t/closing-only-papplet-with-exit-code/18591)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 5\
**Last updated:** [March 17, 2020, 9:33am UTC](https://discourse.processing.org/t/closing-only-papplet-with-exit-code/18591 "2020-03-17T09:33:11Z")

</div>

Hello, i want to close only PApplet, with close button and with self exit() event when i do somethink, for exemple in this, i just click, and want to end only “AnotherWindow” applet, how to do it ? PApplet cf; void set…

---

## [Array true o false cambio colore](https://discourse.processing.org/t/array-true-o-false-cambio-colore/18700)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [March 17, 2020, 9:03am UTC](https://discourse.processing.org/t/array-true-o-false-cambio-colore/18700 "2020-03-17T09:03:10Z")

</div>

Ciao a tutti! Ho un blocco per quanto riguarda un codice che sto scrivendo, il mio obbiettivo è quello di far in modo che nel momento in cui ho un valore true i rettangoli assumano un determinato colore e nel caso fosse…

---

## [Move an ellipse](https://discourse.processing.org/t/move-an-ellipse/18717)

<div class="topic-metadata">

**Author:** [@NotConsumable](https://discourse.processing.org/u/NotConsumable)\
**Replies:** 2\
**Last updated:** [March 17, 2020, 6:54am UTC](https://discourse.processing.org/t/move-an-ellipse/18717 "2020-03-17T06:54:31Z")

</div>

I was wondering how I would make an ellipse continuously move down a x axis while maintaining it’s Y position, in better terms I am trying to make an ellipse start at one end of the canvas and continue down to the other …

---

## [GUI Buttons - Need help](https://discourse.processing.org/t/gui-buttons-need-help/18705)

<div class="topic-metadata">

**Author:** [@The-Coder](https://discourse.processing.org/u/The-Coder)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 5:51am UTC](https://discourse.processing.org/t/gui-buttons-need-help/18705 "2020-03-17T05:51:01Z")

</div>

I have been making a small video game that has buttons on the start screen to show the credits and start the game. The buttons don’t work and the credits screen displays without the credits button being pressed. I would …

---

## [If equality not workin properly](https://discourse.processing.org/t/if-equality-not-workin-properly/18627)

<div class="topic-metadata">

**Author:** [@LixoEletronico](https://discourse.processing.org/u/LixoEletronico)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 12:41am UTC](https://discourse.processing.org/t/if-equality-not-workin-properly/18627 "2020-03-17T00:41:39Z")

</div>

i can’t find anything wrong here

---

## [Help creating pronunciation program](https://discourse.processing.org/t/help-creating-pronunciation-program/18453)

<div class="topic-metadata">

**Author:** [@Burgs](https://discourse.processing.org/u/Burgs)\
**Replies:** 11\
**Last updated:** [March 16, 2020, 4:38pm UTC](https://discourse.processing.org/t/help-creating-pronunciation-program/18453 "2020-03-16T16:38:42Z")

</div>

i need help finishing an assignment, it includes getting input from the user and scanning each letter/character to see where it corresponds to with my if statements and printing out the pronunciation of the word in the c…

---

## [Making game less laggy](https://discourse.processing.org/t/making-game-less-laggy/18685)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 14\
**Last updated:** [March 16, 2020, 2:41pm UTC](https://discourse.processing.org/t/making-game-less-laggy/18685 "2020-03-16T14:41:04Z")

</div>

I am working on a simple game (I’m a beginner) in which the player jumps up platforms. Currently, there is only one screen and a level creator. The way it works right now, I mean only the basics of creating levels, is in…

---

## [Add a counter to know the number of revolution](https://discourse.processing.org/t/add-a-counter-to-know-the-number-of-revolution/18655)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 4\
**Last updated:** [March 16, 2020, 1:45pm UTC](https://discourse.processing.org/t/add-a-counter-to-know-the-number-of-revolution/18655 "2020-03-16T13:45:31Z")

</div>

Hello gentlemen! I would like to have a fonction telling me the number the revolution when I control the rotation of the axis with the keypads 0 and P. (the program is below) At the beginning, I should have 0, and at t…

---

## [Monitor live stream and log changes](https://discourse.processing.org/t/monitor-live-stream-and-log-changes/18680)

<div class="topic-metadata">

**Author:** [@henri](https://discourse.processing.org/u/henri)\
**Replies:** 4\
**Last updated:** [March 16, 2020, 1:37pm UTC](https://discourse.processing.org/t/monitor-live-stream-and-log-changes/18680 "2020-03-16T13:37:32Z")

</div>

Hello, Hope this post finds everybody safe and well at such a strange and worrying time globally. I am currently trying to setup a camera trap at my bird feeder, and have so far setup an ESP32 WiFi camera module with a…

---

## [Rotating rectangles to face mouseX, mouseY](https://discourse.processing.org/t/rotating-rectangles-to-face-mousex-mousey/18690)

<div class="topic-metadata">

**Author:** [@spoke123](https://discourse.processing.org/u/spoke123)\
**Replies:** 3\
**Last updated:** [March 16, 2020, 1:34pm UTC](https://discourse.processing.org/t/rotating-rectangles-to-face-mousex-mousey/18690 "2020-03-16T13:34:07Z")

</div>

Hi everyone! I’ve taken a few years out from using processing so I’m sorry if I’m missing something pretty basic! I’m trying to individually rotate each rectangle generated from a nested for loop to face the mouse coord…

---

## [Trouble detecting the right position of the mouse for list of buttons](https://discourse.processing.org/t/trouble-detecting-the-right-position-of-the-mouse-for-list-of-buttons/18612)

<div class="topic-metadata">

**Author:** [@Rrwwvds](https://discourse.processing.org/u/Rrwwvds)\
**Replies:** 7\
**Last updated:** [March 16, 2020, 12:45pm UTC](https://discourse.processing.org/t/trouble-detecting-the-right-position-of-the-mouse-for-list-of-buttons/18612 "2020-03-16T12:45:33Z")

</div>

Hey guys, I’m fairly new to processing but i’m just starting to get the hang of it. I’ve been working on a program in which I can click checkboxes which results in a building up score. when trying to make the checkboxe…

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

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