# Processing

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

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

**Page:** 135

---

## [MAYDAY MAYDAY / \< ArrayIndexOutOfBoundsException: 3\>](https://discourse.processing.org/t/mayday-mayday-arrayindexoutofboundsexception-3/29702)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 8\
**Last updated:** [April 30, 2021, 1:35pm UTC](https://discourse.processing.org/t/mayday-mayday-arrayindexoutofboundsexception-3/29702 "2021-04-30T13:35:56Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int amount = 3; PImage img1; int\[\]\[\] state = new int\[amount\]\[amount\]; IntList n; int z; int b =int(sq(amount)-1); int x, y; int tileW = width/amo…

---

## [netCDF Library not worling](https://discourse.processing.org/t/netcdf-library-not-worling/29077)

<div class="topic-metadata">

**Author:** [@tomtm](https://discourse.processing.org/u/tomtm)\
**Replies:** 12\
**Last updated:** [April 29, 2021, 3:45pm UTC](https://discourse.processing.org/t/netcdf-library-not-worling/29077 "2021-04-29T15:45:01Z")

</div>

Hi, I found this netCDF Library, but I am not able to get it to run, it always says, that the netcdf library isn‘t available. To check I trief to run the example files coming with this library. Could someone check, if …

---

## [Help with code that uses vehicle associations and seek/flock functions](https://discourse.processing.org/t/help-with-code-that-uses-vehicle-associations-and-seek-flock-functions/29707)

<div class="topic-metadata">

**Author:** [@fatimaquack](https://discourse.processing.org/u/fatimaquack)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 7:04pm UTC](https://discourse.processing.org/t/help-with-code-that-uses-vehicle-associations-and-seek-flock-functions/29707 "2021-04-29T19:04:42Z")

</div>

Hello! I’m new to this forum. I’m taking a class that looks autonomous agents like vehicles and their behaviors. And, I’m stuck with my final project :frowning: Description of Project: So for my final project, I want t…

---

## [Looking for an old music app](https://discourse.processing.org/t/looking-for-an-old-music-app/29731)

<div class="topic-metadata">

**Author:** [@Returningcustomer](https://discourse.processing.org/u/Returningcustomer)\
**Replies:** 2\
**Last updated:** [April 29, 2021, 4:32pm UTC](https://discourse.processing.org/t/looking-for-an-old-music-app/29731 "2021-04-29T16:32:45Z")

</div>

Hi I want to start again with Processing. Many years ago, there was a musical app where you would put nodes on a screen and connect them. You then put the whole structure in motion. Each node could be connected to a MID…

---

## [Video capture on macOS Catalina not working](https://discourse.processing.org/t/video-capture-on-macos-catalina-not-working/18921)

<div class="topic-metadata">

**Author:** [@kevinschlei](https://discourse.processing.org/u/kevinschlei)\
**Replies:** 2\
**Last updated:** [April 29, 2021, 2:58pm UTC](https://discourse.processing.org/t/video-capture-on-macos-catalina-not-working/18921 "2021-04-29T14:58:58Z")

</div>

Trying to run any sketch that uses the processing.video.\*; library with a Capture object fails to run. Below is the error that prints. I’m pretty devastated :disappointed:. I’m teaching a class right now and have been b…

---

## [Random starting Angle to finish Circle](https://discourse.processing.org/t/random-starting-angle-to-finish-circle/29694)

<div class="topic-metadata">

**Author:** [@aldofermaldo](https://discourse.processing.org/u/aldofermaldo)\
**Replies:** 10\
**Last updated:** [April 29, 2021, 11:49am UTC](https://discourse.processing.org/t/random-starting-angle-to-finish-circle/29694 "2021-04-29T11:49:43Z")

</div>

I want to be drawing a circle with beginShape(), starting with a random angle, and to finish a complete circle from that random angle. The problem I’m having is that when I draw from a random starting angle, I don’t kno…

---

## [Library for listening to mathematical functions?](https://discourse.processing.org/t/library-for-listening-to-mathematical-functions/29693)

<div class="topic-metadata">

**Author:** [@Karrajo](https://discourse.processing.org/u/Karrajo)\
**Replies:** 5\
**Last updated:** [April 28, 2021, 7:04pm UTC](https://discourse.processing.org/t/library-for-listening-to-mathematical-functions/29693 "2021-04-28T19:04:07Z")

</div>

Hi, I am looking for a library to listen to the sound of mathematical functions that I can write. Functions like this: float x = 200\*sin(t\*PI\*2) float y = 200\*sin(t\*PI\*3) I already can see the drawings of the functions…

---

## [PGraphics transparency in P3D](https://discourse.processing.org/t/pgraphics-transparency-in-p3d/29703)

<div class="topic-metadata">

**Author:** [@Skranker](https://discourse.processing.org/u/Skranker)\
**Replies:** 3\
**Last updated:** [April 28, 2021, 4:35pm UTC](https://discourse.processing.org/t/pgraphics-transparency-in-p3d/29703 "2021-04-28T16:35:02Z")

</div>

Hey guys, i am trying to draw a pgraphics image on top of the rest of the sketch here. It seems to behave weirdly though. In this example i am drawing a line pattern, at z = -50, an ellipse at 0 and the pgraphics image…

---

## [What is the code to generate a random and automatic color in the background?](https://discourse.processing.org/t/what-is-the-code-to-generate-a-random-and-automatic-color-in-the-background/29544)

<div class="topic-metadata">

**Author:** [@Marga](https://discourse.processing.org/u/Marga)\
**Replies:** 10\
**Last updated:** [April 28, 2021, 3:39pm UTC](https://discourse.processing.org/t/what-is-the-code-to-generate-a-random-and-automatic-color-in-the-background/29544 "2021-04-28T15:39:22Z")

</div>

Hello, I’m new to processing, and I would like to know if anyone can help me solve a question about how I change my background with random colors. That is, every time I clicked on play and became active, the color would …

---

## [Need help with creating barriers/walls with boolean](https://discourse.processing.org/t/need-help-with-creating-barriers-walls-with-boolean/29444)

<div class="topic-metadata">

**Author:** [@Cherie](https://discourse.processing.org/u/Cherie)\
**Replies:** 9\
**Last updated:** [April 28, 2021, 8:24am UTC](https://discourse.processing.org/t/need-help-with-creating-barriers-walls-with-boolean/29444 "2021-04-28T08:24:55Z")

</div>

please format code with \</\> button \* homework policy \* asking questions float xpos; float ypos; float xposN; float yposN; float playersize; PVector position; float direction; PVector velocity; float jumpSpeed…

---

## [Variable Problem in Board Game](https://discourse.processing.org/t/variable-problem-in-board-game/29682)

<div class="topic-metadata">

**Author:** [@Braunstein](https://discourse.processing.org/u/Braunstein)\
**Replies:** 3\
**Last updated:** [April 28, 2021, 4:31am UTC](https://discourse.processing.org/t/variable-problem-in-board-game/29682 "2021-04-28T04:31:02Z")

</div>

So, i’m considering turning a (existing) board game into a videogame via Processing. The game is called Machi Koro; if you know it: cool, if you don’t know it: It’s a quick board game where you buy buildings (which are o…

---

## [Need help with other assigned variables](https://discourse.processing.org/t/need-help-with-other-assigned-variables/29569)

<div class="topic-metadata">

**Author:** [@Bakoje](https://discourse.processing.org/u/Bakoje)\
**Replies:** 10\
**Last updated:** [April 27, 2021, 9:21pm UTC](https://discourse.processing.org/t/need-help-with-other-assigned-variables/29569 "2021-04-27T21:21:24Z")

</div>

I really need help with this one. This is how it turned out so far but it would be very nice to add buttons that can align different colored cells according to X,Y,height and width . Also an option to save the grid as a …

---

## [Start again an InDict example](https://discourse.processing.org/t/start-again-an-indict-example/29676)

<div class="topic-metadata">

**Author:** [@yves](https://discourse.processing.org/u/yves)\
**Replies:** 9\
**Last updated:** [April 27, 2021, 8:03pm UTC](https://discourse.processing.org/t/start-again-an-indict-example/29676 "2021-04-27T20:03:56Z")

</div>

Hi every one, I got this InDict example, I would like to restart the all process, when the text is on the bottom of the screen. If you have any idea … Thank’s Yves /\*\* \* CountingString example \* by Daniel Shiffman…

---

## [Figure that returns to its initial position (walkers)](https://discourse.processing.org/t/figure-that-returns-to-its-initial-position-walkers/29670)

<div class="topic-metadata">

**Author:** [@kylu](https://discourse.processing.org/u/kylu)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 7:27pm UTC](https://discourse.processing.org/t/figure-that-returns-to-its-initial-position-walkers/29670 "2021-04-27T19:27:22Z")

</div>

Hi! I have a question, I am working with a walking code and I need the lines that are formed, after a certain time, to progressively return to their initial position. Thanks!

---

## [Opinion about programming languages similar to Processing](https://discourse.processing.org/t/opinion-about-programming-languages-similar-to-processing/29495)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 7\
**Last updated:** [April 27, 2021, 2:14pm UTC](https://discourse.processing.org/t/opinion-about-programming-languages-similar-to-processing/29495 "2021-04-27T14:14:53Z")

</div>

Hi everyone, I code in Processing for about a year and I’m trying new creative coding languages like OpenFrameworks and SFML. The problem is that they are annoying to setup (I’m don’t know much about C++) and I can’t us…

---

## [Variable to store images in a list (ArrayList)](https://discourse.processing.org/t/variable-to-store-images-in-a-list-arraylist/29408)

<div class="topic-metadata">

**Author:** [@Yuls](https://discourse.processing.org/u/Yuls)\
**Replies:** 7\
**Last updated:** [April 27, 2021, 8:52am UTC](https://discourse.processing.org/t/variable-to-store-images-in-a-list-arraylist/29408 "2021-04-27T08:52:25Z")

</div>

Hi everyone, I am new to Processing and to programming in general. So that might be the source of my issue. I’ve been trying to implement and idea into code but I can’t seem to find the proper way to do this. So basical…

---

## [Double changes numbers apperently?](https://discourse.processing.org/t/double-changes-numbers-apperently/29582)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 8:29am UTC](https://discourse.processing.org/t/double-changes-numbers-apperently/29582 "2021-04-27T08:29:12Z")

</div>

So I am currently making a mandelbrot programm and I noticed it kind of doesn’t zoom where I want. After a long search I found the source of the problem: When giving it the place to zoom in it chnges the number when con…

---

## [Programm own Processing IDE | Is this idea feasible?](https://discourse.processing.org/t/programm-own-processing-ide-is-this-idea-feasible/29664)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 6:13am UTC](https://discourse.processing.org/t/programm-own-processing-ide-is-this-idea-feasible/29664 "2021-04-27T06:13:22Z")

</div>

Hey, I was wondering if and how you can program your own Processing IDE. Because I would like to do a few things differently. For example that the code completion starts automatically without pressing CMD / CTRL and the …

---

## [Issue with loading movie on multiple windows](https://discourse.processing.org/t/issue-with-loading-movie-on-multiple-windows/29653)

<div class="topic-metadata">

**Author:** [@toto](https://discourse.processing.org/u/toto)\
**Replies:** 9\
**Last updated:** [April 26, 2021, 4:22pm UTC](https://discourse.processing.org/t/issue-with-loading-movie-on-multiple-windows/29653 "2021-04-26T16:22:00Z")

</div>

I am trying to create two windows, and play the movie on the sub-window. So far I’ve made the sub-window appear with Applet, but it does not play the movie. The mp4 file is located in the data file, and it appears fine…

---

## [Processing js help (graveyard scene)](https://discourse.processing.org/t/processing-js-help-graveyard-scene/29647)

<div class="topic-metadata">

**Author:** [@Nameless](https://discourse.processing.org/u/Nameless)\
**Replies:** 5\
**Last updated:** [April 26, 2021, 2:51pm UTC](https://discourse.processing.org/t/processing-js-help-graveyard-scene/29647 "2021-04-26T14:51:19Z")

</div>

I am a beginner in coding. I like to code. Can someone help me to create a code a graveyard scene (I’m writing a story). Pls help me. I would greatly appreciate it.

---

## [Open text in Browser](https://discourse.processing.org/t/open-text-in-browser/29642)

<div class="topic-metadata">

**Author:** [@hklotz13](https://discourse.processing.org/u/hklotz13)\
**Replies:** 1\
**Last updated:** [April 26, 2021, 3:17pm UTC](https://discourse.processing.org/t/open-text-in-browser/29642 "2021-04-26T15:17:51Z")

</div>

Hello again! This time I’ve got a question about links. I scrapped my old project and I’ve almost got a project done based on the QRCodeReader library. My sketch reads the QR Codes just fine. I was wondering though if th…

---

## [Simon says tinkercad](https://discourse.processing.org/t/simon-says-tinkercad/29651)

<div class="topic-metadata">

**Author:** [@DijaAngel](https://discourse.processing.org/u/DijaAngel)\
**Replies:** 1\
**Last updated:** [April 26, 2021, 12:02pm UTC](https://discourse.processing.org/t/simon-says-tinkercad/29651 "2021-04-26T12:02:21Z")

</div>

\#define SW1 8 #define SW2 11 #define SW3 10 #define SW4 12 #define aSeg 2 #define bSeg 3 #define cSeg 4 #define dSeg 5 #define eSeg 6 #define fSeg 7 #define gSeg 13 #define NOTE\_A4 440 #define NOTE\_B4 440 #define NOTE\_…

---

## [Auto tile background image as mouse goes beyond boundaries](https://discourse.processing.org/t/auto-tile-background-image-as-mouse-goes-beyond-boundaries/29639)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 2\
**Last updated:** [April 25, 2021, 8:24pm UTC](https://discourse.processing.org/t/auto-tile-background-image-as-mouse-goes-beyond-boundaries/29639 "2021-04-25T20:24:38Z")

</div>

Hi there, I would like to get an image loaded in background to get tiled automatically as the mouse moves out of bounds. So if my mouse moved upwards i.e. height\<0, the image would automatically repeat itself giving the…

---

## [Visual Border in Top-Down-2D-Game is weirdly misplaced](https://discourse.processing.org/t/visual-border-in-top-down-2d-game-is-weirdly-misplaced/29632)

<div class="topic-metadata">

**Author:** [@Braunstein](https://discourse.processing.org/u/Braunstein)\
**Replies:** 3\
**Last updated:** [April 25, 2021, 8:04pm UTC](https://discourse.processing.org/t/visual-border-in-top-down-2d-game-is-weirdly-misplaced/29632 "2021-04-25T20:04:43Z")

</div>

I’m making a 2D survival game, with a top-down perspective. I don’t want the world to be infinite, so i made the map a square, with the sides being 200.000 pixels long. The script for moving the player works fine (so the…

---

## [Keep getting noClassDefFoundError Errors on Mac](https://discourse.processing.org/t/keep-getting-noclassdeffounderror-errors-on-mac/11727)

<div class="topic-metadata">

**Author:** [@Bat754](https://discourse.processing.org/u/Bat754)\
**Replies:** 3\
**Last updated:** [April 25, 2021, 12:25pm UTC](https://discourse.processing.org/t/keep-getting-noclassdeffounderror-errors-on-mac/11727 "2021-04-25T12:25:10Z")

</div>

Got a quick little question. This past week, I’ve been working on some Java projects on my windows PC at home using Processing for the graphics. I’ve been using the ItelliJ IDE to add the processing library to the proje…

---

## [I'm in a hurry. Help. This is an OPEN CV 'contour' question](https://discourse.processing.org/t/im-in-a-hurry-help-this-is-an-open-cv-contour-question/29508)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [April 25, 2021, 9:08am UTC](https://discourse.processing.org/t/im-in-a-hurry-help-this-is-an-open-cv-contour-question/29508 "2021-04-25T09:08:00Z")

</div>

I’m in a hurry. Help. This is the OPEN CV’contour’ question. I want to get the x,y coordinate values for’contour’. Please tell me a way to get the x,y coordinates. Please. int x =? int y =? import gab.opencv.; imp…

---

## [How to display text using addRadioButton?](https://discourse.processing.org/t/how-to-display-text-using-addradiobutton/29488)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 2\
**Last updated:** [April 25, 2021, 6:28am UTC](https://discourse.processing.org/t/how-to-display-text-using-addradiobutton/29488 "2021-04-25T06:28:03Z")

</div>

Good afternoon, when I click on the checkbox, the Rebook inscription appears at the bottom, but with Radio1 and Radio2 it does not appear with the NIKE inscription. import controlP5.\*; ControlP5 cp5; int myColorBack…

---

## [Userinput String to formula](https://discourse.processing.org/t/userinput-string-to-formula/29585)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 7\
**Last updated:** [April 24, 2021, 10:41pm UTC](https://discourse.processing.org/t/userinput-string-to-formula/29585 "2021-04-24T22:41:51Z")

</div>

Hey I want to write a program where the user can enter a formula in a text field and that program then converts this string to the “correct” formula and then calculates it. Here a example: //This would appear in front …

---

## [Comment faire une rotation d'image dans un tableau](https://discourse.processing.org/t/comment-faire-une-rotation-dimage-dans-un-tableau/29551)

<div class="topic-metadata">

**Author:** [@Macarongirl](https://discourse.processing.org/u/Macarongirl)\
**Replies:** 4\
**Last updated:** [April 24, 2021, 10:07pm UTC](https://discourse.processing.org/t/comment-faire-une-rotation-dimage-dans-un-tableau/29551 "2021-04-24T22:07:48Z")

</div>

Bonjour, Je suis une étudiante en design et pour un projet je souhaitais réaliser un jardin numérique. Je débute dans le milieu de processing et la base du code est faite en collaboration avec mon professeur de techno.…

---

## [Cycling through days of the week](https://discourse.processing.org/t/cycling-through-days-of-the-week/29609)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 2\
**Last updated:** [April 24, 2021, 9:29pm UTC](https://discourse.processing.org/t/cycling-through-days-of-the-week/29609 "2021-04-24T21:29:58Z")

</div>

Hi. I’m trying to write a code that cycles through the days of the week. Specifically, if today is Saturday, my code has to print today is Saturday tomorrow is Sunday the day after tomorrow is Monday and this has to…

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

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