# Processing

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

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

**Page:** 383

---

## [controlP5 listBox and buttonBar problem](https://discourse.processing.org/t/controlp5-listbox-and-buttonbar-problem/1585)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 0\
**Last updated:** [July 8, 2018, 2:27am UTC](https://discourse.processing.org/t/controlp5-listbox-and-buttonbar-problem/1585 "2018-07-08T02:27:39Z")

</div>

hello! I\`ve a problem with controlP5 library. In a json file i stored the value of a variable of a class name “layer”, witch is equal to buttonBar choice. buttonBar = layer Next, i want to load that value, but i cant …

---

## [StringList Manipulation](https://discourse.processing.org/t/stringlist-manipulation/1561)

<div class="topic-metadata">

**Author:** [@poltergeister](https://discourse.processing.org/u/poltergeister)\
**Replies:** 3\
**Last updated:** [July 7, 2018, 11:44pm UTC](https://discourse.processing.org/t/stringlist-manipulation/1561 "2018-07-07T23:44:48Z")

</div>

I’m trying to manipulate the contents of a StringList for use in one place in the code while leaving the original list intact. I’m finding this doesn’t work. I’m guessing that the StringList is being maintained by ‘refer…

---

## [Millis() doubt: how to do the program wait two seconds before doing anything?](https://discourse.processing.org/t/millis-doubt-how-to-do-the-program-wait-two-seconds-before-doing-anything/1579)

<div class="topic-metadata">

**Author:** [@parzival](https://discourse.processing.org/u/parzival)\
**Replies:** 2\
**Last updated:** [July 7, 2018, 4:50pm UTC](https://discourse.processing.org/t/millis-doubt-how-to-do-the-program-wait-two-seconds-before-doing-anything/1579 "2018-07-07T16:50:35Z")

</div>

Hello. I’m new here and I’m trying to make the program wait two seconds before doing anything, but I do not know exactly how to do it. For example, how can I draw a rectangle, then wait two seconds and draw another one, …

---

## [Java: Processing can't run multiple key inputs simultaneously](https://discourse.processing.org/t/java-processing-cant-run-multiple-key-inputs-simultaneously/1575)

<div class="topic-metadata">

**Author:** [@Brian](https://discourse.processing.org/u/Brian)\
**Replies:** 4\
**Last updated:** [July 7, 2018, 4:43pm UTC](https://discourse.processing.org/t/java-processing-cant-run-multiple-key-inputs-simultaneously/1575 "2018-07-07T16:43:17Z")

</div>

I’m making a 2-player Ping pong game. I tried moving 1 player at a time, it worked fine but when I held down the move buttons of both at once, one moved flawlessly but the other moved just a bit then it got stuck. final…

---

## [\[SOLVED\] Minim progress bar](https://discourse.processing.org/t/solved-minim-progress-bar/1551)

<div class="topic-metadata">

**Author:** [@DogeMastr](https://discourse.processing.org/u/DogeMastr)\
**Replies:** 16\
**Last updated:** [July 7, 2018, 3:24pm UTC](https://discourse.processing.org/t/solved-minim-progress-bar/1551 "2018-07-07T15:24:41Z")

</div>

I’m trying to make a music player using minim and I have a progress bar thats halfway down the screen, the way I intend it to work is when you click on the progress bar the song will skip to that part, I know something i…

---

## [Adding a background image to a code](https://discourse.processing.org/t/adding-a-background-image-to-a-code/1533)

<div class="topic-metadata">

**Author:** [@Theothecat](https://discourse.processing.org/u/Theothecat)\
**Replies:** 4\
**Last updated:** [July 7, 2018, 12:11pm UTC](https://discourse.processing.org/t/adding-a-background-image-to-a-code/1533 "2018-07-07T12:11:17Z")

</div>

I’m new to proccesing, I have a code that I made, and I’m wondering how to set the background to a image, all the attempts that I did failed.

---

## [\[SOLVED\] Mov files not playing](https://discourse.processing.org/t/solved-mov-files-not-playing/1566)

<div class="topic-metadata">

**Author:** [@altibzz](https://discourse.processing.org/u/altibzz)\
**Replies:** 1\
**Last updated:** [July 7, 2018, 10:55am UTC](https://discourse.processing.org/t/solved-mov-files-not-playing/1566 "2018-07-07T10:55:39Z")

</div>

Hi, Is anyone experiencing issues with video playback? I can’t get any .mov files to play… I’ve even tried to run the example sketches on video playback and only the “reverse” example works, which uses a .mkv file. I ha…

---

## [Creating a new table java Processing](https://discourse.processing.org/t/creating-a-new-table-java-processing/1555)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 11:29pm UTC](https://discourse.processing.org/t/creating-a-new-table-java-processing/1555 "2018-07-06T23:29:08Z")

</div>

OK, I’m looking into files making, loading & such & tried to make a program that tries to find a file. I don’t yet have made & if it dont have it creates one. I got to where it says there no file, but I’m having trouble …

---

## [ControlP5 : bug with "alt-gr" on Linux](https://discourse.processing.org/t/controlp5-bug-with-alt-gr-on-linux/1554)

<div class="topic-metadata">

**Author:** [@max22](https://discourse.processing.org/u/max22)\
**Replies:** 0\
**Last updated:** [July 6, 2018, 3:21pm UTC](https://discourse.processing.org/t/controlp5-bug-with-alt-gr-on-linux/1554 "2018-07-06T15:21:19Z")

</div>

Hello, I use controlP5 2.2.6, with processing 3.3.7. With Linux i get this exception when i press “alt-gr” : java.lang.ArrayIndexOutOfBoundsException: 65406 at controlP5.ControlWindow.keyEvent(Unknown Source) at sun.…

---

## [A carousel for graphs](https://discourse.processing.org/t/a-carousel-for-graphs/1087)

<div class="topic-metadata">

**Author:** [@jimbojohn](https://discourse.processing.org/u/jimbojohn)\
**Replies:** 15\
**Last updated:** [July 6, 2018, 1:59pm UTC](https://discourse.processing.org/t/a-carousel-for-graphs/1087 "2018-07-06T13:59:27Z")

</div>

Hi there dear enthusiasts, I have been trying to write a program which has a carousel in it which shows some graphs in it ( similar to android apps). I was wondering if there are any libraries out there that already off…

---

## [Problem With Collision](https://discourse.processing.org/t/problem-with-collision/1539)

<div class="topic-metadata">

**Author:** [@Feelpss](https://discourse.processing.org/u/Feelpss)\
**Replies:** 9\
**Last updated:** [July 6, 2018, 1:10pm UTC](https://discourse.processing.org/t/problem-with-collision/1539 "2018-07-06T13:10:54Z")

</div>

Hello! I’m a Design student at University of São Paulo and I’ve had some Processing classes and now I have to do a final project. I’m doing a simple game similar to Facebook’s Everwing based on Steven Universe. It’s ba…

---

## [Trying to make a nested list for pixel storage](https://discourse.processing.org/t/trying-to-make-a-nested-list-for-pixel-storage/1536)

<div class="topic-metadata">

**Author:** [@CottonSquab](https://discourse.processing.org/u/CottonSquab)\
**Replies:** 3\
**Last updated:** [July 6, 2018, 12:20pm UTC](https://discourse.processing.org/t/trying-to-make-a-nested-list-for-pixel-storage/1536 "2018-07-06T12:20:00Z")

</div>

I’m trying to make a program that finds the average pixel color of pixel clusters of an image. I’m having trouble making a list to store those averages ((int red, int green, int blue), (int red, int green, int blue), etc…

---

## [How can i do this?](https://discourse.processing.org/t/how-can-i-do-this/1548)

<div class="topic-metadata">

**Author:** [@Cuchis](https://discourse.processing.org/u/Cuchis)\
**Replies:** 2\
**Last updated:** [July 6, 2018, 1:00pm UTC](https://discourse.processing.org/t/how-can-i-do-this/1548 "2018-07-06T13:00:34Z")

</div>

Hi, Im new to processing and i have a question. I need to do this image, circles on x and y axis where there is an increase of circles as shown in the image. This is what i have so far: int x; int y; int max,may; s…

---

## [Problem with random](https://discourse.processing.org/t/problem-with-random/1541)

<div class="topic-metadata">

**Author:** [@vajo](https://discourse.processing.org/u/vajo)\
**Replies:** 3\
**Last updated:** [July 6, 2018, 9:34am UTC](https://discourse.processing.org/t/problem-with-random/1541 "2018-07-06T09:34:16Z")

</div>

Hey i want to create a Game in Processing and i need a random command wich Pics a random Numbers of 1 to 5 … If i use the normal random Code then IT could happened that a number bigger than 5 … I need a special command…

---

## [Problem with writing a String](https://discourse.processing.org/t/problem-with-writing-a-string/1334)

<div class="topic-metadata">

**Author:** [@Rickylicious](https://discourse.processing.org/u/Rickylicious)\
**Replies:** 1\
**Last updated:** [July 6, 2018, 6:34am UTC](https://discourse.processing.org/t/problem-with-writing-a-string/1334 "2018-07-06T06:34:20Z")

</div>

I’m trying to write a string, that contains data for a thermal printer, which is connected to an arduino. String output; int pixelNum, byteNum, bytesOnLine = 99, x, y, p, rowBytes, totalBytes, lastBit, sum; PImage i…

---

## [Processing Net : avoid print disconnection message](https://discourse.processing.org/t/processing-net-avoid-print-disconnection-message/1513)

<div class="topic-metadata">

**Author:** [@Honny](https://discourse.processing.org/u/Honny)\
**Replies:** 9\
**Last updated:** [July 6, 2018, 5:51am UTC](https://discourse.processing.org/t/processing-net-avoid-print-disconnection-message/1513 "2018-07-06T05:51:33Z")

</div>

Hello, im writing a simple program using the Processing Net library, this program should be able to start/stop a TCP server on a given port. I have noticed that calling voluntarily the stop() function i receive in the…

---

## [Help with Spacewar Assignment](https://discourse.processing.org/t/help-with-spacewar-assignment/1418)

<div class="topic-metadata">

**Author:** [@Chrisatsinnoh](https://discourse.processing.org/u/Chrisatsinnoh)\
**Replies:** 18\
**Last updated:** [July 6, 2018, 4:12am UTC](https://discourse.processing.org/t/help-with-spacewar-assignment/1418 "2018-07-06T04:12:12Z")

</div>

Greetings, Proceessing community. I’m working on a Spacewar iteration assignment for my university which is due in 5 days by now. I ran into a problem where I’m attempting to declare a scoring system (in which for each …

---

## [Button on a touchscreen](https://discourse.processing.org/t/button-on-a-touchscreen/1505)

<div class="topic-metadata">

**Author:** [@AidanLand](https://discourse.processing.org/u/AidanLand)\
**Replies:** 2\
**Last updated:** [July 5, 2018, 11:24pm UTC](https://discourse.processing.org/t/button-on-a-touchscreen/1505 "2018-07-05T23:24:49Z")

</div>

Hi, I’m trying to create a drawing program that will work with a touch screen. Right now I can draw on the screen with a pen, but if I try to click a button on the screen my program won’t respond. I have to either swipe,…

---

## [Java: create objects and call their methods in loops](https://discourse.processing.org/t/java-create-objects-and-call-their-methods-in-loops/1515)

<div class="topic-metadata">

**Author:** [@Brian](https://discourse.processing.org/u/Brian)\
**Replies:** 7\
**Last updated:** [July 5, 2018, 6:09pm UTC](https://discourse.processing.org/t/java-create-objects-and-call-their-methods-in-loops/1515 "2018-07-05T18:09:17Z")

</div>

I’m trying to use a loop to create 10 objects at a time then use another loop in Draw() method to call the objects’ render() methods. At first I tried creating and calling objects method manually and it worked. Now I wa…

---

## [How do I optimize my program?](https://discourse.processing.org/t/how-do-i-optimize-my-program/1465)

<div class="topic-metadata">

**Author:** [@Teen\_Coder](https://discourse.processing.org/u/Teen_Coder)\
**Replies:** 6\
**Last updated:** [July 5, 2018, 5:17pm UTC](https://discourse.processing.org/t/how-do-i-optimize-my-program/1465 "2018-07-05T17:17:03Z")

</div>

Hi, I have a quick question. I’m currently working on a clone of Google Chrome’s dinosaur game, but my version of the game will stutter at seemingly random times. I know my code isn’t well optimized, but I have no idea o…

---

## [Changing Processing folders + drive location?](https://discourse.processing.org/t/changing-processing-folders-drive-location/1511)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 1\
**Last updated:** [July 5, 2018, 1:18pm UTC](https://discourse.processing.org/t/changing-processing-folders-drive-location/1511 "2018-07-05T13:18:12Z")

</div>

Hi everyone. I’ve installed (unzipped) the last Processing.org version on the local hard drive (C:\\Processing in Windows 7). After that I’ve imported p5.js and Python mode + different libraries. Everytime I launch Proces…

---

## [Processing Serial Carrier Sense](https://discourse.processing.org/t/processing-serial-carrier-sense/1460)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 2\
**Last updated:** [July 5, 2018, 7:21am UTC](https://discourse.processing.org/t/processing-serial-carrier-sense/1460 "2018-07-05T07:21:35Z")

</div>

Hi, I am reading data from a serial bus using the Serial library. On the bus there are many different hosts/clients. Currently I’m only listening but eventually I want to send my own messages in between others. There …

---

## [Change color of the shapes with audio](https://discourse.processing.org/t/change-color-of-the-shapes-with-audio/1495)

<div class="topic-metadata">

**Author:** [@IlPastaio](https://discourse.processing.org/u/IlPastaio)\
**Replies:** 2\
**Last updated:** [July 5, 2018, 1:08am UTC](https://discourse.processing.org/t/change-color-of-the-shapes-with-audio/1495 "2018-07-05T01:08:09Z")

</div>

Hello everyone, I need your help for a project I’m creating. First of all, I’m a complete noob! So try to be as simple as possible with me please. Basically I’ve created this simple draw and I need that every shape ins…

---

## [Sketching pattern](https://discourse.processing.org/t/sketching-pattern/1421)

<div class="topic-metadata">

**Author:** [@NancyBecky](https://discourse.processing.org/u/NancyBecky)\
**Replies:** 11\
**Last updated:** [July 4, 2018, 7:24pm UTC](https://discourse.processing.org/t/sketching-pattern/1421 "2018-07-04T19:24:36Z")

</div>

Hi Friends, I am new to this forum. I am curious to learn programming and I started learning it. I’m trying to write a code based on the image attached. Can anyone help me to reproduce this image?

---

## [Help: Make particlesystem bounce off edges](https://discourse.processing.org/t/help-make-particlesystem-bounce-off-edges/1311)

<div class="topic-metadata">

**Author:** [@ElegyforFedora](https://discourse.processing.org/u/ElegyforFedora)\
**Replies:** 7\
**Last updated:** [July 4, 2018, 6:06pm UTC](https://discourse.processing.org/t/help-make-particlesystem-bounce-off-edges/1311 "2018-07-04T18:06:49Z")

</div>

Hi all! I’m fairly new to coding and all new to this forum. I have a small problem with some code which I would like a bit of guidance on. The code is supposed to model a fire/flame moving around the screen. The problem …

---

## [Key value disappears after holding two keys](https://discourse.processing.org/t/key-value-disappears-after-holding-two-keys/1497)

<div class="topic-metadata">

**Author:** [@Richard122](https://discourse.processing.org/u/Richard122)\
**Replies:** 1\
**Last updated:** [July 4, 2018, 5:43pm UTC](https://discourse.processing.org/t/key-value-disappears-after-holding-two-keys/1497 "2018-07-04T17:43:56Z")

</div>

Hi there, I am new to Processing and I came up with the idea to make a version of Space Invaders to get acquainted with it. After encountering a lot of trouble with processing simultaneous key inputs I properly took care…

---

## [How to get section of pixels from entire screen?](https://discourse.processing.org/t/how-to-get-section-of-pixels-from-entire-screen/1480)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 4\
**Last updated:** [July 4, 2018, 8:00am UTC](https://discourse.processing.org/t/how-to-get-section-of-pixels-from-entire-screen/1480 "2018-07-04T08:00:43Z")

</div>

I’m going to write a simple bot for a game, and I need to get a section of pixels (or at least one pixel) from the game. How do I do this? -Grim

---

## [Why won't Processing find my library?](https://discourse.processing.org/t/why-wont-processing-find-my-library/1483)

<div class="topic-metadata">

**Author:** [@apratt](https://discourse.processing.org/u/apratt)\
**Replies:** 3\
**Last updated:** [July 4, 2018, 7:54am UTC](https://discourse.processing.org/t/why-wont-processing-find-my-library/1483 "2018-07-04T07:54:18Z")

</div>

Anyone know why the Processing program isn’t picking up my library “papaya” ? I moved the extracted folder into the libraries folder, but it still won’t pick it up when I run. Since I can only post one picture, I’ll post…

---

## [Any documentation for creating custom modes?](https://discourse.processing.org/t/any-documentation-for-creating-custom-modes/1136)

<div class="topic-metadata">

**Author:** [@jmorrow](https://discourse.processing.org/u/jmorrow)\
**Replies:** 8\
**Last updated:** [July 4, 2018, 2:54am UTC](https://discourse.processing.org/t/any-documentation-for-creating-custom-modes/1136 "2018-07-04T02:54:27Z")

</div>

I want to write a custom mode for Processing and don’t know where to begin. I couldn’t find anything on the wiki for Processing that describes how to create a custom mode. I also tried looking at the source for Debug M…

---

## [Regex \\w and \\\\w is not working](https://discourse.processing.org/t/regex-w-and-w-is-not-working/1478)

<div class="topic-metadata">

**Author:** [@tomte55](https://discourse.processing.org/u/tomte55)\
**Replies:** 1\
**Last updated:** [July 3, 2018, 11:36pm UTC](https://discourse.processing.org/t/regex-w-and-w-is-not-working/1478 "2018-07-03T23:36:40Z")

</div>

I’m making a rename function where you input a filepath then a name. Then the function is going to find the last entry in the filepath and replace it with the inputted name, And the filepath input is something like thi…

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

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