# Latest

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

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

**Page:** 367

---

## [Problem with a boolean in a frogger type project](https://discourse.processing.org/t/problem-with-a-boolean-in-a-frogger-type-project/19704)

<div class="topic-metadata">

**Author:** [@alexWin](https://discourse.processing.org/u/alexWin)\
**Replies:** 6\
**Last updated:** [April 13, 2020, 4:09pm UTC](https://discourse.processing.org/t/problem-with-a-boolean-in-a-frogger-type-project/19704 "2020-04-13T16:09:14Z")

</div>

Hello there, There is Boolean in the Road class (Boolean ok) and I cant figure out what is going on with it. It always set to false and after a few hours of trying to solve it ,I can’t figure out why. I think it might…

---

## [How can i get a line to move in a curve to a specific region on the canvas?](https://discourse.processing.org/t/how-can-i-get-a-line-to-move-in-a-curve-to-a-specific-region-on-the-canvas/19656)

<div class="topic-metadata">

**Author:** [@yasinyer](https://discourse.processing.org/u/yasinyer)\
**Replies:** 3\
**Last updated:** [April 13, 2020, 1:04pm UTC](https://discourse.processing.org/t/how-can-i-get-a-line-to-move-in-a-curve-to-a-specific-region-on-the-canvas/19656 "2020-04-13T13:04:29Z")

</div>

Hi guys! I’m a newbie in programming and could really use the help of you experts for my bachelor project. What I already have is a line that moves in a curve when turning, based on the arrowkeys. This line is only abl…

---

## [Println the smallest number in the arrays](https://discourse.processing.org/t/println-the-smallest-number-in-the-arrays/19694)

<div class="topic-metadata">

**Author:** [@gurki](https://discourse.processing.org/u/gurki)\
**Replies:** 16\
**Last updated:** [April 13, 2020, 10:39am UTC](https://discourse.processing.org/t/println-the-smallest-number-in-the-arrays/19694 "2020-04-13T10:39:22Z")

</div>

Hello Everyone, I have a problem with this task. The Questin is in german: Schreiben Sie eine FunkQon minAlle(), die zwei Arrays bekommt und die kleinste Zahl aus beiden Arrays zurückgibt. Testen Sie Ihre FunkQon mit …

---

## [Send & Receive data on the same serial port without causing the Arduino program to bug](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 9:55am UTC](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723 "2020-04-13T09:55:03Z")

</div>

Hello gentlemen and ladies, It’s more an Arduino question than an Processing one, but it’s a short question :wink: I send data with the serial port from Processing to Arduino and it works very well, I can control 5 st…

---

## [Time based media Question](https://discourse.processing.org/t/time-based-media-question/19731)

<div class="topic-metadata">

**Author:** [@firetryer](https://discourse.processing.org/u/firetryer)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 8:23am UTC](https://discourse.processing.org/t/time-based-media-question/19731 "2020-04-13T08:23:06Z")

</div>

I was wondering how to make a code corresponding to sound. I don’t know how to start

---

## [Get all markers visible at current zoom level (unfolding)](https://discourse.processing.org/t/get-all-markers-visible-at-current-zoom-level-unfolding/18326)

<div class="topic-metadata">

**Author:** [@wcneill](https://discourse.processing.org/u/wcneill)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 6:53am UTC](https://discourse.processing.org/t/get-all-markers-visible-at-current-zoom-level-unfolding/18326 "2020-04-13T06:53:07Z")

</div>

I have a very large set of features that outline city borders. Trying to convert them all to markers and load all onto a map at once seems to be bogging down my app. What I’d like to do instead is only show these city b…

---

## [Buttons on my canvas move as I resize or maximize the browser window. How do I stop this?](https://discourse.processing.org/t/buttons-on-my-canvas-move-as-i-resize-or-maximize-the-browser-window-how-do-i-stop-this/19687)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 5\
**Last updated:** [April 12, 2020, 8:54pm UTC](https://discourse.processing.org/t/buttons-on-my-canvas-move-as-i-resize-or-maximize-the-browser-window-how-do-i-stop-this/19687 "2020-04-12T20:54:52Z")

</div>

The buttons that I’ve added to my sketch are not really positioned on my canvas. I think they’re actually floating. I need them to be in fixed spots on my canvas. How do I accomplish this? I think my centerCanvas() func…

---

## [LOW-HIGH tresholds](https://discourse.processing.org/t/low-high-tresholds/10596)

<div class="topic-metadata">

**Author:** [@rand\_colors](https://discourse.processing.org/u/rand_colors)\
**Replies:** 5\
**Last updated:** [April 30, 2019, 2:34pm UTC](https://discourse.processing.org/t/low-high-tresholds/10596 "2019-04-30T14:34:05Z")

</div>

Hi, I’m trying to make a two thresholds color analisis in a Pimage file. But I can’t understand what I wrote wrong or If I made a conceptual mistake. I’m a bit lost now. for(int i =0; i\<imgOrigin.pixels.length; i++…

---

## [The class Object](https://discourse.processing.org/t/the-class-object/19693)

<div class="topic-metadata">

**Author:** [@Baz](https://discourse.processing.org/u/Baz)\
**Replies:** 10\
**Last updated:** [April 12, 2020, 5:19pm UTC](https://discourse.processing.org/t/the-class-object/19693 "2020-04-12T17:19:07Z")

</div>

I’m trying to write a simple 2D physics simulator. In it, I have 3 classes : One for box, one for circle, and one called manifold which serve for collision detection. Long story short, the manifold class need to have 2 …

---

## [Alternate sort on a bidimensional array](https://discourse.processing.org/t/alternate-sort-on-a-bidimensional-array/19698)

<div class="topic-metadata">

**Author:** [@Quorum](https://discourse.processing.org/u/Quorum)\
**Replies:** 1\
**Last updated:** [April 12, 2020, 2:56pm UTC](https://discourse.processing.org/t/alternate-sort-on-a-bidimensional-array/19698 "2020-04-12T14:56:40Z")

</div>

Hi there :slight\_smile: I’m an absolute beginner in processing and I’ve not found on the references this answer. Can I apply an alternate sort to a bidimensional array? As 0, 1, 0, 1… There is a standard function for …

---

## [Repetitive code](https://discourse.processing.org/t/repetitive-code/19659)

<div class="topic-metadata">

**Author:** [@Quorum](https://discourse.processing.org/u/Quorum)\
**Replies:** 4\
**Last updated:** [April 12, 2020, 2:32pm UTC](https://discourse.processing.org/t/repetitive-code/19659 "2020-04-12T14:32:34Z")

</div>

Good morning everyone, I just started using processing. I’m drawing a sketch where I’m going to create 30 little balls. There’s a way to make them appear in sequence without writing 30 times the same line with the ell…

---

## [Write a two-dimensional array (matrix) to text files?](https://discourse.processing.org/t/write-a-two-dimensional-array-matrix-to-text-files/19674)

<div class="topic-metadata">

**Author:** [@ardano](https://discourse.processing.org/u/ardano)\
**Replies:** 3\
**Last updated:** [April 12, 2020, 2:30pm UTC](https://discourse.processing.org/t/write-a-two-dimensional-array-matrix-to-text-files/19674 "2020-04-12T14:30:13Z")

</div>

Hi everyone! I am an absolute beginner in Processing. I’m trying to figuring how to write a 12x12 two-dimensional array of integers to a .txt file but I don’t have any idea… Can someone please suggest me how? The ful…

---

## [Science simulations in p5](https://discourse.processing.org/t/science-simulations-in-p5/19665)

<div class="topic-metadata">

**Author:** [@gbenedisgrab](https://discourse.processing.org/u/gbenedisgrab)\
**Replies:** 6\
**Last updated:** [April 12, 2020, 12:27pm UTC](https://discourse.processing.org/t/science-simulations-in-p5/19665 "2020-04-12T12:27:10Z")

</div>

I just made a meiosis simulation. Any feedback for me? I want to expand my work on Creative Coding and STEAM using p5.js. Who should I talk to? What advice do you have? https://editor.p5js.org/gbenedisgrab/sketches/Va20…

---

## [TextureSphere with Text](https://discourse.processing.org/t/texturesphere-with-text/19543)

<div class="topic-metadata">

**Author:** [@paturn](https://discourse.processing.org/u/paturn)\
**Replies:** 18\
**Last updated:** [April 12, 2020, 11:04am UTC](https://discourse.processing.org/t/texturesphere-with-text/19543 "2020-04-12T11:04:51Z")

</div>

I am using Gillian Ramsay’s version of textureSphere and I would like to add text to interact with the operation of the program. However, when the sphere is rotated or translated, it also rotates or translates the text …

---

## [How can I have Perlin Noise take shape from an image?](https://discourse.processing.org/t/how-can-i-have-perlin-noise-take-shape-from-an-image/19663)

<div class="topic-metadata">

**Author:** [@BogginJunior](https://discourse.processing.org/u/BogginJunior)\
**Replies:** 4\
**Last updated:** [April 12, 2020, 3:12am UTC](https://discourse.processing.org/t/how-can-i-have-perlin-noise-take-shape-from-an-image/19663 "2020-04-12T03:12:23Z")

</div>

Hi everyone! I hope you are all well, considering the circumstances. I am a Graphic Designer and have just begun exploring Generative Art and Processing. I’ve watched tutorials about Perlin Noise, which is beautiful on…

---

## [loadSound for a user uploaded file](https://discourse.processing.org/t/loadsound-for-a-user-uploaded-file/19407)

<div class="topic-metadata">

**Author:** [@Trumpet63](https://discourse.processing.org/u/Trumpet63)\
**Replies:** 2\
**Last updated:** [April 12, 2020, 1:43am UTC](https://discourse.processing.org/t/loadsound-for-a-user-uploaded-file/19407 "2020-04-12T01:43:01Z")

</div>

I’m building a rhythm game in TypeScript, and I need to let the user upload a sound file, load it, and then play it on demand. I know this is possible in vanilla JS, but I want to do it “the P5 way” so my code is cleaner…

---

## [How much memory does a p5.Vector variable take up compared to an integer variable?](https://discourse.processing.org/t/how-much-memory-does-a-p5-vector-variable-take-up-compared-to-an-integer-variable/19681)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 1\
**Last updated:** [April 12, 2020, 12:42am UTC](https://discourse.processing.org/t/how-much-memory-does-a-p5-vector-variable-take-up-compared-to-an-integer-variable/19681 "2020-04-12T00:42:19Z")

</div>

I’m writing something that involves image manipulation. I decided to use an array of p5.Vectors because I could store the x and y coordinates of pixels more easily. I could just as easily create 2 integer arrays (coordin…

---

## [Archive for Processing](https://discourse.processing.org/t/archive-for-processing/19118)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 2\
**Last updated:** [April 11, 2020, 11:15pm UTC](https://discourse.processing.org/t/archive-for-processing/19118 "2020-04-11T23:15:53Z")

</div>

Archive for Processing is an (unofficial) archive of resources for the Processing community. It collects software related to Processing, p5.js, Python mode / Processing.py, p5py, pyp5js, R Mode / Processing.R, and ot…

---

## [Unable to position my object at a specific location](https://discourse.processing.org/t/unable-to-position-my-object-at-a-specific-location/19646)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 2\
**Last updated:** [April 11, 2020, 11:02pm UTC](https://discourse.processing.org/t/unable-to-position-my-object-at-a-specific-location/19646 "2020-04-11T23:02:56Z")

</div>

I’ve created an object myCanvas but I’m unable to position it on the main canvas. I think it just gets added to 0,0. I would like to put it at a specific location on the canvas that’s created in setup(). So maybe at 100,…

---

## [Can you make a graph go in a spiral? (instead of horizontal)](https://discourse.processing.org/t/can-you-make-a-graph-go-in-a-spiral-instead-of-horizontal/19670)

<div class="topic-metadata">

**Author:** [@allyn](https://discourse.processing.org/u/allyn)\
**Replies:** 2\
**Last updated:** [April 11, 2020, 10:02pm UTC](https://discourse.processing.org/t/can-you-make-a-graph-go-in-a-spiral-instead-of-horizontal/19670 "2020-04-11T22:02:24Z")

</div>

I’ve got a graph mapping the amplitude of a song (titled AYNIL.mp3 in the code) but I want it to travel in a spiral starting from the center rather than along the canvas width. (so it creates this weird spiral made of am…

---

## [Tangent line of curve](https://discourse.processing.org/t/tangent-line-of-curve/19600)

<div class="topic-metadata">

**Author:** [@Martaf2001](https://discourse.processing.org/u/Martaf2001)\
**Replies:** 2\
**Last updated:** [April 11, 2020, 9:57pm UTC](https://discourse.processing.org/t/tangent-line-of-curve/19600 "2020-04-11T21:57:16Z")

</div>

Hi everyone!!! I’m new at coding and I have a problem, I would like to draw a program where there is a bicorn curve and every time the mouse is on the curve, it can be generated a tangent line, so on infinite points, bu…

---

## [Triplets on a p5.phrase #p5.sound](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507)

<div class="topic-metadata">

**Author:** [@alfonsofonso](https://discourse.processing.org/u/alfonsofonso)\
**Replies:** 3\
**Last updated:** [April 11, 2020, 7:00pm UTC](https://discourse.processing.org/t/triplets-on-a-p5-phrase-p5-sound/19507 "2020-04-11T19:00:34Z")

</div>

Hi everyone! I’m trying to do some triplets in a p5.phrase… I’ve tried to nest arrays but nope… any idea? cheers

---

## [How to not display blank fields from a csv file?](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 1\
**Last updated:** [April 11, 2020, 6:20pm UTC](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668 "2020-04-11T18:20:36Z")

</div>

Hello im currently plotting shapes on my 2d image whilst using the coordinates of longitude and latitude. However, i’ve got some blank fields which i do not want to appear on my image and when they are kept blank they st…

---

## [Why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup](https://discourse.processing.org/t/why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup/19585)

<div class="topic-metadata">

**Author:** [@endurance21](https://discourse.processing.org/u/endurance21)\
**Replies:** 4\
**Last updated:** [April 11, 2020, 5:06pm UTC](https://discourse.processing.org/t/why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup/19585 "2020-04-11T17:06:27Z")

</div>

hi! i was setting up PhantomJS for headless browser testing with the existing code , i get following error saying exact output type or paste code hereRunning "connect:server" (connect) task Started connect web serve…

---

## [My setup for live coding with Processing](https://discourse.processing.org/t/my-setup-for-live-coding-with-processing/8072)

<div class="topic-metadata">

**Author:** [@kesson](https://discourse.processing.org/u/kesson)\
**Replies:** 2\
**Last updated:** [April 11, 2020, 4:06pm UTC](https://discourse.processing.org/t/my-setup-for-live-coding-with-processing/8072 "2020-04-11T16:06:28Z")

</div>

Hello, I share here my personal setup for Live Coding visuals with Processing. It is just a Processing rendering window with the code visualized on top of the visuals, and it is almost everything coded from scratch (at l…

---

## [How can I make a regular triangle from a line?](https://discourse.processing.org/t/how-can-i-make-a-regular-triangle-from-a-line/19655)

<div class="topic-metadata">

**Author:** [@Tauter](https://discourse.processing.org/u/Tauter)\
**Replies:** 10\
**Last updated:** [April 11, 2020, 3:17pm UTC](https://discourse.processing.org/t/how-can-i-make-a-regular-triangle-from-a-line/19655 "2020-04-11T15:17:43Z")

</div>

I have to create a regular triangle from a line. i calculated the middle of the line but after this I can’t figure it out. (szR is a line drawing algorithm) What should be the line end ? int x1,x2,y1,y2,xl,yl; void …

---

## [Processing 3 Escaping Regex Characters](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477)

<div class="topic-metadata">

**Author:** [@Conor98](https://discourse.processing.org/u/Conor98)\
**Replies:** 3\
**Last updated:** [April 11, 2020, 3:12pm UTC](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477 "2020-04-11T15:12:10Z")

</div>

I’m currently using the Regex .matches("") command Processing 3 to make an ipv4 address format verifier. I’ve currently got it working with the seperate sets of numbers but my problem is with the ‘.’ symbol. The ‘.’ sy…

---

## [I have a rectangle which is bouncing on the screen. I want it to occur in 8 steps instead of being continuous](https://discourse.processing.org/t/i-have-a-rectangle-which-is-bouncing-on-the-screen-i-want-it-to-occur-in-8-steps-instead-of-being-continuous/19626)

<div class="topic-metadata">

**Author:** [@bellievr](https://discourse.processing.org/u/bellievr)\
**Replies:** 16\
**Last updated:** [April 11, 2020, 12:18pm UTC](https://discourse.processing.org/t/i-have-a-rectangle-which-is-bouncing-on-the-screen-i-want-it-to-occur-in-8-steps-instead-of-being-continuous/19626 "2020-04-11T12:18:09Z")

</div>

Please help me with this question!!!

---

## [Massive latency when doing FFT with Minim on live audio from mixer](https://discourse.processing.org/t/massive-latency-when-doing-fft-with-minim-on-live-audio-from-mixer/6513)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 13\
**Last updated:** [April 11, 2020, 9:38am UTC](https://discourse.processing.org/t/massive-latency-when-doing-fft-with-minim-on-live-audio-from-mixer/6513 "2020-04-11T09:38:46Z")

</div>

I wanted to share a program here, but I’m having trouble making it behave well. The idea is to visualize (FFT) whatever music you are playing on your system, so you don’t need to load a track into Processing, but assume…

---

## [How do I save an image that has been shrunk using the image function?](https://discourse.processing.org/t/how-do-i-save-an-image-that-has-been-shrunk-using-the-image-function/19651)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 1\
**Last updated:** [April 11, 2020, 4:49am UTC](https://discourse.processing.org/t/how-do-i-save-an-image-that-has-been-shrunk-using-the-image-function/19651 "2020-04-11T04:49:50Z")

</div>

I’m using image(photo1, xpos, ypos, newWidth, newHeight) to shrink a large image. My question is, how do I save that new shrunken image into a variable so that I can manipulate it further? I want to be able to modify th…

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

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