# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=407

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

**Page:** 408

---

## [Prevent pause during FOR loops?](https://discourse.processing.org/t/prevent-pause-during-for-loops/16735)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [December 31, 2019, 10:13pm UTC](https://discourse.processing.org/t/prevent-pause-during-for-loops/16735 "2019-12-31T22:13:42Z")

</div>

Hello everyone. I am using FOR loops to load CSV datasets from URLs in the draw whenever the end user wants the data loaded. It takes the program about 5 seconds to load/parse/display the data during which time the sket…

---

## [Happy New Year Everyone, And Happy Coding In 2020](https://discourse.processing.org/t/happy-new-year-everyone-and-happy-coding-in-2020/16765)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [December 31, 2019, 10:12pm UTC](https://discourse.processing.org/t/happy-new-year-everyone-and-happy-coding-in-2020/16765 "2019-12-31T22:12:57Z")

</div>

Happy holidays and Happy new year. Thank-you guys for all your support so far, and may you all continue to be creative and have fun coding!!

---

## [Flickering in Exclusion](https://discourse.processing.org/t/flickering-in-exclusion/16760)

<div class="topic-metadata">

**Author:** [@musiciantriescoding](https://discourse.processing.org/u/musiciantriescoding)\
**Replies:** 8\
**Last updated:** [December 31, 2019, 10:01pm UTC](https://discourse.processing.org/t/flickering-in-exclusion/16760 "2019-12-31T22:01:33Z")

</div>

Hi everyone! I’m trying to play with the blend modes in P5, specifically to play around with black and white. When I use the code below, I expected a black line across a white canvas. However, I got the line and the canv…

---

## [How to use WebRTC in Java Processing?](https://discourse.processing.org/t/how-to-use-webrtc-in-java-processing/16757)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 5\
**Last updated:** [December 31, 2019, 6:58pm UTC](https://discourse.processing.org/t/how-to-use-webrtc-in-java-processing/16757 "2019-12-31T18:58:31Z")

</div>

I heard about a internet protocol, which can send data to another computer in real-time, called WebRTC. Also i know, it’s for JavaScript (so probably for p5.js), but i want to use it for Java (normal Processing). Is th…

---

## [Could not run the sketch error](https://discourse.processing.org/t/could-not-run-the-sketch-error/16730)

<div class="topic-metadata">

**Author:** [@TellAJoke](https://discourse.processing.org/u/TellAJoke)\
**Replies:** 4\
**Last updated:** [December 31, 2019, 2:35pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-error/16730 "2019-12-31T14:35:30Z")

</div>

Usage: PApplet \[options\] \[sketch args\] See the Javadoc for PApplet for an explanation. Could not run the sketch (Target VM failed to initialize). Make sure that you haven’t set the maximum available memory too high. …

---

## [Iterating through an array with a timer - almost there?](https://discourse.processing.org/t/iterating-through-an-array-with-a-timer-almost-there/16726)

<div class="topic-metadata">

**Author:** [@juss](https://discourse.processing.org/u/juss)\
**Replies:** 11\
**Last updated:** [December 31, 2019, 1:38pm UTC](https://discourse.processing.org/t/iterating-through-an-array-with-a-timer-almost-there/16726 "2019-12-31T13:38:32Z")

</div>

Hi everyone! I am a beginner with Processing and currently trying to use an array filled with data in my sketch. I would like to iterate through the array so that the objects (circles) are drawn one by one. With my curr…

---

## [Using PGraphics to create a mask](https://discourse.processing.org/t/using-pgraphics-to-create-a-mask/16740)

<div class="topic-metadata">

**Author:** [@hinomupi](https://discourse.processing.org/u/hinomupi)\
**Replies:** 4\
**Last updated:** [December 31, 2019, 12:47am UTC](https://discourse.processing.org/t/using-pgraphics-to-create-a-mask/16740 "2019-12-31T00:47:39Z")

</div>

So, I want to create a PGraphics object with some transparent regions and everything else black, but I can only find the regions that are transparent. Is there any way for me to do something like: Mask.createGraphics(wi…

---

## [Problems downloading Processing?](https://discourse.processing.org/t/problems-downloading-processing/16739)

<div class="topic-metadata">

**Author:** [@Mammut](https://discourse.processing.org/u/Mammut)\
**Replies:** 3\
**Last updated:** [December 31, 2019, 12:37am UTC](https://discourse.processing.org/t/problems-downloading-processing/16739 "2019-12-31T00:37:23Z")

</div>

Hello everybody, I have tried a few times today (through Chrome) to download the Win64 Processing software from https://processing.org/download/. No luck so far though - the download is incredibly slow (showing as eith…

---

## [Can't add Syphon library through library manager](https://discourse.processing.org/t/cant-add-syphon-library-through-library-manager/3369)

<div class="topic-metadata">

**Author:** [@jhow](https://discourse.processing.org/u/jhow)\
**Replies:** 6\
**Last updated:** [December 30, 2019, 11:59pm UTC](https://discourse.processing.org/t/cant-add-syphon-library-through-library-manager/3369 "2019-12-30T23:59:49Z")

</div>

Hi there, I apologize in advance if my information is not specific enough. I am unable to import the Syphon library into Processing v2.2.1 through the Library Manager. I’ve attached screencaps of the error I receive. Ho…

---

## [CORS issue when loading JSON in p5](https://discourse.processing.org/t/cors-issue-when-loading-json-in-p5/16727)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 2\
**Last updated:** [December 30, 2019, 8:19pm UTC](https://discourse.processing.org/t/cors-issue-when-loading-json-in-p5/16727 "2019-12-30T20:19:38Z")

</div>

I’m attempting to load a JSON and receive the following message: “Access to fetch at ‘https://api.flightstats.com/flex/schedules/rest/v1/json/flight/AA/100/departing/2020/1/31?appId=XXX&appKey=XXX’ from origin ‘https://…

---

## [Zoom and save as png](https://discourse.processing.org/t/zoom-and-save-as-png/16729)

<div class="topic-metadata">

**Author:** [@monk-e-boy](https://discourse.processing.org/u/monk-e-boy)\
**Replies:** 4\
**Last updated:** [December 30, 2019, 8:00pm UTC](https://discourse.processing.org/t/zoom-and-save-as-png/16729 "2019-12-30T20:00:03Z")

</div>

I can save my canvas as a .png :slight\_smile: how do I zoom it in first? I am creating a D&D grid, I would like to save it so each square is 1 inch across. I would like to save it with a transparent background. https:…

---

## [ArrayList not behaving as expected](https://discourse.processing.org/t/arraylist-not-behaving-as-expected/16724)

<div class="topic-metadata">

**Author:** [@Psteely](https://discourse.processing.org/u/Psteely)\
**Replies:** 10\
**Last updated:** [December 30, 2019, 6:21pm UTC](https://discourse.processing.org/t/arraylist-not-behaving-as-expected/16724 "2019-12-30T18:21:20Z")

</div>

Hi Folks, I’m new to this coding lark as well as Processing so I’m sure this is just me being dumb but I can’t figure it. I have created a small subset of my code to more easily explain it. ArrayList\<trainData\> td; vo…

---

## [Trying to convert 2D flat image to 3D plane via rotateX](https://discourse.processing.org/t/trying-to-convert-2d-flat-image-to-3d-plane-via-rotatex/16719)

<div class="topic-metadata">

**Author:** [@johnfischbeck](https://discourse.processing.org/u/johnfischbeck)\
**Replies:** 1\
**Last updated:** [December 30, 2019, 12:38pm UTC](https://discourse.processing.org/t/trying-to-convert-2d-flat-image-to-3d-plane-via-rotatex/16719 "2019-12-30T12:38:24Z")

</div>

I’m trying to convert an equirectangular svg image with plotted lines that are bezier curves and text to a 3D plane so the arch lines rise up and I can move in and around once all is plotted. Trying to achieve an effect…

---

## [If condition breaks for loop in recursive function](https://discourse.processing.org/t/if-condition-breaks-for-loop-in-recursive-function/16717)

<div class="topic-metadata">

**Author:** [@musiciantriescoding](https://discourse.processing.org/u/musiciantriescoding)\
**Replies:** 3\
**Last updated:** [December 30, 2019, 11:08am UTC](https://discourse.processing.org/t/if-condition-breaks-for-loop-in-recursive-function/16717 "2019-12-30T11:08:08Z")

</div>

Hi everyone! I have come across what I think may be a bug. I am just testing a recursive function which: Draws 6 circles around a circle for each circle, draw 6 circles around it. This is the following code I wrote. (…

---

## [Arc length parametrization example interpolation understanding](https://discourse.processing.org/t/arc-length-parametrization-example-interpolation-understanding/16638)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 4\
**Last updated:** [December 30, 2019, 6:47am UTC](https://discourse.processing.org/t/arc-length-parametrization-example-interpolation-understanding/16638 "2019-12-30T06:47:06Z")

</div>

https://github.com/processing/processing-docs/blob/master/content/examples/Topics/Curves/ArcLengthParametrization/BezierCurve.pde I am having trouble understanding the interpolation of two surrounding indexes in equidis…

---

## [Unpacking serial data from arduino](https://discourse.processing.org/t/unpacking-serial-data-from-arduino/16662)

<div class="topic-metadata">

**Author:** [@urthlight](https://discourse.processing.org/u/urthlight)\
**Replies:** 12\
**Last updated:** [December 29, 2019, 11:07pm UTC](https://discourse.processing.org/t/unpacking-serial-data-from-arduino/16662 "2019-12-29T23:07:07Z")

</div>

Can someone help me understand what is going on here. I am receiving serial data in the format “angle,sonar distance,ir distance.”. My code works with the first 2 variables. I am trying to add the third. I do not unders…

---

## [wallpaperPreview() - works on setup() only?](https://discourse.processing.org/t/wallpaperpreview-works-on-setup-only/16685)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 6\
**Last updated:** [December 29, 2019, 10:17pm UTC](https://discourse.processing.org/t/wallpaperpreview-works-on-setup-only/16685 "2019-12-29T22:17:42Z")

</div>

Hi! I was tinkering with a live wallpaper I made on Christmas 2018 . Last year I inserted a button which appeared in preview mode. This year I wanted to put some functionality on it, but I am hitting a rock every time. …

---

## [Creating your own complex Pimage](https://discourse.processing.org/t/creating-your-own-complex-pimage/16596)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 6\
**Last updated:** [December 29, 2019, 9:08pm UTC](https://discourse.processing.org/t/creating-your-own-complex-pimage/16596 "2019-12-29T21:08:39Z")

</div>

Not sure if this is a thing, but I like how processing allows you to manipulate pixels using loadPixels, and updatePixels. I understand that this topic probably treads on the domain of shaders, but as I have yet to grasp…

---

## [Float value to Byte array](https://discourse.processing.org/t/float-value-to-byte-array/16698)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 6\
**Last updated:** [December 29, 2019, 8:24pm UTC](https://discourse.processing.org/t/float-value-to-byte-array/16698 "2019-12-29T20:24:47Z")

</div>

Hello there how to convert float val to byte array ? i have this function that work in oposite way, it converts Byte array to Float value: public float byteArrayToFloat(byte test\[\]) { int MASK = 0xff; int bits = 0; …

---

## [Unable to open .dxf file](https://discourse.processing.org/t/unable-to-open-dxf-file/16703)

<div class="topic-metadata">

**Author:** [@bp396](https://discourse.processing.org/u/bp396)\
**Replies:** 8\
**Last updated:** [December 29, 2019, 7:54pm UTC](https://discourse.processing.org/t/unable-to-open-dxf-file/16703 "2019-12-29T19:54:59Z")

</div>

I am trying to save a sketch output as a dsx file. Am using this because I am looking to save a sketch using 3D bezier curves. Although the file appears to be saving, it will not open properly using Adobe Illustrator o…

---

## [Getting errors working with String Arrays](https://discourse.processing.org/t/getting-errors-working-with-string-arrays/16701)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 14\
**Last updated:** [December 29, 2019, 5:50pm UTC](https://discourse.processing.org/t/getting-errors-working-with-string-arrays/16701 "2019-12-29T17:50:10Z")

</div>

Beginner here, I get an error code whenever I try to run this small part of my code. Could someone help, I am trying to load an integer in string form loaded in hs.txt and only replace it when the highscore in the sessio…

---

## [Can I use multiple p5.js on my website..?](https://discourse.processing.org/t/can-i-use-multiple-p5-js-on-my-website/16522)

<div class="topic-metadata">

**Author:** [@Sejin.OH](https://discourse.processing.org/u/Sejin.OH)\
**Replies:** 2\
**Last updated:** [December 29, 2019, 4:29pm UTC](https://discourse.processing.org/t/can-i-use-multiple-p5-js-on-my-website/16522 "2019-12-29T16:29:21Z")

</div>

Hello, I have a website where I want to use my portfolio… but I tried my work(p5.js) with a script on my website but couldn’t succeed more than one. Is there a way to upload multiple p5.js in html differently? Thanks fo…

---

## [USB camera in list but doesn't grab image](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 3\
**Last updated:** [December 29, 2019, 3:50am UTC](https://discourse.processing.org/t/usb-camera-in-list-but-doesnt-grab-image/11003 "2019-12-29T03:50:29Z")

</div>

No error given in console. Webcam works as camera \[0\] USB camera shows up under Sound and game controllers in Device manager USB camera works with several other software apps OK. POsted about this in 2017/2018 Has a…

---

## [Object is not working in new versions of Processing](https://discourse.processing.org/t/object-is-not-working-in-new-versions-of-processing/16686)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 7\
**Last updated:** [December 28, 2019, 9:23pm UTC](https://discourse.processing.org/t/object-is-not-working-in-new-versions-of-processing/16686 "2019-12-28T21:23:26Z")

</div>

Hello, i want to store some type of Var in the Object, and it cant… see Object\[\] vars = new Object\[\] { 5, 10.0, true, 20 }; println(vars\[0\]); Tell me why ? Or how to make it working… ? :frowning:

---

## [Getting nested JSON float values](https://discourse.processing.org/t/getting-nested-json-float-values/16674)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 3\
**Last updated:** [December 28, 2019, 5:13pm UTC](https://discourse.processing.org/t/getting-nested-json-float-values/16674 "2019-12-28T17:13:01Z")

</div>

Given a JSON file formatted as shown in the screenshot below, how do I acces the individual float values using Processing JSONArray + JSONObject?

---

## [Connecting outermost dots with a single line?](https://discourse.processing.org/t/connecting-outermost-dots-with-a-single-line/16395)

<div class="topic-metadata">

**Author:** [@clausneergaard](https://discourse.processing.org/u/clausneergaard)\
**Replies:** 9\
**Last updated:** [December 28, 2019, 3:45pm UTC](https://discourse.processing.org/t/connecting-outermost-dots-with-a-single-line/16395 "2019-12-28T15:45:50Z")

</div>

Hi all - Does anyone know how to work with a way to connect the outermost randomly placed dots to make a shape? E.g., if you make 25 random points on screen and there are 10 dots on the perimeter and 15 on the inside, …

---

## [New addon library - p5.wasm](https://discourse.processing.org/t/new-addon-library-p5-wasm/16675)

<div class="topic-metadata">

**Author:** [@limzykenneth](https://discourse.processing.org/u/limzykenneth)\
**Replies:** 0\
**Last updated:** [December 28, 2019, 2:24pm UTC](https://discourse.processing.org/t/new-addon-library-p5-wasm/16675 "2019-12-28T14:24:24Z")

</div>

A new experimental addon library for p5.js written in Rust and compiled to WebAssembly: https://github.com/limzykenneth/p5.wasm Reimplements some of p5.js’ functions in WebAssembly. I should stress the “experimental” si…

---

## [Error in installing](https://discourse.processing.org/t/error-in-installing/16660)

<div class="topic-metadata">

**Author:** [@artemp28](https://discourse.processing.org/u/artemp28)\
**Replies:** 5\
**Last updated:** [December 28, 2019, 2:19pm UTC](https://discourse.processing.org/t/error-in-installing/16660 "2019-12-28T14:19:17Z")

</div>

Why am i getting this error? How to solve it?

---

## [Problem with installation](https://discourse.processing.org/t/problem-with-installation/16529)

<div class="topic-metadata">

**Author:** [@niravasher](https://discourse.processing.org/u/niravasher)\
**Replies:** 2\
**Last updated:** [December 28, 2019, 2:17pm UTC](https://discourse.processing.org/t/problem-with-installation/16529 "2019-12-28T14:17:13Z")

</div>

Hi! my name is Nirav Asher, I am from Mumbai, India. I am trying to contribute to processing/p5.js. I am working on Ubuntu 19.04. I will be trying for GSOC 2020. When I run npm run grunt, I get the following warning a l…

---

## [Eliminate red tint from image](https://discourse.processing.org/t/eliminate-red-tint-from-image/16666)

<div class="topic-metadata">

**Author:** [@costachemadalin](https://discourse.processing.org/u/costachemadalin)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 2:07pm UTC](https://discourse.processing.org/t/eliminate-red-tint-from-image/16666 "2019-12-28T14:07:04Z")

</div>

Hi, is it possible to eliminate the red tint from this image using some filter? I need to find in this image the orange ball, but i cannot make the difference between ball and background.

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=406)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=408)
