# Latest

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

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

**Page:** 504

---

## [Series of latitude and longitude points to a 2D polygon](https://discourse.processing.org/t/series-of-latitude-and-longitude-points-to-a-2d-polygon/9900)

<div class="topic-metadata">

**Author:** [@kkisin](https://discourse.processing.org/u/kkisin)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 8:24pm UTC](https://discourse.processing.org/t/series-of-latitude-and-longitude-points-to-a-2d-polygon/9900 "2019-04-07T20:24:39Z")

</div>

Hello! I’m trying to convert a series of latitude and longitude points to show up as a polygon at scale in p5.js for example starting with the following series of lat/lon points 44.964782, -93.276922 44.964125, -93.26…

---

## [\[Need Opinion\]Comb Sort Visualization 👀](https://discourse.processing.org/t/need-opinion-comb-sort-visualization/10017)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 1\
**Last updated:** [April 7, 2019, 6:41pm UTC](https://discourse.processing.org/t/need-opinion-comb-sort-visualization/10017 "2019-04-07T18:41:40Z")

</div>

width = 1000 height = width / 2 l = 10 num = width / l h = \[\] gap = int(num \* 0.7) count = 0 def setup(): size(width,height) for i in range(num): h.append(map(i,0,num,0,height)) shuffl() def dr…

---

## [Process text as shapes?](https://discourse.processing.org/t/process-text-as-shapes/10006)

<div class="topic-metadata">

**Author:** [@Daniela.gutierrezr](https://discourse.processing.org/u/Daniela.gutierrezr)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 6:26pm UTC](https://discourse.processing.org/t/process-text-as-shapes/10006 "2019-04-07T18:26:30Z")

</div>

Hi guys, Is there a way to code a program that proceses text and displays them as specific shapes in processing? An example of this is the work of Leslie Roberts https://leslierobertsart.com/section/425019-Recent-work…

---

## [Open Call – 2nd Choreographic Coding Lab Mainz – 2019](https://discourse.processing.org/t/open-call-2nd-choreographic-coding-lab-mainz-2019/9802)

<div class="topic-metadata">

**Author:** [@fjenett](https://discourse.processing.org/u/fjenett)\
**Replies:** 0\
**Last updated:** [March 30, 2019, 9:48pm UTC](https://discourse.processing.org/t/open-call-2nd-choreographic-coding-lab-mainz-2019/9802 "2019-03-30T21:48:57Z")

</div>

Hey Processing community, we have a call open for another Choreographic Coding Lab in Mainz. This one will be very special as we are offering a full motion capture recording of a dance piece of 60 minutes. The lab will …

---

## [Processing stereo volume control using sound library](https://discourse.processing.org/t/processing-stereo-volume-control-using-sound-library/9950)

<div class="topic-metadata">

**Author:** [@sujoymisc](https://discourse.processing.org/u/sujoymisc)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 4:19pm UTC](https://discourse.processing.org/t/processing-stereo-volume-control-using-sound-library/9950 "2019-04-07T16:19:51Z")

</div>

I want to control PC stereo volume control, the following code is doing the same but both the channels are taking the save volume gain. Q: How do I change the volume of individual channels? Processing Code: import pro…

---

## [Connect 4 for 2 players](https://discourse.processing.org/t/connect-4-for-2-players/9916)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 6\
**Last updated:** [April 7, 2019, 3:24pm UTC](https://discourse.processing.org/t/connect-4-for-2-players/9916 "2019-04-07T15:24:00Z")

</div>

Connect 4 game for 2 players: www.gamespace.eu5.org/connect4

---

## [How mask SVG in Processing](https://discourse.processing.org/t/how-mask-svg-in-processing/9888)

<div class="topic-metadata">

**Author:** [@Misha](https://discourse.processing.org/u/Misha)\
**Replies:** 3\
**Last updated:** [April 7, 2019, 3:17pm UTC](https://discourse.processing.org/t/how-mask-svg-in-processing/9888 "2019-04-07T15:17:03Z")

</div>

Hi! I’m trying to make a SVG cutter. The goal is to upload SVG, cut it to specific shape and export back. Logic is → upload SVG → convert it → cut it → export it. I’m stuck. I upload SVG, rebuild it with vectors in Pr…

---

## [Applying envelope functions to a soundfile](https://discourse.processing.org/t/applying-envelope-functions-to-a-soundfile/10047)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 1\
**Last updated:** [April 7, 2019, 1:08pm UTC](https://discourse.processing.org/t/applying-envelope-functions-to-a-soundfile/10047 "2019-04-07T13:08:13Z")

</div>

due to my understanding of p5js.org examples, applying envelope is just acceptable to an oscillator or a wave which has been made by p5js synthesizer itself, is it any possibility to apply an envelope function to a sound…

---

## [Pass a non-final like a final arg?](https://discourse.processing.org/t/pass-a-non-final-like-a-final-arg/10029)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 6\
**Last updated:** [April 7, 2019, 10:08am UTC](https://discourse.processing.org/t/pass-a-non-final-like-a-final-arg/10029 "2019-04-07T10:08:41Z")

</div>

I try to build a menu where some item can be change during the session or with data from outside unknow before the coding session. So I try to pass a non-final data but that’s don’t work obviously. I try to find a way t…

---

## [Math Library for p5 js](https://discourse.processing.org/t/math-library-for-p5-js/10037)

<div class="topic-metadata">

**Author:** [@bhaskar](https://discourse.processing.org/u/bhaskar)\
**Replies:** 3\
**Last updated:** [April 7, 2019, 9:03am UTC](https://discourse.processing.org/t/math-library-for-p5-js/10037 "2019-04-07T09:03:37Z")

</div>

Hi everyone, I am trying to create a maths library for p5.js here is the repository link. Please watch and give some comments and suggestions as it will be a great help for development. I appreciate all for you comment…

---

## [\[Project ended\] game problem moving character with mouse, ball going through the character](https://discourse.processing.org/t/project-ended-game-problem-moving-character-with-mouse-ball-going-through-the-character/9808)

<div class="topic-metadata">

**Author:** [@anon26872549](https://discourse.processing.org/u/anon26872549)\
**Replies:** 16\
**Last updated:** [April 7, 2019, 8:52am UTC](https://discourse.processing.org/t/project-ended-game-problem-moving-character-with-mouse-ball-going-through-the-character/9808 "2019-04-07T08:52:24Z")

</div>

//A problem with the character movement as it relied with the mouse. Also trouble with the ball script of which my character meant to bounce back up, as the ball went through the character. float circleX=1; float circle…

---

## [ArrayIndexOutOfBoundsException on FFT analyze when bands above 2^14](https://discourse.processing.org/t/arrayindexoutofboundsexception-on-fft-analyze-when-bands-above-2-14/9980)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 10\
**Last updated:** [April 7, 2019, 7:00am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-on-fft-analyze-when-bands-above-2-14/9980 "2019-04-07T07:00:44Z")

</div>

So I know that the amount of bands you assign to an FFT needs to be a power of 2, but when I go over 2^14 (16384) to 2^15 (32768) bands, I get the fft.analyze(spectrum) code highlighted and the error code - ArrayIndexOut…

---

## [Can I acquire the largest FFT magnitude value without playing through the whole file?](https://discourse.processing.org/t/can-i-acquire-the-largest-fft-magnitude-value-without-playing-through-the-whole-file/9939)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 2\
**Last updated:** [April 7, 2019, 5:16am UTC](https://discourse.processing.org/t/can-i-acquire-the-largest-fft-magnitude-value-without-playing-through-the-whole-file/9939 "2019-04-07T05:16:16Z")

</div>

Trying to figure out how to convert the FFT units to an Amp value in processing proved to be very confusing and complex, but when I play through the whole file, I can find the maximum FFT output and just use that to calc…

---

## [Experimental 3D game engine (Chevy Chase simulator)](https://discourse.processing.org/t/experimental-3d-game-engine-chevy-chase-simulator/10038)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 0\
**Last updated:** [April 6, 2019, 9:05pm UTC](https://discourse.processing.org/t/experimental-3d-game-engine-chevy-chase-simulator/10038 "2019-04-06T21:05:17Z")

</div>

Hello forum! A while ago I posted a super simple 3D game engine that handled collision events with a player and a terrain. I have since revamped the code and added textures, assets, models, basic animations, super basic…

---

## [Centre sketch on specific X and Y co-ordinates](https://discourse.processing.org/t/centre-sketch-on-specific-x-and-y-co-ordinates/9977)

<div class="topic-metadata">

**Author:** [@echo\_bravo](https://discourse.processing.org/u/echo_bravo)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 7:26pm UTC](https://discourse.processing.org/t/centre-sketch-on-specific-x-and-y-co-ordinates/9977 "2019-04-06T19:26:02Z")

</div>

Hi, This is my first forum post/request so please forgive me if I miss any of the etiquette. I have used various various previous version of Java processing but am new to p5.js. What I am struggling with is how to cent…

---

## [Unwanted beeping sounds with Vertex functions](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985)

<div class="topic-metadata">

**Author:** [@JusaStronomer](https://discourse.processing.org/u/JusaStronomer)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 7:08pm UTC](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985 "2019-04-06T19:08:57Z")

</div>

While using the beginShape(), endShape() and vertex() functions, I noticed some undesired beeping sounds (followed by low pitch “drumming” sounds). I tried searching for discussions over this topic, but couldn’t find it …

---

## [GSoC 2019 - p5.xr](https://discourse.processing.org/t/gsoc-2019-p5-xr/9640)

<div class="topic-metadata">

**Author:** [@vedhant](https://discourse.processing.org/u/vedhant)\
**Replies:** 14\
**Last updated:** [April 6, 2019, 6:30pm UTC](https://discourse.processing.org/t/gsoc-2019-p5-xr/9640 "2019-04-06T18:30:58Z")

</div>

Hey, I am considering to contribute to the project Stabilizing and improving p5.xr during Alpha release as part of GSoC 2019. I want to know whether the development of the library p5.xr has been started. If so, where ca…

---

## [GSOC 2019: Idea Selection(p5.js-web-editor)](https://discourse.processing.org/t/gsoc-2019-idea-selection-p5-js-web-editor/9183)

<div class="topic-metadata">

**Author:** [@nimishagarwal76](https://discourse.processing.org/u/nimishagarwal76)\
**Replies:** 5\
**Last updated:** [April 6, 2019, 5:28pm UTC](https://discourse.processing.org/t/gsoc-2019-idea-selection-p5-js-web-editor/9183 "2019-04-06T17:28:19Z")

</div>

Hi everyone, I am Nimish Agrawal, a computer science sophomore from NIT Trichy. I would love to work with The Processing Foundation in this year’s GSOC. I would like to work towards development of p5.js web editor. I h…

---

## [\[Eclipse\] Could not find or load main class at home, but works flawlessly elsewhere](https://discourse.processing.org/t/eclipse-could-not-find-or-load-main-class-at-home-but-works-flawlessly-elsewhere/9909)

<div class="topic-metadata">

**Author:** [@TechEpic](https://discourse.processing.org/u/TechEpic)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 5:24pm UTC](https://discourse.processing.org/t/eclipse-could-not-find-or-load-main-class-at-home-but-works-flawlessly-elsewhere/9909 "2019-04-06T17:24:20Z")

</div>

I’m using Eclipse with the Processing library, I made the project on a different computer and tried to move it to my home computer. When I try to run it, I get the error: Error: Could not find or load main class Contro…

---

## [Subscribe - pvm](https://discourse.processing.org/t/subscribe-pvm/9964)

<div class="topic-metadata">

**Author:** [@Solsticio](https://discourse.processing.org/u/Solsticio)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 5:19pm UTC](https://discourse.processing.org/t/subscribe-pvm/9964 "2019-04-06T17:19:40Z")

</div>

2- void setup(){ size(400,400); frameRate(20); } void draw(){ int i; for(i=0;i\<height;i++){ if(random(0,1)\<0.5) stroke(0); else stroke(255); line(0,i,width,i); } } 3- void desenhaIFSP(float x, f…

---

## [Console-based Input -- Counter Implementation](https://discourse.processing.org/t/console-based-input-counter-implementation/9948)

<div class="topic-metadata">

**Author:** [@clevelandbrowns](https://discourse.processing.org/u/clevelandbrowns)\
**Replies:** 4\
**Last updated:** [April 4, 2019, 12:46pm UTC](https://discourse.processing.org/t/console-based-input-counter-implementation/9948 "2019-04-04T12:46:09Z")

</div>

I’m attempting to write a program in which the user must input three variables. The first is a string which simply stores a name. The second is a string which gets converted to an integer using parseInt. The third is a s…

---

## [Zoom in a specific letter](https://discourse.processing.org/t/zoom-in-a-specific-letter/9835)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 7\
**Last updated:** [April 6, 2019, 4:09pm UTC](https://discourse.processing.org/t/zoom-in-a-specific-letter/9835 "2019-04-06T16:09:48Z")

</div>

Hi Guys I want in the following code to zoom in a specific letter “3” and after to return back. Can I do it? int w; PFont myFont; float x = 70; float y = 6; float theta = 0.0; float amplitude = 1000.0; float period =…

---

## [Ä and RIGHT share the same keyCode. Is that a bug?](https://discourse.processing.org/t/a-and-right-share-the-same-keycode-is-that-a-bug/9926)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 5\
**Last updated:** [April 6, 2019, 9:58am UTC](https://discourse.processing.org/t/a-and-right-share-the-same-keycode-is-that-a-bug/9926 "2019-04-06T09:58:58Z")

</div>

Hi! So I am currently working on a programm with an Excel-table based structure, and I am using Tab, the mouse and the arrow keys for moving. There was this one problem that wasn’t that big of a deal, but always annoyed…

---

## [For loop not working](https://discourse.processing.org/t/for-loop-not-working/9935)

<div class="topic-metadata">

**Author:** [@Im\_not\_a\_robot](https://discourse.processing.org/u/Im_not_a_robot)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 9:36am UTC](https://discourse.processing.org/t/for-loop-not-working/9935 "2019-04-06T09:36:07Z")

</div>

Hi! So I have been working on a project that requires me to use a 2D array. I have been trying to loop over this with the for loop, but it doesn’t seem to be working. Here’s my code. //World Variables int seed; // The s…

---

## [Creating Snake Code](https://discourse.processing.org/t/creating-snake-code/9947)

<div class="topic-metadata">

**Author:** [@02chaines](https://discourse.processing.org/u/02chaines)\
**Replies:** 5\
**Last updated:** [April 6, 2019, 9:03am UTC](https://discourse.processing.org/t/creating-snake-code/9947 "2019-04-06T09:03:58Z")

</div>

Hi, I’m new when it comes to processing so I’ve been having quite a hard time with coming up with codes and making them work properly. I’m trying to create a snake(similar to the snake game except there’s no food, scorin…

---

## [Make Thing Glowing!](https://discourse.processing.org/t/make-thing-glowing/9927)

<div class="topic-metadata">

**Author:** [@humayung](https://discourse.processing.org/u/humayung)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 7:41am UTC](https://discourse.processing.org/t/make-thing-glowing/9927 "2019-04-06T07:41:01Z")

</div>

To glow thing, you can do various ways. this time, i will show you how to glow thing by manipulating Pixels and using Texture (PImage). Using loadPixels and updatePixels (Slow but best) by calculating distance between…

---

## [\[queasycam\] controlling functions with CP5](https://discourse.processing.org/t/queasycam-controlling-functions-with-cp5/9944)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 2:23am UTC](https://discourse.processing.org/t/queasycam-controlling-functions-with-cp5/9944 "2019-04-06T02:23:39Z")

</div>

Hi, I wanna know if there’s a way to numerically control queasycam features, like position, pan and tilt. what i really need is to have a virtual camera on a 3D environment, controlled by cp5 sliders instead of the mou…

---

## [Help with text file to single letters needed](https://discourse.processing.org/t/help-with-text-file-to-single-letters-needed/9996)

<div class="topic-metadata">

**Author:** [@tobor](https://discourse.processing.org/u/tobor)\
**Replies:** 7\
**Last updated:** [April 6, 2019, 12:28am UTC](https://discourse.processing.org/t/help-with-text-file-to-single-letters-needed/9996 "2019-04-06T00:28:59Z")

</div>

Hi, I need some help from experienced users… I have 3 txt files: test1.txt, test2.txt and test3.txt every txt file is made of 200 random letters with no spaces like: AAIOEELLEEIIAAOOWECERT etc… I need to chose rando…

---

## [Switch Between Multiple p5.js Sketches in Single Webpage](https://discourse.processing.org/t/switch-between-multiple-p5-js-sketches-in-single-webpage/9981)

<div class="topic-metadata">

**Author:** [@CalebMarcoux](https://discourse.processing.org/u/CalebMarcoux)\
**Replies:** 4\
**Last updated:** [April 6, 2019, 12:23am UTC](https://discourse.processing.org/t/switch-between-multiple-p5-js-sketches-in-single-webpage/9981 "2019-04-06T00:23:52Z")

</div>

TLDR: Is it better to have lots of instances of p5.js or keep switching the code in the global mode? Is there a way to treat a JS file as a single instance of p5.js without modifying the code inside the file? I have sev…

---

## [Notes in Tables](https://discourse.processing.org/t/notes-in-tables/9712)

<div class="topic-metadata">

**Author:** [@poppanona](https://discourse.processing.org/u/poppanona)\
**Replies:** 14\
**Last updated:** [April 5, 2019, 11:58pm UTC](https://discourse.processing.org/t/notes-in-tables/9712 "2019-04-05T23:58:41Z")

</div>

I am looking for the best way to format a table that contains general notes on the data as well as the data itself. for example, the data could have typical column headers and each row would have corresponding entries. H…

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

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