# Processing

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

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

**Page:** 294

---

## [Moving and cutting](https://discourse.processing.org/t/moving-and-cutting/11777)

<div class="topic-metadata">

**Author:** [@BallazX](https://discourse.processing.org/u/BallazX)\
**Replies:** 7\
**Last updated:** [June 2, 2019, 7:49pm UTC](https://discourse.processing.org/t/moving-and-cutting/11777 "2019-06-02T19:49:03Z")

</div>

Hey Guys, I’m trying to do some demo project. What I’d like to do is draw some lines and a rectangle. Those part of the lines will be invisible which are out of the rectangle. I give the end-coordinates of the lines by …

---

## [Using a complex numbers library -- Apache math](https://discourse.processing.org/t/using-a-complex-numbers-library-apache-math/11771)

<div class="topic-metadata">

**Author:** [@toby](https://discourse.processing.org/u/toby)\
**Replies:** 4\
**Last updated:** [June 2, 2019, 6:10pm UTC](https://discourse.processing.org/t/using-a-complex-numbers-library-apache-math/11771 "2019-06-02T18:10:02Z")

</div>

Hello all, I’m working on a sketch for generating fractals and would like to replace my hand-rolled complex math functions with a “proper” library :slight\_smile: I’ve downloaded the jar for Adobe Commons Math to “sketch…

---

## [Data from txt file](https://discourse.processing.org/t/data-from-txt-file/11764)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 3\
**Last updated:** [June 2, 2019, 5:27am UTC](https://discourse.processing.org/t/data-from-txt-file/11764 "2019-06-02T05:27:08Z")

</div>

I have to read a file with 4000 lines or more, when i run this code the sketch reads something near to 500 lines only. Is there some kind of limitation? i’d try with double variables too but didan’t work. //global varia…

---

## [How to put a "replay" button on my game?](https://discourse.processing.org/t/how-to-put-a-replay-button-on-my-game/11676)

<div class="topic-metadata">

**Author:** [@sachy](https://discourse.processing.org/u/sachy)\
**Replies:** 2\
**Last updated:** [June 1, 2019, 5:41pm UTC](https://discourse.processing.org/t/how-to-put-a-replay-button-on-my-game/11676 "2019-06-01T17:41:59Z")

</div>

Hello everyone, i made a small game with processing (coded in JAVA) for my exams. But i still don’t know how to replay the game when it’s lost. I already searched on the net and tried few things but it doesn’t work. So I…

---

## [Trouble activating the four arrow keys at the same time](https://discourse.processing.org/t/trouble-activating-the-four-arrow-keys-at-the-same-time/11753)

<div class="topic-metadata">

**Author:** [@Yamanqui](https://discourse.processing.org/u/Yamanqui)\
**Replies:** 2\
**Last updated:** [June 1, 2019, 11:55am UTC](https://discourse.processing.org/t/trouble-activating-the-four-arrow-keys-at-the-same-time/11753 "2019-06-01T11:55:41Z")

</div>

I’m making a game that requires the user to press different combinations of the arrow keys for different moves. But I’m having trouble when they need to press 3 or 4 keys at the same time. I wrote a very simple example …

---

## [How draw rect() with texture with alpha channel?](https://discourse.processing.org/t/how-draw-rect-with-texture-with-alpha-channel/11755)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 3\
**Last updated:** [June 1, 2019, 11:11am UTC](https://discourse.processing.org/t/how-draw-rect-with-texture-with-alpha-channel/11755 "2019-06-01T11:11:51Z")

</div>

i have this problem… in 2d the problem not exists… but in 3d when i draw boxes… apears background color in sprites… sprites are drawed with a simple shape with rect()

---

## [Kinect image mapping](https://discourse.processing.org/t/kinect-image-mapping/11445)

<div class="topic-metadata">

**Author:** [@Anstar](https://discourse.processing.org/u/Anstar)\
**Replies:** 5\
**Last updated:** [June 1, 2019, 10:48am UTC](https://discourse.processing.org/t/kinect-image-mapping/11445 "2019-06-01T10:48:03Z")

</div>

Hi guys, as part of a community project for a local library and some school credits (not getting marked on my code or processing!) My goal is to have a kinect set up and have people’s silhouettes made up of words (simil…

---

## [Random and If Else help](https://discourse.processing.org/t/random-and-if-else-help/11718)

<div class="topic-metadata">

**Author:** [@b3pkay](https://discourse.processing.org/u/b3pkay)\
**Replies:** 10\
**Last updated:** [June 1, 2019, 12:22am UTC](https://discourse.processing.org/t/random-and-if-else-help/11718 "2019-06-01T00:22:09Z")

</div>

Hello, I am making a “drawing” program and running into an issue. I’ve written a smaller, less complex sample of the program pasted below and am hoping someone can help. Essentially, I want to draw rectangles within a ce…

---

## [Problema con Class, extend y herencia](https://discourse.processing.org/t/problema-con-class-extend-y-herencia/11204)

<div class="topic-metadata">

**Author:** [@aledante](https://discourse.processing.org/u/aledante)\
**Replies:** 12\
**Last updated:** [May 31, 2019, 11:08pm UTC](https://discourse.processing.org/t/problema-con-class-extend-y-herencia/11204 "2019-05-31T23:08:47Z")

</div>

Hola a todos. Este es mi primer post. Soy bastante nuevo en esto. Estoy haciendo una clase, supongamos “animales”. Dentro de la misma tengo un procedimiento “void hijo”, que crea una copia de si misma con algunas varia…

---

## [Making things happen sequentially within an array](https://discourse.processing.org/t/making-things-happen-sequentially-within-an-array/11749)

<div class="topic-metadata">

**Author:** [@Hetoft](https://discourse.processing.org/u/Hetoft)\
**Replies:** 1\
**Last updated:** [May 31, 2019, 10:59pm UTC](https://discourse.processing.org/t/making-things-happen-sequentially-within-an-array/11749 "2019-05-31T22:59:41Z")

</div>

Hi there, I’m trying to display all the objects in an array, not all at once, but one after the other. Basically, what my code does is to load sequences of SVGs and then display them as one fluent animation. What I wan…

---

## [Create randomly placed circles loop not working(runtime error)](https://discourse.processing.org/t/create-randomly-placed-circles-loop-not-working-runtime-error/11719)

<div class="topic-metadata">

**Author:** [@dakito](https://discourse.processing.org/u/dakito)\
**Replies:** 3\
**Last updated:** [May 31, 2019, 10:39pm UTC](https://discourse.processing.org/t/create-randomly-placed-circles-loop-not-working-runtime-error/11719 "2019-05-31T22:39:34Z")

</div>

So I am making a game where you would click on randomly appearing circles, and for the sake of reusability and self-improvement I have chosen to use for loops and arrays for the first time. After some unexpected results…

---

## [Importing animated vector graphics?](https://discourse.processing.org/t/importing-animated-vector-graphics/11627)

<div class="topic-metadata">

**Author:** [@Hetoft](https://discourse.processing.org/u/Hetoft)\
**Replies:** 6\
**Last updated:** [May 31, 2019, 9:19pm UTC](https://discourse.processing.org/t/importing-animated-vector-graphics/11627 "2019-05-31T21:19:30Z")

</div>

Hi there, I did some small animations in After Effects and want them included in my Processing project. I know that I could display GIFs, but since AE allows me to export animated SVGs (as JSON files) by the help of a p…

---

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

---

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

---

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

---

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

---

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

---

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

---

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

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

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