# Latest

**URL:** https://discourse.processing.org/latest.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

---

## [New Python Mode / Processing.py book](https://discourse.processing.org/t/new-python-mode-processing-py-book/27258)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 6\
**Last updated:** [May 1, 2021, 11:53pm UTC](https://discourse.processing.org/t/new-python-mode-processing-py-book/27258 "2021-05-01T23:53:27Z")

</div>

A shameless plug for my new book on Python Mode / Processing.py, titled: Learn Python Visually – Creative Coding with Python Mode for Processing This is a beginners book to introduce non-programmers to the fundamentals…

---

## [What is the code for my wave to move at the same time as the song?](https://discourse.processing.org/t/what-is-the-code-for-my-wave-to-move-at-the-same-time-as-the-song/29728)

<div class="topic-metadata">

**Author:** [@Marga](https://discourse.processing.org/u/Marga)\
**Replies:** 15\
**Last updated:** [May 1, 2021, 9:11pm UTC](https://discourse.processing.org/t/what-is-the-code-for-my-wave-to-move-at-the-same-time-as-the-song/29728 "2021-05-01T21:11:22Z")

</div>

Hello everyone! I’m having trouble knowing how my wave moves at the same time as my music. In this sense, I would like to know if anyone can help me to resolve this issue? I already created my wave and put my music on …

---

## [Random SkyLine lab](https://discourse.processing.org/t/random-skyline-lab/29766)

<div class="topic-metadata">

**Author:** [@Syntax64](https://discourse.processing.org/u/Syntax64)\
**Replies:** 5\
**Last updated:** [May 1, 2021, 8:59pm UTC](https://discourse.processing.org/t/random-skyline-lab/29766 "2021-05-01T20:59:46Z")

</div>

I’m Struggling to figure out a small detail in my project. How do I make windows that randomly are either yellow or black and are set in a grid according to the building? How it should look. int\[\] buildingHeights = new…

---

## [Map latitude and longitude coordinates to a an image?](https://discourse.processing.org/t/map-latitude-and-longitude-coordinates-to-a-an-image/29746)

<div class="topic-metadata">

**Author:** [@brolly301](https://discourse.processing.org/u/brolly301)\
**Replies:** 7\
**Last updated:** [May 1, 2021, 4:43pm UTC](https://discourse.processing.org/t/map-latitude-and-longitude-coordinates-to-a-an-image/29746 "2021-05-01T16:43:20Z")

</div>

Hi I’m trying to mark multiple points on a map using their latitude and longitude coordinates. I’ve written a for loop which gets these coordinates as well as population data from the CSV file but I’m unsure how I’d get …

---

## [Controlp5 (cp5): Sync color displayed by colorwheel when variable is changed](https://discourse.processing.org/t/controlp5-cp5-sync-color-displayed-by-colorwheel-when-variable-is-changed/29775)

<div class="topic-metadata">

**Author:** [@Len](https://discourse.processing.org/u/Len)\
**Replies:** 2\
**Last updated:** [May 1, 2021, 4:40pm UTC](https://discourse.processing.org/t/controlp5-cp5-sync-color-displayed-by-colorwheel-when-variable-is-changed/29775 "2021-05-01T16:40:42Z")

</div>

I use a colorwheel in my sketch to change the background color. I also have a key set to choose and set random background color from an array. I would like the color wheel to update and display the actual background colo…

---

## [About how to load images after the video is over](https://discourse.processing.org/t/about-how-to-load-images-after-the-video-is-over/29749)

<div class="topic-metadata">

**Author:** [@Yujung](https://discourse.processing.org/u/Yujung)\
**Replies:** 2\
**Last updated:** [May 1, 2021, 3:08pm UTC](https://discourse.processing.org/t/about-how-to-load-images-after-the-video-is-over/29749 "2021-05-01T15:08:51Z")

</div>

I wanted to make two images of case2 appear after the ‘intro’ video, but it didn’t work. What could be the problem? import processing.video.\*; Movie intro; int caseNum=1; PImage start; PImage press; void setup() { …

---

## [Gsod'21 under p5.js](https://discourse.processing.org/t/gsod21-under-p5-js/29680)

<div class="topic-metadata">

**Author:** [@joeyouss](https://discourse.processing.org/u/joeyouss)\
**Replies:** 12\
**Last updated:** [May 1, 2021, 9:31am UTC](https://discourse.processing.org/t/gsod21-under-p5-js/29680 "2021-05-01T09:31:38Z")

</div>

Hi! I am interested in applying for GSOD in p5.js but I could not find links to the application process and timeline. Help would be much appreciated!

---

## [Bug in logic for creating checkerboard grid](https://discourse.processing.org/t/bug-in-logic-for-creating-checkerboard-grid/29759)

<div class="topic-metadata">

**Author:** [@rikitiki](https://discourse.processing.org/u/rikitiki)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 9:20pm UTC](https://discourse.processing.org/t/bug-in-logic-for-creating-checkerboard-grid/29759 "2021-04-30T21:20:25Z")

</div>

Hello, I’m hoping someone can find the flaw in my logic here. My goal is to create an even overlay checkerboard that has a transparency of 50. Here is my code in setup: background(255); int fillColor = 0; int gridDime…

---

## [Sending application via email/google drive](https://discourse.processing.org/t/sending-application-via-email-google-drive/27909)

<div class="topic-metadata">

**Author:** [@jackeddielove](https://discourse.processing.org/u/jackeddielove)\
**Replies:** 4\
**Last updated:** [April 30, 2021, 8:52pm UTC](https://discourse.processing.org/t/sending-application-via-email-google-drive/27909 "2021-04-30T20:52:48Z")

</div>

I have exported my sketch as an application. The application runs fine on my computer. However, when I upload it to google drive and then download it from there, it won’t run. I click on the icon and nothing happens. Am …

---

## [I am making a game but i cant figure out how to keep the ellipse inside the window. how do i do this?](https://discourse.processing.org/t/i-am-making-a-game-but-i-cant-figure-out-how-to-keep-the-ellipse-inside-the-window-how-do-i-do-this/29757)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 8:34pm UTC](https://discourse.processing.org/t/i-am-making-a-game-but-i-cant-figure-out-how-to-keep-the-ellipse-inside-the-window-how-do-i-do-this/29757 "2021-04-30T20:34:41Z")

</div>

float x =0; float y =0; float snelheid\_omlaag = 1; ;void setup() { fullScreen(); } void draw() { ellipse(x, y, 50, 50); x=x+random(-90, 90); y=y+random(-40, 40)+snelheid\_omlaag; i want the keep inside window …

---

## [How do i use a variable to press a key with robot class](https://discourse.processing.org/t/how-do-i-use-a-variable-to-press-a-key-with-robot-class/29752)

<div class="topic-metadata">

**Author:** [@tobich](https://discourse.processing.org/u/tobich)\
**Replies:** 7\
**Last updated:** [April 30, 2021, 7:15pm UTC](https://discourse.processing.org/t/how-do-i-use-a-variable-to-press-a-key-with-robot-class/29752 "2021-04-30T19:15:27Z")

</div>

Basically I’m trying to make a function that will type the key i need Because its a function i give it a string with a variable which is the key i need to press and the robot variable how do i do it?

---

## [Visualize tweets on a map real time](https://discourse.processing.org/t/visualize-tweets-on-a-map-real-time/20963)

<div class="topic-metadata">

**Author:** [@OptOut](https://discourse.processing.org/u/OptOut)\
**Replies:** 1\
**Last updated:** [May 17, 2020, 3:39pm UTC](https://discourse.processing.org/t/visualize-tweets-on-a-map-real-time/20963 "2020-05-17T15:39:03Z")

</div>

Hi everybody, I have an idea for a project and looking for guidance/examples on how to get started as a relative newbie What I would like to achieve: A 2d map of the world. A way to show a visualisation of tweets from…

---

## [Exploring use of different JVM](https://discourse.processing.org/t/exploring-use-of-different-jvm/29744)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 3:28pm UTC](https://discourse.processing.org/t/exploring-use-of-different-jvm/29744 "2021-04-30T15:28:51Z")

</div>

Recently with my ruby-processing projects I have been experimenting with using graalvm. Then I thought I would like to try it out with vanilla processing (particularly processing-4.0a3), it used to possible to just rep…

---

## [Marking population on a map without latitude and longitude coordinates?](https://discourse.processing.org/t/marking-population-on-a-map-without-latitude-and-longitude-coordinates/29741)

<div class="topic-metadata">

**Author:** [@brolly301](https://discourse.processing.org/u/brolly301)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 1:53pm UTC](https://discourse.processing.org/t/marking-population-on-a-map-without-latitude-and-longitude-coordinates/29741 "2021-04-30T13:53:15Z")

</div>

Hi I have a map of the UK and I’m trying to load data onto the map but the data file hasn’t got latitude or longitude coordinates for each place to enable me to get the precise location. Is there any way to do this anoth…

---

## [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…

---

## [GSOD Application](https://discourse.processing.org/t/gsod-application/29717)

<div class="topic-metadata">

**Author:** [@santam](https://discourse.processing.org/u/santam)\
**Replies:** 0\
**Last updated:** [April 29, 2021, 6:02am UTC](https://discourse.processing.org/t/gsod-application/29717 "2021-04-29T06:02:13Z")

</div>

Hey @stalgiag, this is Santam. I am a sophomore and proficient with javascript and have been using p5.js for over one year now. I wish to contribute to the documentation of the p5.js in GSOD under the project “New Contri…

---

## [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…

---

## [Problem with backspace key](https://discourse.processing.org/t/problem-with-backspace-key/29393)

<div class="topic-metadata">

**Author:** [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Replies:** 5\
**Last updated:** [April 29, 2021, 3:45pm UTC](https://discourse.processing.org/t/problem-with-backspace-key/29393 "2021-04-29T15:45:30Z")

</div>

hello, i need your help! I was experimenting with the code, but found a problem for example if I type 5 letters, I need to press the backspace key six times to just delete a character for example if I type 10 letters,…

---

## [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…

---

## [Exporting .apk from Processing sketch](https://discourse.processing.org/t/exporting-apk-from-processing-sketch/29640)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 1:51pm UTC](https://discourse.processing.org/t/exporting-apk-from-processing-sketch/29640 "2021-04-29T13:51:56Z")

</div>

I just completed my first trivial app and would feel cool distributing it to my relatives. The point is: when I try to Export Signed Package, it fails both on Windows and on Mac. Here’s the message on Windows: org.gradl…

---

## [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…

---

## [Don't know what is missing for to code to work (flappy bird)](https://discourse.processing.org/t/dont-know-what-is-missing-for-to-code-to-work-flappy-bird/29711)

<div class="topic-metadata">

**Author:** [@JustinChan613](https://discourse.processing.org/u/JustinChan613)\
**Replies:** 2\
**Last updated:** [April 28, 2021, 11:03pm UTC](https://discourse.processing.org/t/dont-know-what-is-missing-for-to-code-to-work-flappy-bird/29711 "2021-04-28T23:03:17Z")

</div>

Hi it’s me again. Right now I am dealing with another game - flappy bird. I am making the function of counting is player losing. I use if-else statement to determine whether the player’s losing. The coding flow seems to …

---

## [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…

---

## [Auto Save in p5js editor?](https://discourse.processing.org/t/auto-save-in-p5js-editor/29706)

<div class="topic-metadata">

**Author:** [@CGMSTeacher](https://discourse.processing.org/u/CGMSTeacher)\
**Replies:** 1\
**Last updated:** [April 28, 2021, 4:23pm UTC](https://discourse.processing.org/t/auto-save-in-p5js-editor/29706 "2021-04-28T16:23:15Z")

</div>

I’m a Middle School teacher new to p5js and using it with one of my 6th grade classes. My students seem to keep loosing their work despite my constant reminders to manually save. (They are in the bad habit of assuming e…

---

## [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 …

---

## [How to improve my sketch board?](https://discourse.processing.org/t/how-to-improve-my-sketch-board/29698)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.processing.org/u/turtle)\
**Replies:** 4\
**Last updated:** [April 28, 2021, 1:05pm UTC](https://discourse.processing.org/t/how-to-improve-my-sketch-board/29698 "2021-04-28T13:05:34Z")

</div>

Yes, I am creating one sketch board for my students. At this moment, the sketch board is so simple just with Stroke, ColorPicker, Eraser, and one Clear button, the code is following: document.oncontextmenu=new Functio…

---

## [orbitControl() only works after a double tap (mobile)](https://discourse.processing.org/t/orbitcontrol-only-works-after-a-double-tap-mobile/29661)

<div class="topic-metadata">

**Author:** [@andypurbrick](https://discourse.processing.org/u/andypurbrick)\
**Replies:** 6\
**Last updated:** [April 28, 2021, 11:12am UTC](https://discourse.processing.org/t/orbitcontrol-only-works-after-a-double-tap-mobile/29661 "2021-04-28T11:12:21Z")

</div>

I have a sketch with a rotating cube that uses the orbitControl() to allow it to be moved on its X axis, however, orbit controls only work if I double tap the screen. As far as I’m aware this is not expected behaviour f…

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

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