# Latest

**URL:** https://discourse.processing.org/latest.md?page=518

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

**Page:** 519

---

## [Storing previous points when using a for-loop?](https://discourse.processing.org/t/storing-previous-points-when-using-a-for-loop/8829)

<div class="topic-metadata">

**Author:** [@JsRambles](https://discourse.processing.org/u/JsRambles)\
**Replies:** 2\
**Last updated:** [March 1, 2019, 2:11pm UTC](https://discourse.processing.org/t/storing-previous-points-when-using-a-for-loop/8829 "2019-03-01T14:11:41Z")

</div>

Hello, I am trying to make a 9 sided polygon using points and than connecting the points with lines. Reading other forums I know there is a way to do this using the vertex() commands and using arrays however this is fo…

---

## [Data visualization in Processing](https://discourse.processing.org/t/data-visualization-in-processing/8766)

<div class="topic-metadata">

**Author:** [@HEX0x6C](https://discourse.processing.org/u/HEX0x6C)\
**Replies:** 2\
**Last updated:** [March 1, 2019, 7:23am UTC](https://discourse.processing.org/t/data-visualization-in-processing/8766 "2019-03-01T07:23:50Z")

</div>

I am going to teach a course of Data Science, mostly in R. I would love to cover also the topic of data visualization in Processing. Do you know any good tutorial on this topic?

---

## [Help making a diagonal ellipse](https://discourse.processing.org/t/help-making-a-diagonal-ellipse/8827)

<div class="topic-metadata">

**Author:** [@Velouria](https://discourse.processing.org/u/Velouria)\
**Replies:** 1\
**Last updated:** [March 1, 2019, 4:53am UTC](https://discourse.processing.org/t/help-making-a-diagonal-ellipse/8827 "2019-03-01T04:53:36Z")

</div>

Hi everyone! So i´ve been trying to make an ellipse that crosses the screen diagonally but even with the different types of ellipseMode i can only do them cross the screen either horizontally or vertically. Any suggesti…

---

## [Problem with AI for 2D games libr](https://discourse.processing.org/t/problem-with-ai-for-2d-games-libr/2068)

<div class="topic-metadata">

**Author:** [@Tymek](https://discourse.processing.org/u/Tymek)\
**Replies:** 1\
**Last updated:** [February 28, 2019, 11:00pm UTC](https://discourse.processing.org/t/problem-with-ai-for-2d-games-libr/2068 "2019-02-28T23:00:21Z")

</div>

Hello, im trying to make bot for simple pong game. I have problem with reseting bots position after scoring point. Any suggestions? //main func. import game2dai.\*; import game2dai.entities.\*; import game2dai.entityshap…

---

## [How to make curves with slight variations](https://discourse.processing.org/t/how-to-make-curves-with-slight-variations/8745)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 2\
**Last updated:** [February 28, 2019, 6:28pm UTC](https://discourse.processing.org/t/how-to-make-curves-with-slight-variations/8745 "2019-02-28T18:28:29Z")

</div>

I intend to make arrays of curves that line up like this. So far my code can only draw straight lines like this or relatively regular curves I wonder how to use curve functions to create an array of curves that doesn…

---

## [Adding wind to bouncing ball example](https://discourse.processing.org/t/adding-wind-to-bouncing-ball-example/8748)

<div class="topic-metadata">

**Author:** [@pieceofcrazy](https://discourse.processing.org/u/pieceofcrazy)\
**Replies:** 1\
**Last updated:** [February 28, 2019, 7:07pm UTC](https://discourse.processing.org/t/adding-wind-to-bouncing-ball-example/8748 "2019-02-28T19:07:00Z")

</div>

I’m pretty new to coding and while playing around with the BouncingBall example I tried to add some air pushing the ball up if the mouse button in pressed, but it looks really goofy because the ball just goes up in a str…

---

## [Blogpost: My favorite Processing-libraries](https://discourse.processing.org/t/blogpost-my-favorite-processing-libraries/8812)

<div class="topic-metadata">

**Author:** [@timrodenbroeker](https://discourse.processing.org/u/timrodenbroeker)\
**Replies:** 0\
**Last updated:** [February 28, 2019, 5:41pm UTC](https://discourse.processing.org/t/blogpost-my-favorite-processing-libraries/8812 "2019-02-28T17:41:19Z")

</div>

Hi folks! Just wanted to let you know that i took some time to write a bit about my favorite Processing-libraries. Hope you find it helpful. Enjoy! And let me know what you think. Tim

---

## [Sending images/JSON data over OSC w. oscP5?](https://discourse.processing.org/t/sending-images-json-data-over-osc-w-oscp5/8734)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 2\
**Last updated:** [February 28, 2019, 5:54pm UTC](https://discourse.processing.org/t/sending-images-json-data-over-osc-w-oscp5/8734 "2019-02-28T17:54:30Z")

</div>

Hi Perhaps a bit of a weird question, but are there any tutorials on how to send images and/or data in JSON-format over OSC using the oscP5 library? Or anyone here who has experience doing that kind of thing?

---

## [Display a text over an hovered area](https://discourse.processing.org/t/display-a-text-over-an-hovered-area/8706)

<div class="topic-metadata">

**Author:** [@sevaus](https://discourse.processing.org/u/sevaus)\
**Replies:** 13\
**Last updated:** [February 28, 2019, 1:01pm UTC](https://discourse.processing.org/t/display-a-text-over-an-hovered-area/8706 "2019-02-28T13:01:43Z")

</div>

Hello, Say I have several automata: https://imgur.com/a/bga8qgE and I want to have a text displayed when the user hovers any arc. How could I do this? The automata was created using the usual functions arc, rect, line …

---

## [Using admob ads in processing](https://discourse.processing.org/t/using-admob-ads-in-processing/7997)

<div class="topic-metadata">

**Author:** [@boldi999](https://discourse.processing.org/u/boldi999)\
**Replies:** 37\
**Last updated:** [February 28, 2019, 12:14pm UTC](https://discourse.processing.org/t/using-admob-ads-in-processing/7997 "2019-02-28T12:14:25Z")

</div>

Hi everyone, I’m trying to use admob in my app, I downloaded this simple code: https://discourse.processing.org/t/implementing-ads-with-admob/2935 with the jar file and xml file. It’s compiled and built without any prob…

---

## [Corrupted .pde?](https://discourse.processing.org/t/corrupted-pde/8789)

<div class="topic-metadata">

**Author:** [@kigro](https://discourse.processing.org/u/kigro)\
**Replies:** 4\
**Last updated:** [February 28, 2019, 11:54am UTC](https://discourse.processing.org/t/corrupted-pde/8789 "2019-02-28T11:54:30Z")

</div>

So after working on a project for 5 hours on my Ubuntu laptop, I get home and try to open it on my pc: Is the file simply corrupt? Any way of recovering it? EDIT: Someone suggested checking for temp files on a Window…

---

## [Draw an arrow (my welcome Topic)](https://discourse.processing.org/t/draw-an-arrow-my-welcome-topic/8762)

<div class="topic-metadata">

**Author:** [@grillgemuese](https://discourse.processing.org/u/grillgemuese)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 11:23am UTC](https://discourse.processing.org/t/draw-an-arrow-my-welcome-topic/8762 "2019-02-27T11:23:01Z")

</div>

just want to share this little arrow drawing sketch. Have fun and have a good day! :slight\_smile: //drawArrow (grillgemuese) final int arrowSize = 50; //lenght in pixels float arrowAngle = 0.0; void setup() { size(…

---

## [Processing for arduino](https://discourse.processing.org/t/processing-for-arduino/8775)

<div class="topic-metadata">

**Author:** [@help](https://discourse.processing.org/u/help)\
**Replies:** 1\
**Last updated:** [February 28, 2019, 1:47am UTC](https://discourse.processing.org/t/processing-for-arduino/8775 "2019-02-28T01:47:00Z")

</div>

hi im fake joe ! i am trying to send f to my arduino and it fights me ! posting the arduino and the processing clip ! small clip of much larger program ! the arduino runs fine if i use the serial monitor ! i just typ…

---

## [Closing a shape with curveVertex till the end](https://discourse.processing.org/t/closing-a-shape-with-curvevertex-till-the-end/6566)

<div class="topic-metadata">

**Author:** [@animofa](https://discourse.processing.org/u/animofa)\
**Replies:** 15\
**Last updated:** [February 27, 2019, 4:12pm UTC](https://discourse.processing.org/t/closing-a-shape-with-curvevertex-till-the-end/6566 "2019-02-27T16:12:57Z")

</div>

Hello, I am currently working on a circular wave generator, that can be modified by users. To achieve it I am using curveVertex. beginShape(); let i =0; for(let a = 0; a \< TWO\_PI; a += ang){ i++; let sx = x + …

---

## [Minification question](https://discourse.processing.org/t/minification-question/8724)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 6\
**Last updated:** [February 27, 2019, 8:02pm UTC](https://discourse.processing.org/t/minification-question/8724 "2019-02-27T20:02:05Z")

</div>

The following code cycles the value of the variable NET within a range of 0 to 4. int NET; void setup() { println(NET); } void draw() { } void keyPressed() { if (keyCode == UP || keyCode == DOWN) NET = ((NET += keyC…

---

## [How to scale text and distance proportionally to avoid overlap?](https://discourse.processing.org/t/how-to-scale-text-and-distance-proportionally-to-avoid-overlap/8763)

<div class="topic-metadata">

**Author:** [@jacobo](https://discourse.processing.org/u/jacobo)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 6:52pm UTC](https://discourse.processing.org/t/how-to-scale-text-and-distance-proportionally-to-avoid-overlap/8763 "2019-02-27T18:52:17Z")

</div>

Hi! I want to be able to scale text size and spacing/leading proportionally to avoid overlaps of text. I’d like to be able to scale the text from it’s current size in 5 columns to a bigger text size in for example 3 colu…

---

## [Problem with adding objects to ArrayList](https://discourse.processing.org/t/problem-with-adding-objects-to-arraylist/8764)

<div class="topic-metadata">

**Author:** [@Tymek](https://discourse.processing.org/u/Tymek)\
**Replies:** 3\
**Last updated:** [February 27, 2019, 5:27pm UTC](https://discourse.processing.org/t/problem-with-adding-objects-to-arraylist/8764 "2019-02-27T17:27:48Z")

</div>

Hello, I wonder how to add object to ArrayList, when some conditions have been fullfiled. For example, i want to add new cell only if my mouse coursor is over one of each cells. Code is here. Thanks in advance :slight\_s…

---

## [Calling a function that returns array stops printArray](https://discourse.processing.org/t/calling-a-function-that-returns-array-stops-printarray/6108)

<div class="topic-metadata">

**Author:** [@thenewkgb](https://discourse.processing.org/u/thenewkgb)\
**Replies:** 15\
**Last updated:** [February 27, 2019, 3:59pm UTC](https://discourse.processing.org/t/calling-a-function-that-returns-array-stops-printarray/6108 "2019-02-27T15:59:13Z")

</div>

Try uncommenting grabline’s (r\[\]=details;) line. I haven’t been instructed where to place things really. Any help? int ws=6; int ls=6; int sx=0; int ex=findex(); int myline\[\]; void setup() { background(255); size(…

---

## [I'd like to convert Processing code into C++ code](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752)

<div class="topic-metadata">

**Author:** [@AngelsApple](https://discourse.processing.org/u/AngelsApple)\
**Replies:** 5\
**Last updated:** [February 27, 2019, 11:07am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752 "2019-02-27T11:07:34Z")

</div>

Hi boys&girls, I want to Processing code into C++ code Since I studied Processing as a first coding language, It feels so confused when I try to study other coding languages. Language that I’m studying now is C++ langu…

---

## [How does processing deploy an android apk](https://discourse.processing.org/t/how-does-processing-deploy-an-android-apk/8761)

<div class="topic-metadata">

**Author:** [@theinfo](https://discourse.processing.org/u/theinfo)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 11:01am UTC](https://discourse.processing.org/t/how-does-processing-deploy-an-android-apk/8761 "2019-02-27T11:01:09Z")

</div>

I know that the JVM (Java Virtual Machine) interprets/compiles the bytecode into platform specific code.Even processing uses Java to write sketches but how does it make an apk? Just quite inquisitive about the inner wor…

---

## [Using texture() with vertex()](https://discourse.processing.org/t/using-texture-with-vertex/8714)

<div class="topic-metadata">

**Author:** [@anthonygalea](https://discourse.processing.org/u/anthonygalea)\
**Replies:** 8\
**Last updated:** [February 27, 2019, 7:52am UTC](https://discourse.processing.org/t/using-texture-with-vertex/8714 "2019-02-27T07:52:31Z")

</div>

I can use texture() successfully with plane() but I can’t seem to figure out how to use it with vertex(). Does p5.js support using texture() with a shape built using vertex() calls like this: let pg; function setup() {…

---

## [Where is "Enable code folding" in Processing IDE?](https://discourse.processing.org/t/where-is-enable-code-folding-in-processing-ide/8710)

<div class="topic-metadata">

**Author:** [@miasoft](https://discourse.processing.org/u/miasoft)\
**Replies:** 5\
**Last updated:** [February 27, 2019, 4:26am UTC](https://discourse.processing.org/t/where-is-enable-code-folding-in-processing-ide/8710 "2019-02-27T04:26:29Z")

</div>

In Arduino IDE code folding is availabel, but in Processing IDE isn’t. Why?

---

## [PImages change to null in separate class](https://discourse.processing.org/t/pimages-change-to-null-in-separate-class/8403)

<div class="topic-metadata">

**Author:** [@Kyle](https://discourse.processing.org/u/Kyle)\
**Replies:** 9\
**Last updated:** [February 27, 2019, 4:05am UTC](https://discourse.processing.org/t/pimages-change-to-null-in-separate-class/8403 "2019-02-27T04:05:49Z")

</div>

I am using Processing core in Eclipse IDE, and I’m currently working on some code where I have many object classes inside of the main class. Recently I decided to move one of those classes (a class called bat) into a sep…

---

## [Why stroke can effect text's display?](https://discourse.processing.org/t/why-stroke-can-effect-texts-display/8728)

<div class="topic-metadata">

**Author:** [@sheeeeep](https://discourse.processing.org/u/sheeeeep)\
**Replies:** 7\
**Last updated:** [February 27, 2019, 2:33am UTC](https://discourse.processing.org/t/why-stroke-can-effect-texts-display/8728 "2019-02-27T02:33:48Z")

</div>

Here is my example: function setup() { createCanvas(640, 480); } function draw() { background(200) textSize(20) text("Welcome", 0, 20) stroke(255, 0, 0) } This is code’s preview:

---

## [\[Video Game\] \[Desktop\] \[Android\]](https://discourse.processing.org/t/video-game-desktop-android/8737)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 1\
**Last updated:** [February 26, 2019, 7:05pm UTC](https://discourse.processing.org/t/video-game-desktop-android/8737 "2019-02-26T19:05:37Z")

</div>

Hi people, i finish a litle game to my son of 4 yers old :slight\_smile: This game is for enjoy it when he goes to school in bus at the mornings in your Android phone. I will share a windows version of game: DOWNLO…

---

## [Get RGB values of a pixel on the canvas](https://discourse.processing.org/t/get-rgb-values-of-a-pixel-on-the-canvas/8719)

<div class="topic-metadata">

**Author:** [@Milky](https://discourse.processing.org/u/Milky)\
**Replies:** 12\
**Last updated:** [February 26, 2019, 6:49pm UTC](https://discourse.processing.org/t/get-rgb-values-of-a-pixel-on-the-canvas/8719 "2019-02-26T18:49:51Z")

</div>

I tried get() and pixels array, but they both didnt work cause get() is for when you load an image as I understand and pixels array for some reason just is full of the background color and no colors of lines I drew. How …

---

## [Getting GIFs to Play in a Random Order](https://discourse.processing.org/t/getting-gifs-to-play-in-a-random-order/8716)

<div class="topic-metadata">

**Author:** [@ratilomend](https://discourse.processing.org/u/ratilomend)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 6:41pm UTC](https://discourse.processing.org/t/getting-gifs-to-play-in-a-random-order/8716 "2019-02-26T18:41:14Z")

</div>

Hi all, I’m relatively new to p5 and coding generally. I’m currently working on a project which requires several GIFs to play one after another in a random order. I understand that arrays might be the way to go but I’m …

---

## [Text() on Mac causes program to pause](https://discourse.processing.org/t/text-on-mac-causes-program-to-pause/8353)

<div class="topic-metadata">

**Author:** [@sgolanka](https://discourse.processing.org/u/sgolanka)\
**Replies:** 3\
**Last updated:** [February 26, 2019, 6:36pm UTC](https://discourse.processing.org/t/text-on-mac-causes-program-to-pause/8353 "2019-02-26T18:36:00Z")

</div>

This problem occurs on Apple computers, but not not on Windows. The code below comes from a simple game. When the condition is true, the program (on a Mac), stops for a few seconds, and then displays “You Lose.” When…

---

## [Proper wraparound](https://discourse.processing.org/t/proper-wraparound/8702)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 5:11pm UTC](https://discourse.processing.org/t/proper-wraparound/8702 "2019-02-26T17:11:26Z")

</div>

Hey! I have these colored grids, 192 pixels wide, 120 pixels tall, and they move. I want them to wraparound the horizontal dimension so that when they start going out one side, right away they start popping out of the o…

---

## [\[SOLVED\] Using minim getLineIn() to listen to the speaker output](https://discourse.processing.org/t/solved-using-minim-getlinein-to-listen-to-the-speaker-output/8723)

<div class="topic-metadata">

**Author:** [@Xabdro](https://discourse.processing.org/u/Xabdro)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 4:21pm UTC](https://discourse.processing.org/t/solved-using-minim-getlinein-to-listen-to-the-speaker-output/8723 "2019-02-26T16:21:31Z")

</div>

I want to use minim to visualise the music playing on my computer from spotify. I have looked around online and the only way I have found to do this is to use stereo mix which my computer doesn’t support. I have found a …

[Previous page](https://discourse.processing.org/latest.md?page=517)

[Next page](https://discourse.processing.org/latest.md?page=519)
