# Latest

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

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

**Page:** 430

---

## [Storing data like a cookie?](https://discourse.processing.org/t/storing-data-like-a-cookie/15258)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 2\
**Last updated:** [November 5, 2019, 7:16pm UTC](https://discourse.processing.org/t/storing-data-like-a-cookie/15258 "2019-11-05T19:16:25Z")

</div>

How would you go about holding data in a P5 sketch online if someone came back to it later. For example, if I had a piece of code where you can choose the fill color of a rect, how could you make it store that value so …

---

## [Splice function](https://discourse.processing.org/t/splice-function/15185)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 6\
**Last updated:** [November 5, 2019, 5:51pm UTC](https://discourse.processing.org/t/splice-function/15185 "2019-11-05T17:51:09Z")

</div>

Hi all, I’m trying to use the splice function for an array as described here and here but it’s not working in my code. I’ve implemented it on line 161. Does anyone have any insights? Thanks! Here’s a link to the code …

---

## [Processing Frames drop over time, Array of multiple 1000s of objects](https://discourse.processing.org/t/processing-frames-drop-over-time-array-of-multiple-1000s-of-objects/15116)

<div class="topic-metadata">

**Author:** [@Janvonfalken](https://discourse.processing.org/u/Janvonfalken)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 5:45pm UTC](https://discourse.processing.org/t/processing-frames-drop-over-time-array-of-multiple-1000s-of-objects/15116 "2019-11-05T17:45:37Z")

</div>

I am trying to write a line editor for the game “BeamNG”. It takes in a JSON file and lets you edit waypoints (values) of that JSON. If I start the program it works fine, but as soon as I zoom in the Framerate begins to …

---

## [Display text as a wave](https://discourse.processing.org/t/display-text-as-a-wave/15236)

<div class="topic-metadata">

**Author:** [@dev19](https://discourse.processing.org/u/dev19)\
**Replies:** 2\
**Last updated:** [November 5, 2019, 5:33pm UTC](https://discourse.processing.org/t/display-text-as-a-wave/15236 "2019-11-05T17:33:23Z")

</div>

this is my code… int xspace = 5; // How far apart should each horizontal location be spaced int w; // Width of entire wave float theta = 0.0; // Start angle at 0 float amplitude = 80.0; // Height of wa…

---

## [Attractor on Infinite Surface](https://discourse.processing.org/t/attractor-on-infinite-surface/15134)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 12\
**Last updated:** [November 5, 2019, 5:31pm UTC](https://discourse.processing.org/t/attractor-on-infinite-surface/15134 "2019-11-05T17:31:26Z")

</div>

I‘m trying to get an Attractor simulation running on a pseudo infinite surface, but i can‘t get it to work properly. What i‘m doing is basically set up a normal 1D Attractor simulation (Particles with pos, direction and…

---

## [How to deactivate polygonizer in geomerative](https://discourse.processing.org/t/how-to-deactivate-polygonizer-in-geomerative/15252)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 2:48pm UTC](https://discourse.processing.org/t/how-to-deactivate-polygonizer-in-geomerative/15252 "2019-11-05T14:48:15Z")

</div>

hi all, I have this svg I want to import to processing and manipulate the vertices. when I import the svg , there are some points I don’t want or need. I want just the vertices from the original curve nothing more, how…

---

## [How to make Gear Ratios](https://discourse.processing.org/t/how-to-make-gear-ratios/15221)

<div class="topic-metadata">

**Author:** [@locky12](https://discourse.processing.org/u/locky12)\
**Replies:** 3\
**Last updated:** [November 5, 2019, 12:57pm UTC](https://discourse.processing.org/t/how-to-make-gear-ratios/15221 "2019-11-05T12:57:07Z")

</div>

I am writing a software in Java, for my Computer Science IA that shows how gear Ratios work, However the only problem with it is that I have no idea of how to draw a gear in processing, please could somebody help me out? …

---

## [How can I change the page by clicking a button?](https://discourse.processing.org/t/how-can-i-change-the-page-by-clicking-a-button/15244)

<div class="topic-metadata">

**Author:** [@CyberDodo](https://discourse.processing.org/u/CyberDodo)\
**Replies:** 6\
**Last updated:** [November 5, 2019, 11:31am UTC](https://discourse.processing.org/t/how-can-i-change-the-page-by-clicking-a-button/15244 "2019-11-05T11:31:10Z")

</div>

How can I change the page by clicking a button?

---

## [Processing and thermal printer](https://discourse.processing.org/t/processing-and-thermal-printer/3933)

<div class="topic-metadata">

**Author:** [@moscardo](https://discourse.processing.org/u/moscardo)\
**Replies:** 10\
**Last updated:** [October 8, 2018, 10:07pm UTC](https://discourse.processing.org/t/processing-and-thermal-printer/3933 "2018-10-08T22:07:18Z")

</div>

Hi everyone, I’m working on a project where an EPSON TM-T20II thermal printer must be driven by a Processing sketch. I’ve tried to make it work with the SimpleReceiptPrinter but without success. I think it could be pr…

---

## [Android menu(button) related](https://discourse.processing.org/t/android-menu-button-related/14198)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 13\
**Last updated:** [November 5, 2019, 6:58am UTC](https://discourse.processing.org/t/android-menu-button-related/14198 "2019-11-05T06:58:26Z")

</div>

Good morning. nice to meet you. Like the picture above, the menu bar is basically used in Android. Is there any layout source code like above in processing? Or is there source code to make it like this? Help me ple…

---

## [P5.js : Trouble with clicking buttons and make object move around on canvas](https://discourse.processing.org/t/p5-js-trouble-with-clicking-buttons-and-make-object-move-around-on-canvas/15242)

<div class="topic-metadata">

**Author:** [@Jenny1227](https://discourse.processing.org/u/Jenny1227)\
**Replies:** 2\
**Last updated:** [November 5, 2019, 6:00am UTC](https://discourse.processing.org/t/p5-js-trouble-with-clicking-buttons-and-make-object-move-around-on-canvas/15242 "2019-11-05T06:00:23Z")

</div>

I am really new to p5.js, and I’m trying to find a solution to this. I have a button. I wish to make my rabbit appear on canvas and jump up and down when the button is clicked. Now the rabbit only appear on canvas with …

---

## [Getting undesirable vertices when importing SVG from illustrator](https://discourse.processing.org/t/getting-undesirable-vertices-when-importing-svg-from-illustrator/15205)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 12\
**Last updated:** [November 4, 2019, 10:14pm UTC](https://discourse.processing.org/t/getting-undesirable-vertices-when-importing-svg-from-illustrator/15205 "2019-11-04T22:14:29Z")

</div>

Hi guys, i’am having a little problem when importing an svg exported from illustrator. in illustrator I made sure I had only the necessary vertices like this but when imported to processing I get this the code i’am…

---

## [Parse midi files](https://discourse.processing.org/t/parse-midi-files/14126)

<div class="topic-metadata">

**Author:** [@Adrien](https://discourse.processing.org/u/Adrien)\
**Replies:** 8\
**Last updated:** [November 4, 2019, 9:32pm UTC](https://discourse.processing.org/t/parse-midi-files/14126 "2019-11-04T21:32:54Z")

</div>

Hi, Do you know how to read/parse a midi file in processing 3? There was some librairies but to old to be use in processing 3, or I find some Java code to play a midi file “as it is”, but what I want to do is to play e…

---

## [Detecting greatest jump in value in arrayList](https://discourse.processing.org/t/detecting-greatest-jump-in-value-in-arraylist/15216)

<div class="topic-metadata">

**Author:** [@edward](https://discourse.processing.org/u/edward)\
**Replies:** 3\
**Last updated:** [November 4, 2019, 8:31pm UTC](https://discourse.processing.org/t/detecting-greatest-jump-in-value-in-arraylist/15216 "2019-11-04T20:31:08Z")

</div>

Good morning, I want to be able to detect the element with the greatest jump in value in an arrayList. I’ve done it this way, but I wonder if there is a “more correct” and more simplified way to do it, maybe using fewe…

---

## [PCD 2020 Slack Workplace (Processing Community Day)](https://discourse.processing.org/t/pcd-2020-slack-workplace-processing-community-day/14178)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 8:24pm UTC](https://discourse.processing.org/t/pcd-2020-slack-workplace-processing-community-day/14178 "2019-11-04T20:24:54Z")

</div>

We are launching a Slack workplace for PCD ( (Processing Community Day) organizers, those interested in organizing, and those looking for collaborators. This can be a place where we share wisdom, feedback, and hopefully …

---

## [Problem with bouncing ball program with mousePress](https://discourse.processing.org/t/problem-with-bouncing-ball-program-with-mousepress/15227)

<div class="topic-metadata">

**Author:** [@helpme123](https://discourse.processing.org/u/helpme123)\
**Replies:** 1\
**Last updated:** [November 4, 2019, 7:49pm UTC](https://discourse.processing.org/t/problem-with-bouncing-ball-program-with-mousepress/15227 "2019-11-04T19:49:58Z")

</div>

Im trying to create a program where balls bounce around the screen and when they hit each other they collide and when mousePressed create another ball, but nothing is showing on my sketch window. Ball\[\] balls = new Ball…

---

## [Can't use image() with SVG library](https://discourse.processing.org/t/cant-use-image-with-svg-library/10582)

<div class="topic-metadata">

**Author:** [@Raums](https://discourse.processing.org/u/Raums)\
**Replies:** 3\
**Last updated:** [November 4, 2019, 7:45pm UTC](https://discourse.processing.org/t/cant-use-image-with-svg-library/10582 "2019-11-04T19:45:13Z")

</div>

Processing throws a NullPointerException when I try to output an image to SVG while using image(). Looks like this is a known issue from 2017. There’s an answer there but like the poster, I don’t know how to implement it…

---

## [Trouble understanding for loops!](https://discourse.processing.org/t/trouble-understanding-for-loops/15211)

<div class="topic-metadata">

**Author:** [@IsaiahZ](https://discourse.processing.org/u/IsaiahZ)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 3:35pm UTC](https://discourse.processing.org/t/trouble-understanding-for-loops/15211 "2019-11-04T15:35:37Z")

</div>

I am making this “illusion” and instead of coding it how I currently have it I need to use for loops and I’m not sure how to implement it for this code. I’m new so I would really appreciate the help. I would also like to…

---

## [Superpixel boofcv?](https://discourse.processing.org/t/superpixel-boofcv/11702)

<div class="topic-metadata">

**Author:** [@fun](https://discourse.processing.org/u/fun)\
**Replies:** 3\
**Last updated:** [November 4, 2019, 5:52am UTC](https://discourse.processing.org/t/superpixel-boofcv/11702 "2019-11-04T05:52:12Z")

</div>

I have tried to find some way to make superpixels in Processing. I need it to be a bit configurable, the more features, the better, as resolution and numbers of superpixel will change. Important is a possibility to fill…

---

## [Drawing Sheet on Processing](https://discourse.processing.org/t/drawing-sheet-on-processing/14928)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 6\
**Last updated:** [November 4, 2019, 2:42am UTC](https://discourse.processing.org/t/drawing-sheet-on-processing/14928 "2019-11-04T02:42:32Z")

</div>

My project is done! As you can see from the title, I managed to create a working drawing sheet in which you can draw with different colors by pressing the mouse in different positions. You can also trigger the eraser mo…

---

## [Rotation and Easing](https://discourse.processing.org/t/rotation-and-easing/5704)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 18\
**Last updated:** [November 3, 2019, 11:09pm UTC](https://discourse.processing.org/t/rotation-and-easing/5704 "2019-11-03T23:09:14Z")

</div>

Hello In my sketch I want to controle the rotation of a wheel and add a bit of easing to the rotation to give some feeling of weight to the wheel. I have it doing what I want but, the easing is messed up by the gap bet…

---

## [Ball moving - Linear and Cosinusoidal](https://discourse.processing.org/t/ball-moving-linear-and-cosinusoidal/15209)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [November 3, 2019, 11:06pm UTC](https://discourse.processing.org/t/ball-moving-linear-and-cosinusoidal/15209 "2019-11-03T23:06:56Z")

</div>

A ball moving between points; overlapping linear and cosinusoidal movement. I was cleaning up some old code and sharing a minimal version; I wrote some of the functions as an exercise. // GLV // 2019-11-3 // Plots a…

---

## [Rotate on Command](https://discourse.processing.org/t/rotate-on-command/14865)

<div class="topic-metadata">

**Author:** [@hahayes](https://discourse.processing.org/u/hahayes)\
**Replies:** 16\
**Last updated:** [November 3, 2019, 9:02pm UTC](https://discourse.processing.org/t/rotate-on-command/14865 "2019-11-03T21:02:46Z")

</div>

I am attempting to make a cube that can rotate in any direction on command. I am currently trying to see if I can make it rotate at all on command, and I think that it does rotate, but I am trying to think about how to a…

---

## [Why use class for memory card game](https://discourse.processing.org/t/why-use-class-for-memory-card-game/15189)

<div class="topic-metadata">

**Author:** [@crazybob5](https://discourse.processing.org/u/crazybob5)\
**Replies:** 4\
**Last updated:** [November 3, 2019, 8:27pm UTC](https://discourse.processing.org/t/why-use-class-for-memory-card-game/15189 "2019-11-03T20:27:16Z")

</div>

Hi, I’m making a memory game. People are telling me to use a class for the cards, because it would be more efficient. Can someone explain me why?

---

## [Anyone have a good idea? Math and Science](https://discourse.processing.org/t/anyone-have-a-good-idea-math-and-science/15200)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 3\
**Last updated:** [November 3, 2019, 8:25pm UTC](https://discourse.processing.org/t/anyone-have-a-good-idea-math-and-science/15200 "2019-11-03T20:25:58Z")

</div>

I have to visualize concepts and various examples : about math and science.:raised\_back\_of\_hand: Do you have any good ideas?:thinking::thinking:

---

## [Event flow (Boolean values)](https://discourse.processing.org/t/event-flow-boolean-values/15142)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 13\
**Last updated:** [November 3, 2019, 8:17pm UTC](https://discourse.processing.org/t/event-flow-boolean-values/15142 "2019-11-03T20:17:46Z")

</div>

The following code works exactly as it should, but I want to understand the event flow. The change to varH should happen when the key is pressed and only happen once. Under void keyPressed() When the H or h key is pres…

---

## [Collision rect - ellipse : Multiple questions - More info in Body](https://discourse.processing.org/t/collision-rect-ellipse-multiple-questions-more-info-in-body/15155)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 18\
**Last updated:** [November 3, 2019, 8:05pm UTC](https://discourse.processing.org/t/collision-rect-ellipse-multiple-questions-more-info-in-body/15155 "2019-11-03T20:05:48Z")

</div>

How can I make that when the laser hits the rectangle that randomly spawns, the laser will just stop? Like it will not go any further but will stop? How can I make collision so my player (ellipse) will be not able t…

---

## [Marquee selection in P3D( and P2D) using offscreen PGraphicsbuffer](https://discourse.processing.org/t/marquee-selection-in-p3d-and-p2d-using-offscreen-pgraphicsbuffer/14749)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 4\
**Last updated:** [November 3, 2019, 5:18pm UTC](https://discourse.processing.org/t/marquee-selection-in-p3d-and-p2d-using-offscreen-pgraphicsbuffer/14749 "2019-11-03T17:18:03Z")

</div>

I’m currently using an offscreen buffer in a 3D view and also a 2D view to help select objects in a UI when the mouse is clicked. The method is basically similar to what @Quark has built for shapes3D i.e. assigning a un…

---

## [How to connect nodes and relocate them to the nearest grid location](https://discourse.processing.org/t/how-to-connect-nodes-and-relocate-them-to-the-nearest-grid-location/15131)

<div class="topic-metadata">

**Author:** [@oliviabertrum](https://discourse.processing.org/u/oliviabertrum)\
**Replies:** 17\
**Last updated:** [November 3, 2019, 4:32pm UTC](https://discourse.processing.org/t/how-to-connect-nodes-and-relocate-them-to-the-nearest-grid-location/15131 "2019-11-03T16:32:33Z")

</div>

hi everyone, i have a grid and have put nodes into my code, however i need the nodes to be connected to create a full shape like below. Also, i need help getting the nodes to move to the nearest grid location when the u…

---

## [Ellipse appears at 0,0 due to an array, I want it to only appear when mouse is pressed.](https://discourse.processing.org/t/ellipse-appears-at-0-0-due-to-an-array-i-want-it-to-only-appear-when-mouse-is-pressed/15198)

<div class="topic-metadata">

**Author:** [@jackattack991](https://discourse.processing.org/u/jackattack991)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 4:23pm UTC](https://discourse.processing.org/t/ellipse-appears-at-0-0-due-to-an-array-i-want-it-to-only-appear-when-mouse-is-pressed/15198 "2019-11-03T16:23:24Z")

</div>

final int N\_PARTITIONS = 10; int Diameter = 10; int length = 101; // max number of nodes float \[\] Node1 = new float \[10\]; float \[\] Node2 = new float \[10\]; void setup() { background(255); size(600,360); } void draw() …

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

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