# Latest

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

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

**Page:** 361

---

## [Rotating arcs based on probability are not all appearing in sketch](https://discourse.processing.org/t/rotating-arcs-based-on-probability-are-not-all-appearing-in-sketch/20147)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 5\
**Last updated:** [April 27, 2020, 1:44am UTC](https://discourse.processing.org/t/rotating-arcs-based-on-probability-are-not-all-appearing-in-sketch/20147 "2020-04-27T01:44:27Z")

</div>

Using probability I am trying to rotate arc object motifs in a 1D grid. I feel like I’ve tried every placement possibility of push&popMatrix (in class and main program) so that each arc rotates individually according to…

---

## [How to write files](https://discourse.processing.org/t/how-to-write-files/20155)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 5\
**Last updated:** [April 27, 2020, 12:31am UTC](https://discourse.processing.org/t/how-to-write-files/20155 "2020-04-27T00:31:21Z")

</div>

So I have this code: import java.io.FileWriter; FileWriter writeFile = new FileWriter("file.txt"); void setup() { noLoop(); } void draw() { writeFile.write("Hello World!"); writeFile.close(); } But the en…

---

## [My program getting slower when I write datas on Serial Port](https://discourse.processing.org/t/my-program-getting-slower-when-i-write-datas-on-serial-port/19828)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 6\
**Last updated:** [April 17, 2020, 9:52pm UTC](https://discourse.processing.org/t/my-program-getting-slower-when-i-write-datas-on-serial-port/19828 "2020-04-17T21:52:10Z")

</div>

Hello, I think there is a problem with my Processing program to write datas to the Serial Port. Or there is a problem with my Arduino code to read datas from the serial Port. I give you both program. Thank you. import…

---

## [Draw pictures by y positions](https://discourse.processing.org/t/draw-pictures-by-y-positions/19916)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 4\
**Last updated:** [April 26, 2020, 2:25pm UTC](https://discourse.processing.org/t/draw-pictures-by-y-positions/19916 "2020-04-26T14:25:57Z")

</div>

Hello. The situation needs help. I (for the game) need the characters to be drawn gradually (as if the game understands which character is closer to the camera and which is not). And at the same time, that there were …

---

## [Sequenced animation with state](https://discourse.processing.org/t/sequenced-animation-with-state/20140)

<div class="topic-metadata">

**Author:** [@alexalex25](https://discourse.processing.org/u/alexalex25)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 1:48pm UTC](https://discourse.processing.org/t/sequenced-animation-with-state/20140 "2020-04-26T13:48:52Z")

</div>

Hi, I’m trying to do a simple animation in sequence: at start of sketch : a square moves to the right 100px. after it finishes that step, it waits 2 seconds after it finishes that step it goes down for 100px. after tha…

---

## [Clicking on and moving rotated shapes](https://discourse.processing.org/t/clicking-on-and-moving-rotated-shapes/20177)

<div class="topic-metadata">

**Author:** [@dansdnadesigns](https://discourse.processing.org/u/dansdnadesigns)\
**Replies:** 0\
**Last updated:** [April 26, 2020, 1:40pm UTC](https://discourse.processing.org/t/clicking-on-and-moving-rotated-shapes/20177 "2020-04-26T13:40:00Z")

</div>

Hello. I have made the following sketch which draws rod shapes using a class at random angles on the canvas. I want the rods to change color when the mouse is rolled over and when the mouse is pressed inside the rods I w…

---

## [Rotation / sound reactive / stopping drawing](https://discourse.processing.org/t/rotation-sound-reactive-stopping-drawing/20160)

<div class="topic-metadata">

**Author:** [@malindra](https://discourse.processing.org/u/malindra)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 1:03pm UTC](https://discourse.processing.org/t/rotation-sound-reactive-stopping-drawing/20160 "2020-04-26T13:03:37Z")

</div>

i’m totally new to coding and p5 - i’ve been messing creating a visualiser from the intro tutorials and grabbing bits and pieces from different tuts. Basically - is there away to rotate all the ellipses/objects on the…

---

## [Convert .p5 code to a vector format?](https://discourse.processing.org/t/convert-p5-code-to-a-vector-format/20167)

<div class="topic-metadata">

**Author:** [@freddyB](https://discourse.processing.org/u/freddyB)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 12:26pm UTC](https://discourse.processing.org/t/convert-p5-code-to-a-vector-format/20167 "2020-04-26T12:26:45Z")

</div>

Are there any way to convert .p5 code to a vector format (ai, eps, svg)? Dear network. I’ve tried to search for some converter of any kind, that can translate the file or code from my .p5 webeditor sketch to a vectorbas…

---

## [Unable to vizualize a sorted array while implementing mergesort](https://discourse.processing.org/t/unable-to-vizualize-a-sorted-array-while-implementing-mergesort/20122)

<div class="topic-metadata">

**Author:** [@Suraaj](https://discourse.processing.org/u/Suraaj)\
**Replies:** 4\
**Last updated:** [April 26, 2020, 6:50am UTC](https://discourse.processing.org/t/unable-to-vizualize-a-sorted-array-while-implementing-mergesort/20122 "2020-04-26T06:50:50Z")

</div>

I tried to implement a mergesort algorithm but the array isn’t getting sorted for some reason.The expected output is a sorted array of lines displayed on the browser window. Here is my code var values = \[\] function se…

---

## [Processing Forum Guidelines and Advice](https://discourse.processing.org/t/processing-forum-guidelines-and-advice/20150)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 2:32am UTC](https://discourse.processing.org/t/processing-forum-guidelines-and-advice/20150 "2020-04-26T02:32:25Z")

</div>

What does it mean when my question’s subject has been shaded gray?

---

## [World Premier Next Weekend](https://discourse.processing.org/t/world-premier-next-weekend/17353)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 6\
**Last updated:** [April 26, 2020, 12:55am UTC](https://discourse.processing.org/t/world-premier-next-weekend/17353 "2020-04-26T00:55:31Z")

</div>

Some time ago I received a commission from the Boulder Philharmonic and Shreveport Symphony Orchestras to create a piece of visual music to accompany a live performance of a work by composer Cindy McTee entitled Circuits…

---

## [Processing Large Image Sequences, Saving Frames](https://discourse.processing.org/t/processing-large-image-sequences-saving-frames/19938)

<div class="topic-metadata">

**Author:** [@derivativejojomemes](https://discourse.processing.org/u/derivativejojomemes)\
**Replies:** 5\
**Last updated:** [April 25, 2020, 8:27pm UTC](https://discourse.processing.org/t/processing-large-image-sequences-saving-frames/19938 "2020-04-25T20:27:49Z")

</div>

Hi! I am looking for a way to load a large number of images (PNG files extracted from a video, all inside a folder in the .pde file’s directory) in a sequence: Load the first image in the sequence (for example: “abc00…

---

## [Shader framework](https://discourse.processing.org/t/shader-framework/8599)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 5\
**Last updated:** [April 25, 2020, 7:51pm UTC](https://discourse.processing.org/t/shader-framework/8599 "2020-04-25T19:51:36Z")

</div>

Et voilà, after fews weeks of researches about shaders, I compile a little collection of shaders for the background and post-fx. I make a little framework to manage it via a class FX to set and display and mix the shader…

---

## [PVector methods versus mathematical operators?](https://discourse.processing.org/t/pvector-methods-versus-mathematical-operators/20029)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 4\
**Last updated:** [April 25, 2020, 4:13pm UTC](https://discourse.processing.org/t/pvector-methods-versus-mathematical-operators/20029 "2020-04-25T16:13:00Z")

</div>

Looking at the PVector reference entry, it states – “Since vectors represent groupings of values, we cannot simply use traditional addition/multiplication/etc. Instead, we’ll need to do some “vector” math, which is made…

---

## [Array out of range exeption into School project](https://discourse.processing.org/t/array-out-of-range-exeption-into-school-project/20133)

<div class="topic-metadata">

**Author:** [@Jestsect](https://discourse.processing.org/u/Jestsect)\
**Replies:** 6\
**Last updated:** [April 25, 2020, 2:37pm UTC](https://discourse.processing.org/t/array-out-of-range-exeption-into-school-project/20133 "2020-04-25T14:37:11Z")

</div>

Hello, I’m trying to make a Space invader like game for a school project, but I have a problem with collisions: I have an arry wich contain shot’s coordonates and an other which contain ennemis oordonates. Ennemies spaw…

---

## [Ml5 - Feature Extractor Classification using image files (edited)](https://discourse.processing.org/t/ml5-feature-extractor-classification-using-image-files-edited/20067)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 2:01pm UTC](https://discourse.processing.org/t/ml5-feature-extractor-classification-using-image-files-edited/20067 "2020-04-23T14:01:51Z")

</div>

After having viewed Dan Shiffman’s Feature Extractor Classification lesson, I’m attempting to train my model using preloaded jpgs rather than grabbing webcam images, similar to the option offered in Google’s Teachable Ma…

---

## [Free MMO to processing by ME](https://discourse.processing.org/t/free-mmo-to-processing-by-me/19850)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 4\
**Last updated:** [April 25, 2020, 12:32pm UTC](https://discourse.processing.org/t/free-mmo-to-processing-by-me/19850 "2020-04-25T12:32:48Z")

</div>

Hi people! y post this message to share with comunity my new project… y work from 2 years on a basic mmo in HTML5, and now y port this game to processing. I updated a websocket library of processing for more profesional…

---

## [Nested for loop not 'animating'](https://discourse.processing.org/t/nested-for-loop-not-animating/20083)

<div class="topic-metadata">

**Author:** [@timAllan](https://discourse.processing.org/u/timAllan)\
**Replies:** 8\
**Last updated:** [April 25, 2020, 6:45am UTC](https://discourse.processing.org/t/nested-for-loop-not-animating/20083 "2020-04-25T06:45:13Z")

</div>

Hi, I’m having trouble getting some nested for loops to ‘animate’… My code draws an enlarged ‘pixel grid’ by iterating through a 3D array, which contains a number of pixel ‘configurations’, each containing 3 ‘rows’ of …

---

## [Video about p5.js in Portuguese](https://discourse.processing.org/t/video-about-p5-js-in-portuguese/20119)

<div class="topic-metadata">

**Author:** [@rodrigoKulb](https://discourse.processing.org/u/rodrigoKulb)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 3:48am UTC](https://discourse.processing.org/t/video-about-p5-js-in-portuguese/20119 "2020-04-25T03:48:49Z")

</div>

I would like to share in the community a video I recorded on p5.js in Portuguese with subtitles, a quick history of the library and quick examples Tks!

---

## [Want to print serial data continuously in new window processing from arduino](https://discourse.processing.org/t/want-to-print-serial-data-continuously-in-new-window-processing-from-arduino/20123)

<div class="topic-metadata">

**Author:** [@NishantMendhe](https://discourse.processing.org/u/NishantMendhe)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 4:24am UTC](https://discourse.processing.org/t/want-to-print-serial-data-continuously-in-new-window-processing-from-arduino/20123 "2020-04-25T04:24:17Z")

</div>

hello, I m working on GUI controller for UGV rover. i have problem in processing code, i want to print sensors serial data continuously in processing in new window when we click button . Arduino code \<\> ////$GPGSV…

---

## [Better color gradient for custom PShape](https://discourse.processing.org/t/better-color-gradient-for-custom-pshape/19947)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 7\
**Last updated:** [April 25, 2020, 1:56am UTC](https://discourse.processing.org/t/better-color-gradient-for-custom-pshape/19947 "2020-04-25T01:56:55Z")

</div>

Hey forum, I’m having trouble trying to apply a smooth color gradient to a PShape via per vertex shading. Currently I am filling the points based on the angle of each point. As you can see, the gradient appears to confo…

---

## [Help with my Lab](https://discourse.processing.org/t/help-with-my-lab/20111)

<div class="topic-metadata">

**Author:** [@Jonathan25711](https://discourse.processing.org/u/Jonathan25711)\
**Replies:** 4\
**Last updated:** [April 25, 2020, 1:28am UTC](https://discourse.processing.org/t/help-with-my-lab/20111 "2020-04-25T01:28:43Z")

</div>

So I have this code that I’m doing for a lab, thankfully my Comp-Sci teacher gave me some extra time. However, I’m confused about how the code won’t seem to work. It all makes sense to me, so maybe an eye from someone wh…

---

## [Draw a trail of rectangles recursive](https://discourse.processing.org/t/draw-a-trail-of-rectangles-recursive/13149)

<div class="topic-metadata">

**Author:** [@l-arc-en-ciel](https://discourse.processing.org/u/l-arc-en-ciel)\
**Replies:** 6\
**Last updated:** [April 25, 2020, 12:44am UTC](https://discourse.processing.org/t/draw-a-trail-of-rectangles-recursive/13149 "2020-04-25T00:44:14Z")

</div>

I want to draw a trail of rectangles with the latest in the list being in the center of the window. I do this recursively, but I don’t get exactly what I’m doing wrong, since only 2 rectangles are drawn and not 100 (max …

---

## [Keypressed - Loop Video - toggle "SketchBooks" - Script](https://discourse.processing.org/t/keypressed-loop-video-toggle-sketchbooks-script/20002)

<div class="topic-metadata">

**Author:** [@Sampling](https://discourse.processing.org/u/Sampling)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 8:59pm UTC](https://discourse.processing.org/t/keypressed-loop-video-toggle-sketchbooks-script/20002 "2020-04-24T20:59:36Z")

</div>

Hello everyone, Thank you for your attention and your help. I am starting a project with Processing (I am a novice) and I was nevertheless able to compile a script which allows me to assign the 26 letters from my comp…

---

## [Problems using getItem and storeItem - any suggestions](https://discourse.processing.org/t/problems-using-getitem-and-storeitem-any-suggestions/20108)

<div class="topic-metadata">

**Author:** [@RetProf](https://discourse.processing.org/u/RetProf)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 8:54pm UTC](https://discourse.processing.org/t/problems-using-getitem-and-storeitem-any-suggestions/20108 "2020-04-24T20:54:27Z")

</div>

I am attempting to develop a sketch that will collect information and store it for use in subsequent reloads of the sketch. Given the information related to the “storeInfo” and “getInfo” operations I was under the impres…

---

## [Question about handling "onClose" events for windows in G4P library](https://discourse.processing.org/t/question-about-handling-onclose-events-for-windows-in-g4p-library/20100)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 6:30pm UTC](https://discourse.processing.org/t/question-about-handling-onclose-events-for-windows-in-g4p-library/20100 "2020-04-24T18:30:53Z")

</div>

I want to open a child window from the main window, but I also want to prevent multiple instances of the child window from being opened. I was able to do that by calling ‘setEnabled(false)’ on the button when the child w…

---

## [3d Scrolling terrain with music w/ P5js](https://discourse.processing.org/t/3d-scrolling-terrain-with-music-w-p5js/20105)

<div class="topic-metadata">

**Author:** [@moscardo](https://discourse.processing.org/u/moscardo)\
**Replies:** 0\
**Last updated:** [April 24, 2020, 5:41pm UTC](https://discourse.processing.org/t/3d-scrolling-terrain-with-music-w-p5js/20105 "2020-04-24T17:41:25Z")

</div>

Hi guys, I’m a newbie of P5js and I would like to create a scrolling terrain in 3D. Here’s the link to my code repo. I’m using the sound to generate the terrain shape (FFT bins) but I’ve some problems in rendering it. …

---

## [How to add text inside circle or any other shapes in p5.js](https://discourse.processing.org/t/how-to-add-text-inside-circle-or-any-other-shapes-in-p5-js/20092)

<div class="topic-metadata">

**Author:** [@pravandan](https://discourse.processing.org/u/pravandan)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 1:55pm UTC](https://discourse.processing.org/t/how-to-add-text-inside-circle-or-any-other-shapes-in-p5-js/20092 "2020-04-24T13:55:35Z")

</div>

I have the following code and I want to display different text in different circles. How to achieve that ? // Uses P5.js for canvas creation and drawing function setup() { var circles = \[\], circle = {}, ov…

---

## [Run a javascript function from p5.js or read a variable in the DOM](https://discourse.processing.org/t/run-a-javascript-function-from-p5-js-or-read-a-variable-in-the-dom/20090)

<div class="topic-metadata">

**Author:** [@paolon](https://discourse.processing.org/u/paolon)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 1:55pm UTC](https://discourse.processing.org/t/run-a-javascript-function-from-p5-js-or-read-a-variable-in-the-dom/20090 "2020-04-24T13:55:07Z")

</div>

Hi everyone, it’s a pleasure to join this community! I have a problem that I think is quite simple for you but I have been banging my head for days for which I ask for your help. I want to make a kind of universal watch…

---

## [Running video library and i get the error Target VM failed to initialise](https://discourse.processing.org/t/running-video-library-and-i-get-the-error-target-vm-failed-to-initialise/20022)

<div class="topic-metadata">

**Author:** [@laksa](https://discourse.processing.org/u/laksa)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 6:54am UTC](https://discourse.processing.org/t/running-video-library-and-i-get-the-error-target-vm-failed-to-initialise/20022 "2020-04-24T06:54:25Z")

</div>

the error I got is : terminating with uncaught exception of type NSException Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help → Troubleshooting. this erro…

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

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