# Latest

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

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

**Page:** 480

---

## [Solution - Beads Audio Library error : java.lang.IllegalArgumentException: Line unsupported](https://discourse.processing.org/t/solution-beads-audio-library-error-java-lang-illegalargumentexception-line-unsupported/9454)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 7\
**Last updated:** [May 31, 2019, 7:53pm UTC](https://discourse.processing.org/t/solution-beads-audio-library-error-java-lang-illegalargumentexception-line-unsupported/9454 "2019-05-31T19:53:05Z")

</div>

In Linux I was getting this error when using the Beads audio library: Exception in thread "Thread-1" java.lang.IllegalArgumentException: Line unsupported: interface SourceDataLine supporting format PCM\_SIGNED 44100.0 Hz…

---

## [Store the coordinates of the mouse clicks](https://discourse.processing.org/t/store-the-coordinates-of-the-mouse-clicks/11745)

<div class="topic-metadata">

**Author:** [@BallazX](https://discourse.processing.org/u/BallazX)\
**Replies:** 5\
**Last updated:** [May 31, 2019, 7:54pm UTC](https://discourse.processing.org/t/store-the-coordinates-of-the-mouse-clicks/11745 "2019-05-31T19:54:17Z")

</div>

Hello All, I try to draw some shapes and lines. What I’d like to do is draw the shape by clicking on the mouse. E.g: the coordinates of a line should be the mouseX and mouseY. Is there any solution to store the values o…

---

## [Error downloading libraries in ARM](https://discourse.processing.org/t/error-downloading-libraries-in-arm/11601)

<div class="topic-metadata">

**Author:** [@Smantik](https://discourse.processing.org/u/Smantik)\
**Replies:** 2\
**Last updated:** [May 31, 2019, 6:55pm UTC](https://discourse.processing.org/t/error-downloading-libraries-in-arm/11601 "2019-05-31T18:55:54Z")

</div>

Hi! I am using a Jetson Nano with Ubuntu 18.04. I finally could install Processing 3.5.3 version with a Zulu JDK 8 64-bit ARM build for solving the Java problems that I had. Run problems were resolved with that butnow …

---

## [Data visualization – sketch set-up error](https://discourse.processing.org/t/data-visualization-sketch-set-up-error/11632)

<div class="topic-metadata">

**Author:** [@Darius](https://discourse.processing.org/u/Darius)\
**Replies:** 9\
**Last updated:** [May 31, 2019, 7:47pm UTC](https://discourse.processing.org/t/data-visualization-sketch-set-up-error/11632 "2019-05-31T19:47:18Z")

</div>

Hi there, I am building a very simple sketch to visualize text and data. It works when is like this(see below), but not when I use void setup and void draw (see second option after). does anyone know why? Thanks! Strin…

---

## [Draw a line without using line()](https://discourse.processing.org/t/draw-a-line-without-using-line/11715)

<div class="topic-metadata">

**Author:** [@BProcess](https://discourse.processing.org/u/BProcess)\
**Replies:** 3\
**Last updated:** [May 31, 2019, 6:03pm UTC](https://discourse.processing.org/t/draw-a-line-without-using-line/11715 "2019-05-31T18:03:30Z")

</div>

Hey guys, I’m new at processing and I would like to do a simple task: draw a line without using the line() function. I already have this code: void setup() { size(1300, 800); } float x1=100; float x2=200; float y1=1…

---

## [Export application with json file fail](https://discourse.processing.org/t/export-application-with-json-file-fail/11637)

<div class="topic-metadata">

**Author:** [@skovholm](https://discourse.processing.org/u/skovholm)\
**Replies:** 5\
**Last updated:** [May 31, 2019, 5:33pm UTC](https://discourse.processing.org/t/export-application-with-json-file-fail/11637 "2019-05-31T17:33:20Z")

</div>

hi i do a simple project . works fine when i push play in processing 3.0 when i do push EXPORT application and make windows and embed java i get the files exported. But when trying to rin the exe file …it show the win…

---

## [nullPointerExeption](https://discourse.processing.org/t/nullpointerexeption/11741)

<div class="topic-metadata">

**Author:** [@programmingNoob](https://discourse.processing.org/u/programmingNoob)\
**Replies:** 3\
**Last updated:** [May 31, 2019, 4:59pm UTC](https://discourse.processing.org/t/nullpointerexeption/11741 "2019-05-31T16:59:04Z")

</div>

I’m working on creating bullets for a remake of diep.io, but am new to arrays. I received an error that said nullPointerExeption, and looked it up to find out what I did wrong, but found that it means my array hasn’t bee…

---

## [Getting rid of input boxes later on / "encrypting passwords"](https://discourse.processing.org/t/getting-rid-of-input-boxes-later-on-encrypting-passwords/11709)

<div class="topic-metadata">

**Author:** [@CodeTime](https://discourse.processing.org/u/CodeTime)\
**Replies:** 4\
**Last updated:** [May 31, 2019, 1:53pm UTC](https://discourse.processing.org/t/getting-rid-of-input-boxes-later-on-encrypting-passwords/11709 "2019-05-31T13:53:36Z")

</div>

So I am trying to make a facebook imitation for practice. I was able to make the full front page, where you can sign up and log in and everything. My problem right now is that the input boxes do not disappear when you go…

---

## [Animating lines with 3 different positions](https://discourse.processing.org/t/animating-lines-with-3-different-positions/11731)

<div class="topic-metadata">

**Author:** [@antoniofrom1984](https://discourse.processing.org/u/antoniofrom1984)\
**Replies:** 1\
**Last updated:** [May 31, 2019, 1:45pm UTC](https://discourse.processing.org/t/animating-lines-with-3-different-positions/11731 "2019-05-31T13:45:07Z")

</div>

https://editor.p5js.org/antoniofrom1984/sketches/8n9le2Wvh In my project i have 2 lines. Each line changes position when you click on the screen. The position of each line always falls randomly in thirds of the screen…

---

## [How to create dynamic shapes from human body into Box2D?](https://discourse.processing.org/t/how-to-create-dynamic-shapes-from-human-body-into-box2d/11739)

<div class="topic-metadata">

**Author:** [@Dazzid](https://discourse.processing.org/u/Dazzid)\
**Replies:** 0\
**Last updated:** [May 31, 2019, 12:45pm UTC](https://discourse.processing.org/t/how-to-create-dynamic-shapes-from-human-body-into-box2d/11739 "2019-05-31T12:45:05Z")

</div>

I’m working on a project using OpenCV and Box2d. What is the correct method to create a custom shape? I’m following Shiffman’s tutorial about polygons, the issue here is that the shape changes, it is not fixed. The first…

---

## [Changing background color after rotating object](https://discourse.processing.org/t/changing-background-color-after-rotating-object/11685)

<div class="topic-metadata">

**Author:** [@corbax](https://discourse.processing.org/u/corbax)\
**Replies:** 2\
**Last updated:** [May 31, 2019, 9:40am UTC](https://discourse.processing.org/t/changing-background-color-after-rotating-object/11685 "2019-05-31T09:40:04Z")

</div>

hello guys. I am new to processing. my question is how can I make my rotating object not to leave a trail behind him. I know that it can be done by using background() function but my background is gray and my object is …

---

## [Centering loading bar](https://discourse.processing.org/t/centering-loading-bar/11712)

<div class="topic-metadata">

**Author:** [@corbax](https://discourse.processing.org/u/corbax)\
**Replies:** 1\
**Last updated:** [May 31, 2019, 1:29am UTC](https://discourse.processing.org/t/centering-loading-bar/11712 "2019-05-31T01:29:27Z")

</div>

hello guys. so I want to make a “loading bar” that shows RPM of motors in real time (for now it is just variable that is slowly growing). My bar is getting bigger but as it grows it is not centered (it grows up and down…

---

## [Launching Circles In Processing Circles](https://discourse.processing.org/t/launching-circles-in-processing-circles/11643)

<div class="topic-metadata">

**Author:** [@s21ebutler](https://discourse.processing.org/u/s21ebutler)\
**Replies:** 5\
**Last updated:** [May 30, 2019, 11:30pm UTC](https://discourse.processing.org/t/launching-circles-in-processing-circles/11643 "2019-05-30T23:30:47Z")

</div>

I am doing a project for my computer Science class and I am having some serious trouble with it. I am trying to make it so that I can launch ellipses. Basically you click on the circle you want to launch then drag back, …

---

## [Advantages of using classes and other ways to do things](https://discourse.processing.org/t/advantages-of-using-classes-and-other-ways-to-do-things/11591)

<div class="topic-metadata">

**Author:** [@Bobby](https://discourse.processing.org/u/Bobby)\
**Replies:** 6\
**Last updated:** [May 30, 2019, 10:05pm UTC](https://discourse.processing.org/t/advantages-of-using-classes-and-other-ways-to-do-things/11591 "2019-05-30T22:05:34Z")

</div>

I have never used classes until now. And i dont really understand how they work. I feel like it has made my code much more complex than it is rather than neaten stuff up. Why do people use the class function? If i wan…

---

## [\[Processing 3\] Unable to Delete Files in /data through Java.io.File](https://discourse.processing.org/t/processing-3-unable-to-delete-files-in-data-through-java-io-file/11693)

<div class="topic-metadata">

**Author:** [@ILikePi](https://discourse.processing.org/u/ILikePi)\
**Replies:** 2\
**Last updated:** [May 30, 2019, 7:20pm UTC](https://discourse.processing.org/t/processing-3-unable-to-delete-files-in-data-through-java-io-file/11693 "2019-05-30T19:20:59Z")

</div>

This is the code… I think the issue is how I am using Java.io.File but I have no idea. String str = new Integer(i).toString(); String fileName1 = dataPath(str+".csv"); File f1 = new File(fileName1); …

---

## [Importing libraries into classes](https://discourse.processing.org/t/importing-libraries-into-classes/11710)

<div class="topic-metadata">

**Author:** [@InferNova](https://discourse.processing.org/u/InferNova)\
**Replies:** 5\
**Last updated:** [May 30, 2019, 7:29pm UTC](https://discourse.processing.org/t/importing-libraries-into-classes/11710 "2019-05-30T19:29:43Z")

</div>

Hey there! I have been running into an issue where I would like to import a library into a file but when I do make the file and my own class it doesn’t recognize that the library is imported and doesn’t let me use what …

---

## [Circular mesh growth](https://discourse.processing.org/t/circular-mesh-growth/11568)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 8\
**Last updated:** [May 30, 2019, 7:07pm UTC](https://discourse.processing.org/t/circular-mesh-growth/11568 "2019-05-30T19:07:04Z")

</div>

Hi all, I’m struggling to find the right cell division pattern in a new growth algorithm I’m working on. All I know is that I need to start with a circular mesh and that after a few cycles of face division the output s…

---

## [Save canvas image to a variable \[p5.js\]](https://discourse.processing.org/t/save-canvas-image-to-a-variable-p5-js/11657)

<div class="topic-metadata">

**Author:** [@josebv](https://discourse.processing.org/u/josebv)\
**Replies:** 2\
**Last updated:** [May 30, 2019, 5:45pm UTC](https://discourse.processing.org/t/save-canvas-image-to-a-variable-p5-js/11657 "2019-05-30T17:45:47Z")

</div>

Hey, I’m trying to save a canvas image to variable, because later y want to push that variable into a an array, that at end of the loop goes to a database. I know that: saveCanvas(canvas, name,".png") downloads an im…

---

## [Trying to make a SpaceInvaders-esque game and running into some problems, would appreciate help!](https://discourse.processing.org/t/trying-to-make-a-spaceinvaders-esque-game-and-running-into-some-problems-would-appreciate-help/11711)

<div class="topic-metadata">

**Author:** [@MasquedProgrammer](https://discourse.processing.org/u/MasquedProgrammer)\
**Replies:** 1\
**Last updated:** [May 30, 2019, 5:04pm UTC](https://discourse.processing.org/t/trying-to-make-a-spaceinvaders-esque-game-and-running-into-some-problems-would-appreciate-help/11711 "2019-05-30T17:04:41Z")

</div>

Hello, in school I have an IT class and am pretty new to programming, I can pretty much only do the basics. In any case, I’m making a Space Invaders-esque game and have a pretty annoying problem. Here is the (I think) re…

---

## [Mental Calculation for schoolgirls and schoolboys](https://discourse.processing.org/t/mental-calculation-for-schoolgirls-and-schoolboys/11714)

<div class="topic-metadata">

**Author:** [@LittleBoxes](https://discourse.processing.org/u/LittleBoxes)\
**Replies:** 0\
**Last updated:** [May 30, 2019, 5:02pm UTC](https://discourse.processing.org/t/mental-calculation-for-schoolgirls-and-schoolboys/11714 "2019-05-30T17:02:02Z")

</div>

A web app made with p5js for my college students who are learning the addition and subtraction of relative numbers. the instructions are in French. I’m trying to translate them here : “click on the two numbers that giv…

---

## [Hot line bling ardino help](https://discourse.processing.org/t/hot-line-bling-ardino-help/11556)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 5\
**Last updated:** [May 30, 2019, 4:24pm UTC](https://discourse.processing.org/t/hot-line-bling-ardino-help/11556 "2019-05-30T16:24:13Z")

</div>

I am supposed to get the below code or create a code that play hot line bling by Drake but i don’t understand how to input the notes for it. /\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* Spark…

---

## [Create mulitple ''pages'' in p5.js](https://discourse.processing.org/t/create-mulitple-pages-in-p5-js/11471)

<div class="topic-metadata">

**Author:** [@maxah999](https://discourse.processing.org/u/maxah999)\
**Replies:** 11\
**Last updated:** [May 30, 2019, 4:22pm UTC](https://discourse.processing.org/t/create-mulitple-pages-in-p5-js/11471 "2019-05-30T16:22:27Z")

</div>

Hi there ! I’m trying to recode the game found in https://www.humanbenchmark.com/tests/reactiontime for a project. I tried multiple things but i’m a slow learner when it comes to code, and i’m trying to create it one sl…

---

## [Blob's Attack - Another Asteroïd Like Game](https://discourse.processing.org/t/blobs-attack-another-asteroid-like-game/11554)

<div class="topic-metadata">

**Author:** [@LittleBoxes](https://discourse.processing.org/u/LittleBoxes)\
**Replies:** 5\
**Last updated:** [May 30, 2019, 1:56pm UTC](https://discourse.processing.org/t/blobs-attack-another-asteroid-like-game/11554 "2019-05-30T13:56:13Z")

</div>

Hello, I did a little game to better understand the use of vectors and how to implement the laws of movement of physics. Unlike the last time, I did not use any bitmap sprites but only p5js 2Dshape primitives. http://…

---

## [Push button and motor](https://discourse.processing.org/t/push-button-and-motor/11680)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 3\
**Last updated:** [May 30, 2019, 11:56am UTC](https://discourse.processing.org/t/push-button-and-motor/11680 "2019-05-30T11:56:20Z")

</div>

I was asked to create an Arduino program which uses a push button to start and stop a DC motor. int buttonPin1 = 2; //Start button int buttonPin2 = 3; //Stop button int buttonStatus1 = 0; int buttonStatus2 = 0; int m…

---

## [Generate one random number](https://discourse.processing.org/t/generate-one-random-number/11707)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 5\
**Last updated:** [May 30, 2019, 11:33am UTC](https://discourse.processing.org/t/generate-one-random-number/11707 "2019-05-30T11:33:47Z")

</div>

how can I generate only one random number per 200 frameCount? my code does produce many random numbers per 200 frameCount but I want it to repeat only once.

---

## [Running out of Memory](https://discourse.processing.org/t/running-out-of-memory/11701)

<div class="topic-metadata">

**Author:** [@MrPyro](https://discourse.processing.org/u/MrPyro)\
**Replies:** 0\
**Last updated:** [May 30, 2019, 6:16am UTC](https://discourse.processing.org/t/running-out-of-memory/11701 "2019-05-30T06:16:26Z")

</div>

Hi, For quite some time now, I have been trying to figure out a solution to my problem. I am running out of memory, storing PShape objects. Currently, I am adding around 250,000 child shapes to a main PShape object that…

---

## [How to create small increment in random number](https://discourse.processing.org/t/how-to-create-small-increment-in-random-number/11669)

<div class="topic-metadata">

**Author:** [@noob](https://discourse.processing.org/u/noob)\
**Replies:** 9\
**Last updated:** [May 30, 2019, 3:10am UTC](https://discourse.processing.org/t/how-to-create-small-increment-in-random-number/11669 "2019-05-30T03:10:55Z")

</div>

Hi All I have been stuck this problem for few days. Couldn’t figure it out how create small increment in random number. This is my code: var jitter; function setup() { createCanvas(400, 400); background(220); s…

---

## [3d animation to flip a card](https://discourse.processing.org/t/3d-animation-to-flip-a-card/11687)

<div class="topic-metadata">

**Author:** [@minican1997](https://discourse.processing.org/u/minican1997)\
**Replies:** 9\
**Last updated:** [May 30, 2019, 2:05am UTC](https://discourse.processing.org/t/3d-animation-to-flip-a-card/11687 "2019-05-30T02:05:17Z")

</div>

hello i need some help i am new in processing and i dont know how to make an animation to flip a card when i click on it i need to make a memory card game and to have an flip animation on it please help me :(( Card\[\]…

---

## [Holding the ball in pong](https://discourse.processing.org/t/holding-the-ball-in-pong/11520)

<div class="topic-metadata">

**Author:** [@somedude](https://discourse.processing.org/u/somedude)\
**Replies:** 128\
**Last updated:** [May 30, 2019, 2:04am UTC](https://discourse.processing.org/t/holding-the-ball-in-pong/11520 "2019-05-30T02:04:29Z")

</div>

Hello im coding a pong game with a twist im trying to make it when the player holds the spacebar the bar holds the ball but im having trouble making the ball stop. thanks in advance if ( xpos \<= 30+size/2) { if (…

---

## [Mathematics and P5](https://discourse.processing.org/t/mathematics-and-p5/11019)

<div class="topic-metadata">

**Author:** [@gbenedisgrab](https://discourse.processing.org/u/gbenedisgrab)\
**Replies:** 8\
**Last updated:** [May 30, 2019, 1:58am UTC](https://discourse.processing.org/t/mathematics-and-p5/11019 "2019-05-30T01:58:41Z")

</div>

I am interested in exploring how p5 can be used in math courses k-12. I recently was in a HS math course discussing this problem: Which natural number from 1…N has the most factors. We started by creating a simple n^2…

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

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