# Processing

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

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

**Page:** 340

---

## [Processing Renderer in NetBeans](https://discourse.processing.org/t/processing-renderer-in-netbeans/6477)

<div class="topic-metadata">

**Author:** [@flecheria](https://discourse.processing.org/u/flecheria)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 3:02pm UTC](https://discourse.processing.org/t/processing-renderer-in-netbeans/6477 "2018-12-10T15:02:14Z")

</div>

HI I’m using processing in NetBeans but I got this error when I try to set P3D renderer in settings; public void settings() { size(300, 300, "P3D"); } java.lang.RuntimeException: The P3D renderer is not in the cl…

---

## [Loop after loop in setup](https://discourse.processing.org/t/loop-after-loop-in-setup/6472)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 5\
**Last updated:** [December 10, 2018, 12:59pm UTC](https://discourse.processing.org/t/loop-after-loop-in-setup/6472 "2018-12-10T12:59:04Z")

</div>

If i want to use a specific loop for two different functions inside the draw what am i suppose to do?? For example if i want to use this : for (int i=0; i\<table.getRowCount(); i++) { for two different function insid…

---

## [How do I make sure that a function is used properly/as intended when called?](https://discourse.processing.org/t/how-do-i-make-sure-that-a-function-is-used-properly-as-intended-when-called/6447)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 3\
**Last updated:** [December 10, 2018, 10:49am UTC](https://discourse.processing.org/t/how-do-i-make-sure-that-a-function-is-used-properly-as-intended-when-called/6447 "2018-12-10T10:49:00Z")

</div>

I want to make some code that just converts an int of value 0 or 1 to a boolean but I don’t want the value inputted to be anything other than 0 or 1. If that is the case I want to throw an error and stop the program like…

---

## [Out Of Memory Error](https://discourse.processing.org/t/out-of-memory-error/6442)

<div class="topic-metadata">

**Author:** [@dragon\_hatcher](https://discourse.processing.org/u/dragon_hatcher)\
**Replies:** 6\
**Last updated:** [December 10, 2018, 10:10am UTC](https://discourse.processing.org/t/out-of-memory-error/6442 "2018-12-10T10:10:04Z")

</div>

My project keeps getting an out of memory error after 15 - 20 minutes. However when I looked online at the problem it seemed that this almost always happens when you load some sort of file but I’m not doing this. Does a …

---

## [(Processing 3.0) how to sort string array by value of substrings?](https://discourse.processing.org/t/processing-3-0-how-to-sort-string-array-by-value-of-substrings/6436)

<div class="topic-metadata">

**Author:** [@epicwyvern](https://discourse.processing.org/u/epicwyvern)\
**Replies:** 5\
**Last updated:** [December 10, 2018, 7:47am UTC](https://discourse.processing.org/t/processing-3-0-how-to-sort-string-array-by-value-of-substrings/6436 "2018-12-10T07:47:53Z")

</div>

hello guys im in a bit of a dilemma. i am trying to sort the following text file: a a 1 aasd asdasa 23 aghf bsad 12 ytyi qwea 1222313 hlkjojto erewrui 1222 aerwjdu sdahdsu 1…

---

## [\[controlp5\] How to auto submit the change in text field? Currently need to press "enter" key](https://discourse.processing.org/t/controlp5-how-to-auto-submit-the-change-in-text-field-currently-need-to-press-enter-key/6449)

<div class="topic-metadata">

**Author:** [@taeyeyta](https://discourse.processing.org/u/taeyeyta)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 7:43am UTC](https://discourse.processing.org/t/controlp5-how-to-auto-submit-the-change-in-text-field-currently-need-to-press-enter-key/6449 "2018-12-10T07:43:47Z")

</div>

I am using ControlP5 GUI library text fields it must to press enter to submit to set value How to auto submit the change in text field?

---

## [Minim does not play the files of objects without error](https://discourse.processing.org/t/minim-does-not-play-the-files-of-objects-without-error/6457)

<div class="topic-metadata">

**Author:** [@phaidon](https://discourse.processing.org/u/phaidon)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 12:30am UTC](https://discourse.processing.org/t/minim-does-not-play-the-files-of-objects-without-error/6457 "2018-12-10T00:30:24Z")

</div>

Hello, i am writing this processing script with the use of minim, the concept to have a general sound that controls the scale of an ellipse with amplitude, and then when a mouse control rectangle gets inside the ellipse,…

---

## [Check which renderer is active?](https://discourse.processing.org/t/check-which-renderer-is-active/6452)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 12:17am UTC](https://discourse.processing.org/t/check-which-renderer-is-active/6452 "2018-12-10T00:17:27Z")

</div>

Was checking out the source code on GitHub and found many mentions to ‘this.renderer’ for internal use to see which renderer is in use (P2D, P3D) – just wondering if we’re able to access this variable? Was interested to …

---

## [Hidden line removal for wireframe obj as PShape](https://discourse.processing.org/t/hidden-line-removal-for-wireframe-obj-as-pshape/4253)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 10\
**Last updated:** [December 9, 2018, 9:44pm UTC](https://discourse.processing.org/t/hidden-line-removal-for-wireframe-obj-as-pshape/4253 "2018-12-09T21:44:47Z")

</div>

Starting to play with importing an obj file using loadShape() and rendering it as a wireframe. Now comes the tricky part… how to do ‘hidden line removal’ (similar to back-face detection, culling… still sorting out exact…

---

## [Mouseclick colorswitch (RGB)](https://discourse.processing.org/t/mouseclick-colorswitch-rgb/6387)

<div class="topic-metadata">

**Author:** [@Student\_NL](https://discourse.processing.org/u/Student_NL)\
**Replies:** 6\
**Last updated:** [December 9, 2018, 8:41pm UTC](https://discourse.processing.org/t/mouseclick-colorswitch-rgb/6387 "2018-12-09T20:41:52Z")

</div>

Hello, I’m trying to figure out how to switch the color of the screen multiple times by using mouseclick/ mousepressed. The background has to switch from black to red, then blue, then green, (and then back to red.) Th…

---

## [How do I draw a continuous line between several points?](https://discourse.processing.org/t/how-do-i-draw-a-continuous-line-between-several-points/6091)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 5\
**Last updated:** [December 9, 2018, 6:03pm UTC](https://discourse.processing.org/t/how-do-i-draw-a-continuous-line-between-several-points/6091 "2018-12-09T18:03:46Z")

</div>

I’d like to draw a continuous line between several points. It should be any shape what so ever and not fill anything between any of the points, like drawing with a pen. Picture for reference: I know that if I don’t up…

---

## [Setting a class field array via reflection](https://discourse.processing.org/t/setting-a-class-field-array-via-reflection/6444)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 7\
**Last updated:** [December 9, 2018, 5:20pm UTC](https://discourse.processing.org/t/setting-a-class-field-array-via-reflection/6444 "2018-12-09T17:20:11Z")

</div>

Hello once again. The pipeline I’m developing uses a csv file to drive the animations. I’ve hit a stumbling block: I’d like to be able to parse a string into a class’s float array field using reflection. I feel like I’m…

---

## [Couple of questions about lights, snow and rain](https://discourse.processing.org/t/couple-of-questions-about-lights-snow-and-rain/6422)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 7\
**Last updated:** [December 9, 2018, 1:26pm UTC](https://discourse.processing.org/t/couple-of-questions-about-lights-snow-and-rain/6422 "2018-12-09T13:26:39Z")

</div>

Working on a project and I have a few questions before it’s complete. First, on the third stage of my code it is snowing, but when I went to go use the same code I made for rain on my fourth stage the rain is not moving.…

---

## [Video Projection with arduino](https://discourse.processing.org/t/video-projection-with-arduino/6430)

<div class="topic-metadata">

**Author:** [@ashleytg12](https://discourse.processing.org/u/ashleytg12)\
**Replies:** 1\
**Last updated:** [December 9, 2018, 3:48am UTC](https://discourse.processing.org/t/video-projection-with-arduino/6430 "2018-12-09T03:48:14Z")

</div>

Hi guys. I am attempting to use capacitive sensors that trigger a video on Processing. It works wonderfully when connected to my laptop but I want to project the video onto a TV screen. When I hook up my tv to my laptop …

---

## [I need help making save states for an rpg](https://discourse.processing.org/t/i-need-help-making-save-states-for-an-rpg/6428)

<div class="topic-metadata">

**Author:** [@myxen](https://discourse.processing.org/u/myxen)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 7:16pm UTC](https://discourse.processing.org/t/i-need-help-making-save-states-for-an-rpg/6428 "2018-12-08T19:16:19Z")

</div>

how do i make save states in an rpg game in processing

---

## [Updating '1.0.3' processing version code to the current version of processing?](https://discourse.processing.org/t/updating-1-0-3-processing-version-code-to-the-current-version-of-processing/6379)

<div class="topic-metadata">

**Author:** [@Malvan](https://discourse.processing.org/u/Malvan)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 6:46pm UTC](https://discourse.processing.org/t/updating-1-0-3-processing-version-code-to-the-current-version-of-processing/6379 "2018-12-08T18:46:07Z")

</div>

So i was digging through the internet to find the code of an application, i need, and i’ve successfully found it, but the thing is, the app was written so many years ago, that it’s outdated (it doesnt working properly), …

---

## [Tracking with a SEN0158](https://discourse.processing.org/t/tracking-with-a-sen0158/6370)

<div class="topic-metadata">

**Author:** [@POlefef](https://discourse.processing.org/u/POlefef)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 6:41pm UTC](https://discourse.processing.org/t/tracking-with-a-sen0158/6370 "2018-12-08T18:41:22Z")

</div>

Hello everyone. I’m really new at processing and i have to display a graph that gives me the location of infrared sources by using processing and an IR camera (SEN0158) I’ve tried multiple times to run the following c…

---

## [Not sure how to slow down the randomizing color](https://discourse.processing.org/t/not-sure-how-to-slow-down-the-randomizing-color/6423)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 5\
**Last updated:** [December 8, 2018, 6:22pm UTC](https://discourse.processing.org/t/not-sure-how-to-slow-down-the-randomizing-color/6423 "2018-12-08T18:22:14Z")

</div>

I have this snip it from my code below, and I would like to slow down the rate at which the color randomly changes. I know that is the point of random, but I will be presenting this in class and anyone who has photosensi…

---

## [Match image to data, sequentially](https://discourse.processing.org/t/match-image-to-data-sequentially/6158)

<div class="topic-metadata">

**Author:** [@karinalopez87](https://discourse.processing.org/u/karinalopez87)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 5:36pm UTC](https://discourse.processing.org/t/match-image-to-data-sequentially/6158 "2018-12-08T17:36:47Z")

</div>

Hello everyone, I have an array of numbers from my txt file, e.g. line\[0\] = img\[0\], line\[1\] = img\[1\], … it seems to read all of the images but it only saves one. the code doesn’t give me an error yet it’s not saving m…

---

## [Fill a parabole track](https://discourse.processing.org/t/fill-a-parabole-track/6338)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 16\
**Last updated:** [December 8, 2018, 7:32am UTC](https://discourse.processing.org/t/fill-a-parabole-track/6338 "2018-12-08T07:32:54Z")

</div>

Hi I have this code and I want to draw each point of the parabole instead of viewing only the point moving. Code is the following float dx=10; // Inital x position float dy=620; // Inital y position float vx=0; // I…

---

## [Generating random images in an array one at a time](https://discourse.processing.org/t/generating-random-images-in-an-array-one-at-a-time/6413)

<div class="topic-metadata">

**Author:** [@Taikun649](https://discourse.processing.org/u/Taikun649)\
**Replies:** 2\
**Last updated:** [December 8, 2018, 5:00am UTC](https://discourse.processing.org/t/generating-random-images-in-an-array-one-at-a-time/6413 "2018-12-08T05:00:49Z")

</div>

Hello! I’m fairly new to this so please bear with me. I’ve been looking all over the place but I couldn’t find anything on this in particular. So I made a little game where you have different types of food moving from t…

---

## [How can I change the drawing style of a group of shapes?](https://discourse.processing.org/t/how-can-i-change-the-drawing-style-of-a-group-of-shapes/6330)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.processing.org/u/mono)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 2:42am UTC](https://discourse.processing.org/t/how-can-i-change-the-drawing-style-of-a-group-of-shapes/6330 "2018-12-08T02:42:21Z")

</div>

Hey guys. I have written this code here to draw a group of 3 shapes on the screen: PShape s; void setup() { size (40, 40); s = createShape(GROUP); ellipseMode(CENTER); PShape s1 = createShape(ELLIPSE, 0, 0, 1…

---

## [Can Streaming video be used in OpenCV?](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 9\
**Last updated:** [December 8, 2018, 2:15am UTC](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318 "2018-12-08T02:15:59Z")

</div>

I opened the example “backgroundSubstraction” and tried to replace movie file with streaming webcam video but no luck. this line is the trouble: opencv = new OpenCV(this, video); The error says" Width(0) and height (…

---

## [Urgent : Codes of autonomous agent](https://discourse.processing.org/t/urgent-codes-of-autonomous-agent/6403)

<div class="topic-metadata">

**Author:** [@gisue](https://discourse.processing.org/u/gisue)\
**Replies:** 5\
**Last updated:** [December 7, 2018, 11:41pm UTC](https://discourse.processing.org/t/urgent-codes-of-autonomous-agent/6403 "2018-12-07T23:41:48Z")

</div>

can any one help me with this code, I need it right now, since I have final submission and presentation today. please help me. my code runs the stop after 10 second // Path Following // Using this variable to decide wh…

---

## [Arraylist containing x sounds—How?](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311)

<div class="topic-metadata">

**Author:** [@HelaRua](https://discourse.processing.org/u/HelaRua)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 8:06pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311 "2018-12-07T20:06:55Z")

</div>

Hiii~ Does anyone know how to make an arraylist consisting of x sounds? I just made one with images… but I can’t find the equivalent for sound. Bleh \>:-( Ty!!

---

## [Parabolic projectile launch](https://discourse.processing.org/t/parabolic-projectile-launch/6322)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 7\
**Last updated:** [December 7, 2018, 8:00pm UTC](https://discourse.processing.org/t/parabolic-projectile-launch/6322 "2018-12-07T20:00:49Z")

</div>

I,m trying to change the value of vi using left&rigth arrows and the theta value with up&down arrows, but i don’t know exactlu how to do it. The code is the following // based on Projectile Simulation by Hugo Meiring /…

---

## [Function as argument of another function](https://discourse.processing.org/t/function-as-argument-of-another-function/6383)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 4\
**Last updated:** [December 7, 2018, 7:51pm UTC](https://discourse.processing.org/t/function-as-argument-of-another-function/6383 "2018-12-07T19:51:21Z")

</div>

Hi everyone, I’m trying to pass a function as an argument of another function but can’t figure out how… I’ve found plenty of infos on solution for Java 8 but sadly we can’t use those solution with processing if I get i…

---

## [Potential JSONObject bug?](https://discourse.processing.org/t/potential-jsonobject-bug/5930)

<div class="topic-metadata">

**Author:** [@RecursiveCursive](https://discourse.processing.org/u/RecursiveCursive)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 7:37pm UTC](https://discourse.processing.org/t/potential-jsonobject-bug/5930 "2018-12-07T19:37:55Z")

</div>

My project makes use of JSON to store user data, but I am having a strange issue with it. One of my methods is a delete method that is supposed to delete saved data and replace it with a single entry indicating no saved …

---

## [Simple live capture and scanner effect with mouse](https://discourse.processing.org/t/simple-live-capture-and-scanner-effect-with-mouse/6299)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 5\
**Last updated:** [December 7, 2018, 7:11pm UTC](https://discourse.processing.org/t/simple-live-capture-and-scanner-effect-with-mouse/6299 "2018-12-07T19:11:21Z")

</div>

Hi all! I hope you can help me with this! I am trying to create sort of a scanner effect. When you move the mouse from left to right you’ll move the “beam” that’s capturing. I got this simple code working so far, but no…

---

## [360 Degree image](https://discourse.processing.org/t/360-degree-image/3090)

<div class="topic-metadata">

**Author:** [@shoaibmirza](https://discourse.processing.org/u/shoaibmirza)\
**Replies:** 9\
**Last updated:** [December 7, 2018, 4:15pm UTC](https://discourse.processing.org/t/360-degree-image/3090 "2018-12-07T16:15:51Z")

</div>

Hi. how can I load and draw a 360-degree image on processing?

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

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