# Processing

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

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

**Page:** 247

---

## [Loadpixels not working with forloop into pgraphic layer1](https://discourse.processing.org/t/loadpixels-not-working-with-forloop-into-pgraphic-layer1/16769)

<div class="topic-metadata">

**Author:** [@xrispy](https://discourse.processing.org/u/xrispy)\
**Replies:** 1\
**Last updated:** [January 1, 2020, 7:53am UTC](https://discourse.processing.org/t/loadpixels-not-working-with-forloop-into-pgraphic-layer1/16769 "2020-01-01T07:53:50Z")

</div>

Hi! I am attempting to load an image into a Pgraphic with creategraphics named layer 1 The intent is to be able to load an image, distort the r,g,b and update the pixels into the layer1 create graphic thus clipping the …

---

## [How can I run a video on arduino by using processing?](https://discourse.processing.org/t/how-can-i-run-a-video-on-arduino-by-using-processing/16771)

<div class="topic-metadata">

**Author:** [@muhammad\_bilal125](https://discourse.processing.org/u/muhammad_bilal125)\
**Replies:** 0\
**Last updated:** [January 1, 2020, 7:25am UTC](https://discourse.processing.org/t/how-can-i-run-a-video-on-arduino-by-using-processing/16771 "2020-01-01T07:25:24Z")

</div>

Actually i want to run a video on arduino through processing. Can anyone guide me how i can do it? Kindly immediately need help…

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Find number in a text and return string from the row below](https://discourse.processing.org/t/find-number-in-a-text-and-return-string-from-the-row-below/16670)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 1:03pm UTC](https://discourse.processing.org/t/find-number-in-a-text-and-return-string-from-the-row-below/16670 "2019-12-28T13:03:00Z")

</div>

for example I have a text that contains 2 lines 1- “1000”, “55”, “123” 2- “hello”, “bye”, “good” I want a function that does this foo (“55”) this would have to find me the string “55” and return what is in the row b…

---

## [Search and get position of a word in a comma separated string](https://discourse.processing.org/t/search-and-get-position-of-a-word-in-a-comma-separated-string/16671)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 3\
**Last updated:** [December 28, 2019, 12:58pm UTC](https://discourse.processing.org/t/search-and-get-position-of-a-word-in-a-comma-separated-string/16671 "2019-12-28T12:58:04Z")

</div>

suppose I have String s = "BANANA, APPLE, GRAPE" how to look for the word grape and return me position 2 foo (s, “grape”) // return 2 If I look for the word apple, I should return the position 1 If I look for the wo…

---

## [Error handling for the clipboard](https://discourse.processing.org/t/error-handling-for-the-clipboard/16654)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [December 28, 2019, 2:06am UTC](https://discourse.processing.org/t/error-handling-for-the-clipboard/16654 "2019-12-28T02:06:52Z")

</div>

I am using the following code to capture text from the clipboard, however if I use print screen the clipboard will be filled with image data and return an error. Object getFromClipboard (DataFlavor flavor) { Clipboar…

---

## [PImage - Array reverse](https://discourse.processing.org/t/pimage-array-reverse/16668)

<div class="topic-metadata">

**Author:** [@iheartart](https://discourse.processing.org/u/iheartart)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 1:25am UTC](https://discourse.processing.org/t/pimage-array-reverse/16668 "2019-12-28T01:25:40Z")

</div>

Hi Guys, I have a little troubleshooting with a PImage… The code works but i really wonder how to change the direction of the pictures. Starting mouseY on top with numb 22 going down to 0. ( I just managed to start th…

---

## [How to create animated line graph in Processing?](https://discourse.processing.org/t/how-to-create-animated-line-graph-in-processing/16643)

<div class="topic-metadata">

**Author:** [@bluefern](https://discourse.processing.org/u/bluefern)\
**Replies:** 5\
**Last updated:** [December 28, 2019, 12:30am UTC](https://discourse.processing.org/t/how-to-create-animated-line-graph-in-processing/16643 "2019-12-28T00:30:14Z")

</div>

I´m trying to make an animated line graph using data from .csv I want to animate the lines and add the name of the series to the end of the line like this example: Household debt balances (excluding mortgages) pic.t…

---

## [Processing to single java](https://discourse.processing.org/t/processing-to-single-java/16612)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 10:11pm UTC](https://discourse.processing.org/t/processing-to-single-java/16612 "2019-12-27T22:11:56Z")

</div>

How to processing file make single jar file Is it possible

---

## [Legal implications programmers should consider when deploying an application in processing](https://discourse.processing.org/t/legal-implications-programmers-should-consider-when-deploying-an-application-in-processing/16653)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 10:01pm UTC](https://discourse.processing.org/t/legal-implications-programmers-should-consider-when-deploying-an-application-in-processing/16653 "2019-12-27T22:01:20Z")

</div>

Hi all, I just wanted to discuss the do’s and don’ts when deploying a program, I’m sure legal council will always be necessary as most of us will not be trained lawyers and therefore may not be up to date on current leg…

---

## [I need your help please :/](https://discourse.processing.org/t/i-need-your-help-please/16658)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 7:11pm UTC](https://discourse.processing.org/t/i-need-your-help-please/16658 "2019-12-27T19:11:32Z")

</div>

if(mousePressed){ cursor(maus2, maus2.width/2, maus2.height/2); } else { cursor(maus, maus.width/2, maus.height/2);} why dont work? pls i need the help

---

## [Simple question: draw a gradient line by line](https://discourse.processing.org/t/simple-question-draw-a-gradient-line-by-line/16652)

<div class="topic-metadata">

**Author:** [@littlecat](https://discourse.processing.org/u/littlecat)\
**Replies:** 10\
**Last updated:** [December 27, 2019, 11:24am UTC](https://discourse.processing.org/t/simple-question-draw-a-gradient-line-by-line/16652 "2019-12-27T11:24:50Z")

</div>

Hey everyone I’m a newbie and don’t know how to find a solution for this question: I want to draw gradient where you can see the “loading” or refreshing of the gradient. Like when you see loading a image on a screen li…

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

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