# Processing

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

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

**Page:** 262

---

## [Launch sketch with vm arguments](https://discourse.processing.org/t/launch-sketch-with-vm-arguments/15206)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 2:05pm UTC](https://discourse.processing.org/t/launch-sketch-with-vm-arguments/15206 "2019-11-06T14:05:57Z")

</div>

Is there any way to launch a sketch with vm arguments?

---

## [Line help beginner completely new](https://discourse.processing.org/t/line-help-beginner-completely-new/15120)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 15\
**Last updated:** [November 6, 2019, 9:05am UTC](https://discourse.processing.org/t/line-help-beginner-completely-new/15120 "2019-11-06T09:05:45Z")

</div>

How to make a line that is at the same position as mouse but is longer than the distance. below

---

## [Draw line and play corresponding sound](https://discourse.processing.org/t/draw-line-and-play-corresponding-sound/15075)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 8:31am UTC](https://discourse.processing.org/t/draw-line-and-play-corresponding-sound/15075 "2019-11-06T08:31:21Z")

</div>

Hi, sorry for the title, didn’t know what to put. My question is mostly theoretical rather than actual code. I made a simple canvas where a user can draw a line (as image below). Now, assuming that vertical axis corre…

---

## [I want something like persistent ripples on the pool, But problems occur!](https://discourse.processing.org/t/i-want-something-like-persistent-ripples-on-the-pool-but-problems-occur/15271)

<div class="topic-metadata">

**Author:** [@CMSwift](https://discourse.processing.org/u/CMSwift)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 3:56am UTC](https://discourse.processing.org/t/i-want-something-like-persistent-ripples-on-the-pool-but-problems-occur/15271 "2019-11-06T03:56:10Z")

</div>

Refering to https://www.openprocessing.org/sketch/775186 I made a little bit changes :slight\_smile: float incX = 0.04; float incY = 0.05; float distance = 12; int wavesHeight = 200; boolean looping = true; float frame …

---

## [Help with drawing edges of 3d shapes against background!](https://discourse.processing.org/t/help-with-drawing-edges-of-3d-shapes-against-background/15264)

<div class="topic-metadata">

**Author:** [@projecty](https://discourse.processing.org/u/projecty)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 12:16am UTC](https://discourse.processing.org/t/help-with-drawing-edges-of-3d-shapes-against-background/15264 "2019-11-06T00:16:08Z")

</div>

PLEASE RESPOND WITH AT LEAST “this is impossible for processing” OR SOMETHING! Hi there! I have been researching this for a while and I can’t be sure if its something to do with shaders or not, but I haven’t been able …

---

## [Looking for guidance on rotating objects](https://discourse.processing.org/t/looking-for-guidance-on-rotating-objects/15247)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 12:12am UTC](https://discourse.processing.org/t/looking-for-guidance-on-rotating-objects/15247 "2019-11-06T00:12:13Z")

</div>

HI, I’m looking for ideas on how to approach this concept. I have a smaller octagon inside of another ocagon. They are connected by lines on each vertex. I want to rotate the outside octagon while keeping the inner, sm…

---

## [Obstacle game in 3d (with 2d obstacles), unable to add more than 1 obstacle](https://discourse.processing.org/t/obstacle-game-in-3d-with-2d-obstacles-unable-to-add-more-than-1-obstacle/15110)

<div class="topic-metadata">

**Author:** [@D.Signer](https://discourse.processing.org/u/D.Signer)\
**Replies:** 10\
**Last updated:** [November 5, 2019, 10:12pm UTC](https://discourse.processing.org/t/obstacle-game-in-3d-with-2d-obstacles-unable-to-add-more-than-1-obstacle/15110 "2019-11-05T22:12:28Z")

</div>

I am trying to make an obstacle game where you are supposedly driving and there are trees you need to avoid (for now those are just rectangles). Since I am pretty new to processing, I tried some stuff out, and it all see…

---

## [Triangle movement | Last thread this week](https://discourse.processing.org/t/triangle-movement-last-thread-this-week/15191)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 8:33pm UTC](https://discourse.processing.org/t/triangle-movement-last-thread-this-week/15191 "2019-11-03T20:33:56Z")

</div>

I Have an ellipse(x, y, 20, 20); and I want it to be a triangle of any parameter, but will still have position x, y so I can move it with my keys. Thank you!!

---

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

---

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

---

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

---

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

---

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

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

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