# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=386

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

**Page:** 387

---

## [Creating a frame timer](https://discourse.processing.org/t/creating-a-frame-timer/18165)

<div class="topic-metadata">

**Author:** [@NotConsumable](https://discourse.processing.org/u/NotConsumable)\
**Replies:** 13\
**Last updated:** [February 27, 2020, 8:22am UTC](https://discourse.processing.org/t/creating-a-frame-timer/18165 "2020-02-27T08:22:30Z")

</div>

I am trying to create a timer that makes an ellipse disappear 2 seconds or 120 frames after the mouse has been pressed, the ellipse and text appear whenever i press my mouse, but they disappear far too fast about 1 frame…

---

## [G4P - Defining handleButtonEvents(..) in a Class](https://discourse.processing.org/t/g4p-defining-handlebuttonevents-in-a-class/18262)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 2\
**Last updated:** [March 1, 2020, 7:32pm UTC](https://discourse.processing.org/t/g4p-defining-handlebuttonevents-in-a-class/18262 "2020-03-01T19:32:19Z")

</div>

I’m coding native java classes using the Processing 3 IDE. Using G4P as my GUI library I’m trying to encapsulate one of my logical GUI components inside its own class, including the event handler for associated events. H…

---

## [Enemy x keeps equaling nan](https://discourse.processing.org/t/enemy-x-keeps-equaling-nan/18302)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 10:46pm UTC](https://discourse.processing.org/t/enemy-x-keeps-equaling-nan/18302 "2020-03-02T22:46:54Z")

</div>

I’m trying to create a tower defense game, but atm my enemy keeps vanishing & it’s x keeps showing up nan. Can anyone tell me why? sketch.js var wall = \[35\]; var bs = 25; var enemy; function preload(){ wallT = loadT…

---

## [Unfolding Not working with processing 3](https://discourse.processing.org/t/unfolding-not-working-with-processing-3/18320)

<div class="topic-metadata">

**Author:** [@singhv3](https://discourse.processing.org/u/singhv3)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 10:17pm UTC](https://discourse.processing.org/t/unfolding-not-working-with-processing-3/18320 "2020-03-02T22:17:56Z")

</div>

Hello everyone, I am new to Processing and I am trying to work with the unfolding library. I downloaded the available 0.9.6 version from the unfolding site but it is not working fine with processing 3. Any help will be …

---

## [Conectar puntos](https://discourse.processing.org/t/conectar-puntos/18250)

<div class="topic-metadata">

**Author:** [@Eduwu](https://discourse.processing.org/u/Eduwu)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 7:58pm UTC](https://discourse.processing.org/t/conectar-puntos/18250 "2020-03-02T19:58:19Z")

</div>

Hola!, soy principiante en processing y quería hacer un proyecto donde se crean puntos random con un limite y pueda conectarlos con el mouse dando click en cada punto, como creando constelaciones, pero la verdad no se mu…

---

## [Processing on raspberry 3 without display](https://discourse.processing.org/t/processing-on-raspberry-3-without-display/17979)

<div class="topic-metadata">

**Author:** [@faebser](https://discourse.processing.org/u/faebser)\
**Replies:** 1\
**Last updated:** [March 2, 2020, 7:51pm UTC](https://discourse.processing.org/t/processing-on-raspberry-3-without-display/17979 "2020-03-02T19:51:15Z")

</div>

Hi everybody, Status I have slighlty winded question but it boils down to that I have a Java app that uses some of parts of processing to draw some text and output that via SPI to some LED-matrices on the MAX7219. I am …

---

## [When you re-load and play a new sound with minim, the old sound will still play ...?](https://discourse.processing.org/t/when-you-re-load-and-play-a-new-sound-with-minim-the-old-sound-will-still-play/18280)

<div class="topic-metadata">

**Author:** [@EvilDuck](https://discourse.processing.org/u/EvilDuck)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 5:39pm UTC](https://discourse.processing.org/t/when-you-re-load-and-play-a-new-sound-with-minim-the-old-sound-will-still-play/18280 "2020-03-02T17:39:20Z")

</div>

I have this; a new sound is loaded, the old one will still play can this be fixed, or is it just the way minim works … ? I want to be able to load a new sound to save memory Code: for ( int i = 0; i \< 2; i++ ) { …

---

## [Give randomly generated objects a destination rather than a velocity?](https://discourse.processing.org/t/give-randomly-generated-objects-a-destination-rather-than-a-velocity/18260)

<div class="topic-metadata">

**Author:** [@wavyboneee](https://discourse.processing.org/u/wavyboneee)\
**Replies:** 5\
**Last updated:** [March 2, 2020, 12:51pm UTC](https://discourse.processing.org/t/give-randomly-generated-objects-a-destination-rather-than-a-velocity/18260 "2020-03-02T12:51:58Z")

</div>

I’m new to coding so this might sound very stupid but any help would be great. I know how to increment x and y values to create object movement, and am in the process of learning how to do this using vectors, however I …

---

## [How to achieve this style of visual?](https://discourse.processing.org/t/how-to-achieve-this-style-of-visual/18282)

<div class="topic-metadata">

**Author:** [@AphexBor](https://discourse.processing.org/u/AphexBor)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 11:48am UTC](https://discourse.processing.org/t/how-to-achieve-this-style-of-visual/18282 "2020-03-02T11:48:33Z")

</div>

Can anyone point me the direction of how to create this style of creative coding? I think the original artist was using Perlin noise but all my attempts have been useless! If anyone could even tell me what this is called…

---

## [Help - Cant figure this out](https://discourse.processing.org/t/help-cant-figure-this-out/18291)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 7:02am UTC](https://discourse.processing.org/t/help-cant-figure-this-out/18291 "2020-03-02T07:02:27Z")

</div>

This is supposed to produce vertical lines of varying colors and lengths and I can only get it to produce lines of the same color and length. I have looked at it over and over and I can’t figure out what I am doing wron…

---

## [Processing software not opening](https://discourse.processing.org/t/processing-software-not-opening/4922)

<div class="topic-metadata">

**Author:** [@Ashu1414](https://discourse.processing.org/u/Ashu1414)\
**Replies:** 5\
**Last updated:** [November 4, 2018, 5:22am UTC](https://discourse.processing.org/t/processing-software-not-opening/4922 "2018-11-04T05:22:32Z")

</div>

I have downloaded processing software 1.5.1 but when I tried to open the exe file a message saying “The application requires at least java development kit (not jre) 1.5.0” is showing I have downloaded it nut its not work…

---

## [xyScope Library](https://discourse.processing.org/t/xyscope-library/14369)

<div class="topic-metadata">

**Author:** [@mattiasu96](https://discourse.processing.org/u/mattiasu96)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 3:09am UTC](https://discourse.processing.org/t/xyscope-library/14369 "2020-03-02T03:09:54Z")

</div>

I’m trying to use the xyScope Library: https://teddavis.org/xyscope/ . I’d like to build something like the video demo of the library: https://vimeo.com/226597331 I managed to use an already written example from the li…

---

## [Rotating an object need to know the position of the points globally](https://discourse.processing.org/t/rotating-an-object-need-to-know-the-position-of-the-points-globally/18270)

<div class="topic-metadata">

**Author:** [@Pixelfixation](https://discourse.processing.org/u/Pixelfixation)\
**Replies:** 4\
**Last updated:** [March 1, 2020, 8:51pm UTC](https://discourse.processing.org/t/rotating-an-object-need-to-know-the-position-of-the-points-globally/18270 "2020-03-01T20:51:54Z")

</div>

Hey! I am making a simulation for my calc 1 professor. He wants a simulation of a ferris wheel where I can check the positions of the passengers on the Y axis at different points in time during the rotations. What I need…

---

## [Problem with pulling values from array of colours, strings](https://discourse.processing.org/t/problem-with-pulling-values-from-array-of-colours-strings/18267)

<div class="topic-metadata">

**Author:** [@leobrooks](https://discourse.processing.org/u/leobrooks)\
**Replies:** 9\
**Last updated:** [March 1, 2020, 7:18pm UTC](https://discourse.processing.org/t/problem-with-pulling-values-from-array-of-colours-strings/18267 "2020-03-01T19:18:45Z")

</div>

Hello, I’ve extracted my problem from a larger sketch, but the main problem is here. When I run this, the colours and letters appear alright, but I get this error: Uncaught Error: \[object Arguments\]is not a valid colo…

---

## [Update the second text](https://discourse.processing.org/t/update-the-second-text/18275)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 10\
**Last updated:** [March 1, 2020, 6:41pm UTC](https://discourse.processing.org/t/update-the-second-text/18275 "2020-03-01T18:41:52Z")

</div>

I need Help i would update the second Text can everyone help me Text: int sekunde = second(); int minute = minute(); int stunde = hour(); int tag = day(); int monat = month(); int yahr = year(); void setup(){ fullS…

---

## [Making a circle disappear when clicked on](https://discourse.processing.org/t/making-a-circle-disappear-when-clicked-on/18239)

<div class="topic-metadata">

**Author:** [@meh](https://discourse.processing.org/u/meh)\
**Replies:** 6\
**Last updated:** [March 1, 2020, 5:03pm UTC](https://discourse.processing.org/t/making-a-circle-disappear-when-clicked-on/18239 "2020-03-01T17:03:16Z")

</div>

I have some experience with java but I am new to p5js. I created a game with circles falling down and you gain 1 point every time you click on a circle, also when a circle reaches the bottom of the screen you lose a life…

---

## [Splitting an ArrayList for each PVector (0,0) (updated)](https://discourse.processing.org/t/splitting-an-arraylist-for-each-pvector-0-0-updated/17883)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 16\
**Last updated:** [February 29, 2020, 6:11pm UTC](https://discourse.processing.org/t/splitting-an-arraylist-for-each-pvector-0-0-updated/17883 "2020-02-29T18:11:23Z")

</div>

Hi there :slight\_smile: I have an ArrayList of PVectors that I want to split into two separate ArrayLists. I have found out that you can split Lists using .sublist, but I have only managed to split my ArrayList into two…

---

## [Stroke weight selection](https://discourse.processing.org/t/stroke-weight-selection/18242)

<div class="topic-metadata">

**Author:** [@WeeBoEtte](https://discourse.processing.org/u/WeeBoEtte)\
**Replies:** 6\
**Last updated:** [March 1, 2020, 11:12am UTC](https://discourse.processing.org/t/stroke-weight-selection/18242 "2020-03-01T11:12:39Z")

</div>

I’m trying to make a drawing program with a tool bar, buttons, and a canvas. So far I got a lot done with help from everyone here on this forum, however, when I try click on the 2 line of my 3 line button, it draws the l…

---

## [G4P - Specifying Listener Method](https://discourse.processing.org/t/g4p-specifying-listener-method/18258)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 10:05am UTC](https://discourse.processing.org/t/g4p-specifying-listener-method/18258 "2020-03-01T10:05:30Z")

</div>

I’m a new user of G4P, migrating over from ControlP5. I’m coding my app as native java classes (but still using the Processing 3 IDE). I am simply trying to assign a listener to a specific button control via .addEventHan…

---

## [Manually calculate "p5.vector.fromAngle?"](https://discourse.processing.org/t/manually-calculate-p5-vector-fromangle/18252)

<div class="topic-metadata">

**Author:** [@commie630](https://discourse.processing.org/u/commie630)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 10:03am UTC](https://discourse.processing.org/t/manually-calculate-p5-vector-fromangle/18252 "2020-03-01T10:03:23Z")

</div>

Broad question, but how can I manually calculate a vector from an angle/radian as opposed to using p5.vector.fromAngle? (platform agonistic)

---

## [Game control plus with ClassNotFoundException problem](https://discourse.processing.org/t/game-control-plus-with-classnotfoundexception-problem/17963)

<div class="topic-metadata">

**Author:** [@JeremyL](https://discourse.processing.org/u/JeremyL)\
**Replies:** 3\
**Last updated:** [February 23, 2020, 8:45am UTC](https://discourse.processing.org/t/game-control-plus-with-classnotfoundexception-problem/17963 "2020-02-23T08:45:50Z")

</div>

Hi,@quark sorry to bother you. im new to using processing for my school project, and now I’m learning to use game control plus library. However when I test it, whatever which example I test, everytime it will show ClassN…

---

## [Need help with this Loop](https://discourse.processing.org/t/need-help-with-this-loop/18256)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 8\
**Last updated:** [March 1, 2020, 2:14am UTC](https://discourse.processing.org/t/need-help-with-this-loop/18256 "2020-03-01T02:14:27Z")

</div>

Can anyone tell me what I am doing wrong? I cannot get this to do more than one row. float randomW; float randomH; float row; float column; void setup(){ size(400,400); background(250,250,0); for(int row = 0; row\<…

---

## [Translation contribution](https://discourse.processing.org/t/translation-contribution/18261)

<div class="topic-metadata">

**Author:** [@phe0](https://discourse.processing.org/u/phe0)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 2:00am UTC](https://discourse.processing.org/t/translation-contribution/18261 "2020-03-01T02:00:41Z")

</div>

Hello, I’ve been working on the translation of the p5.js website to portuguese, but I did not understand how to the reference section should work, it doesn’t have an english json file, but it has an es.json file, the pa…

---

## [Problem with hover on area curves](https://discourse.processing.org/t/problem-with-hover-on-area-curves/18120)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 4:54am UTC](https://discourse.processing.org/t/problem-with-hover-on-area-curves/18120 "2020-02-29T04:54:36Z")

</div>

I am creating a sketch with comparison of different social media uses. I have layered multiple area curves one in front of the other. My intention is to create a hover effect on the point of interest. The problem I ran i…

---

## [For Statement not working](https://discourse.processing.org/t/for-statement-not-working/18257)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 12:36am UTC](https://discourse.processing.org/t/for-statement-not-working/18257 "2020-03-01T00:36:10Z")

</div>

I can’t seem to limit this to 25 ellipses even though I wrote a for statement. float randomX; float randomY; float randomZ; float randomQ; int x; void setup(){ size(400,400); background(250,250,0); } void draw…

---

## [Getting my asteroids videogame to work](https://discourse.processing.org/t/getting-my-asteroids-videogame-to-work/17945)

<div class="topic-metadata">

**Author:** [@The-Coder](https://discourse.processing.org/u/The-Coder)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 10:02pm UTC](https://discourse.processing.org/t/getting-my-asteroids-videogame-to-work/17945 "2020-02-29T22:02:46Z")

</div>

I am try to make a sideways meteor dodging game where you are a spaceship that avoids asteroids that fly towards you from the left. My problem is that I have not been able to make a larger than 1 pixel hit box for the as…

---

## [Problems with translating player to center at screen](https://discourse.processing.org/t/problems-with-translating-player-to-center-at-screen/18230)

<div class="topic-metadata">

**Author:** [@joloporto](https://discourse.processing.org/u/joloporto)\
**Replies:** 2\
**Last updated:** [February 29, 2020, 9:36pm UTC](https://discourse.processing.org/t/problems-with-translating-player-to-center-at-screen/18230 "2020-02-29T21:36:23Z")

</div>

i am working on a program with the player translated to the center of screen and the background moving around the player. I have working collision detection- when the player hits any of the blocks on the screen, it stops…

---

## [Distance between randomly spawned objects](https://discourse.processing.org/t/distance-between-randomly-spawned-objects/18026)

<div class="topic-metadata">

**Author:** [@Kothal](https://discourse.processing.org/u/Kothal)\
**Replies:** 6\
**Last updated:** [February 29, 2020, 9:10pm UTC](https://discourse.processing.org/t/distance-between-randomly-spawned-objects/18026 "2020-02-29T21:10:29Z")

</div>

I’m a beginner who just started out learning js and p5. I started working on making my own game from scratch, it’s actually a replica of the chrome dino game, I managed to do everything I wanted to and I’m almost finishe…

---

## [How do i change the circle's color when the mouse hovers over it?](https://discourse.processing.org/t/how-do-i-change-the-circles-color-when-the-mouse-hovers-over-it/18226)

<div class="topic-metadata">

**Author:** [@cesca](https://discourse.processing.org/u/cesca)\
**Replies:** 6\
**Last updated:** [February 29, 2020, 8:30pm UTC](https://discourse.processing.org/t/how-do-i-change-the-circles-color-when-the-mouse-hovers-over-it/18226 "2020-02-29T20:30:46Z")

</div>

I am super, super new to this so pls assume i know nothing: I adapted this code from a Daniel Shiffman tutorial. I know i have to use the dist function to compare mouseY, mouseX and the circle’s radius but idk how to wri…

---

## [Convert video to 1 pixel per frame](https://discourse.processing.org/t/convert-video-to-1-pixel-per-frame/18086)

<div class="topic-metadata">

**Author:** [@themindfactory](https://discourse.processing.org/u/themindfactory)\
**Replies:** 7\
**Last updated:** [February 29, 2020, 8:15pm UTC](https://discourse.processing.org/t/convert-video-to-1-pixel-per-frame/18086 "2020-02-29T20:15:59Z")

</div>

Yes you read it correctly I want to convert a video file to a single RGB pixel per frame, so another way to think about it is that this one color per frame is the color you would see on your ceiling when you are watching…

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

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