# Processing

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

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

**Page:** 277

---

## [Custom Distribution of Random Number](https://discourse.processing.org/t/custom-distribution-of-random-number/13628)

<div class="topic-metadata">

**Author:** [@tylerowens](https://discourse.processing.org/u/tylerowens)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 9:14pm UTC](https://discourse.processing.org/t/custom-distribution-of-random-number/13628 "2019-08-26T21:14:43Z")

</div>

Hello all, I am currently in the introduction chapter of the nature of code. I am making a program that generates a random number by comparing two random numbers. I am able to make sense of everything besides what random…

---

## [Accessing class/attributes from string](https://discourse.processing.org/t/accessing-class-attributes-from-string/13583)

<div class="topic-metadata">

**Author:** [@Keif3r](https://discourse.processing.org/u/Keif3r)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 8:21pm UTC](https://discourse.processing.org/t/accessing-class-attributes-from-string/13583 "2019-08-26T20:21:46Z")

</div>

Hi, What I want to do using processing 3.x with java: Basically read all variable values of a class, but accessing them indirectly by a string. e.g. class book { String title; int catalogue; String author; } ... …

---

## [Processing3 GLConstants.GLGRAPHICS library deprecated?](https://discourse.processing.org/t/processing3-glconstants-glgraphics-library-deprecated/13416)

<div class="topic-metadata">

**Author:** [@jshaw3](https://discourse.processing.org/u/jshaw3)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 7:57pm UTC](https://discourse.processing.org/t/processing3-glconstants-glgraphics-library-deprecated/13416 "2019-08-26T19:57:41Z")

</div>

Hey All, I’m looking through some Processing libraries for some openGL and shader examples and there are quite a few examples which I believe are quite old but seem to have some good examples. They all seem to be using …

---

## [How to build processing with sublime text on unix](https://discourse.processing.org/t/how-to-build-processing-with-sublime-text-on-unix/13620)

<div class="topic-metadata">

**Author:** [@goda](https://discourse.processing.org/u/goda)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 2:52pm UTC](https://discourse.processing.org/t/how-to-build-processing-with-sublime-text-on-unix/13620 "2019-08-26T14:52:24Z")

</div>

hello to all I have a problem I can not seem compible code processing on sublime text I have it as error I put the program processing-java in / usr / bin but I do not understand why its not working if you can help me …

---

## [How to use special characters in ControlP5?](https://discourse.processing.org/t/how-to-use-special-characters-in-controlp5/13615)

<div class="topic-metadata">

**Author:** [@Leonhard](https://discourse.processing.org/u/Leonhard)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 12:42pm UTC](https://discourse.processing.org/t/how-to-use-special-characters-in-controlp5/13615 "2019-08-26T12:42:27Z")

</div>

Hi, I have the following problem: Code: GUI: characters (ç and ã) do not appear how can you solve it? Thanks

---

## [Why it returned an error?](https://discourse.processing.org/t/why-it-returned-an-error/13614)

<div class="topic-metadata">

**Author:** [@Sfracassetti2005](https://discourse.processing.org/u/Sfracassetti2005)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 10:29am UTC](https://discourse.processing.org/t/why-it-returned-an-error/13614 "2019-08-26T10:29:17Z")

</div>

---

## [How to trigger a sound file in my motion sensor code?](https://discourse.processing.org/t/how-to-trigger-a-sound-file-in-my-motion-sensor-code/13603)

<div class="topic-metadata">

**Author:** [@blorglue](https://discourse.processing.org/u/blorglue)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 3:26am UTC](https://discourse.processing.org/t/how-to-trigger-a-sound-file-in-my-motion-sensor-code/13603 "2019-08-26T03:26:39Z")

</div>

I am trying to add a sound trigger to my code, but nothing I’ve done seems to work. things I’ve tried: compared strings with == and .equals used a boolean made the arduino send a number instead of a string to compare …

---

## [Button type G4P not show in save canvas to PNG](https://discourse.processing.org/t/button-type-g4p-not-show-in-save-canvas-to-png/13412)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 7\
**Last updated:** [August 26, 2019, 12:39am UTC](https://discourse.processing.org/t/button-type-g4p-not-show-in-save-canvas-to-png/13412 "2019-08-26T00:39:08Z")

</div>

Win10 // Processing 3.5.3 i am using the example / File / Examples / Contributed Libraries / G4P / G4P\_ ImageButtons / and added acc https://processing.org/reference/save\_.html //KLL test String outfile = "data/snap…

---

## [Convert from .js to Processing](https://discourse.processing.org/t/convert-from-js-to-processing/13578)

<div class="topic-metadata">

**Author:** [@krocksey](https://discourse.processing.org/u/krocksey)\
**Replies:** 12\
**Last updated:** [August 25, 2019, 10:47pm UTC](https://discourse.processing.org/t/convert-from-js-to-processing/13578 "2019-08-25T22:47:33Z")

</div>

Hi! Can someone help me to convert this JavaScript to Processing. I’m not so cool for this code yet, but I really need this function for my app. Thank you stranger! Code: /\* Sample Usage: \<script type="text/javascri…

---

## [From Java to simple Desktop Application?](https://discourse.processing.org/t/from-java-to-simple-desktop-application/13582)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.processing.org/u/eric)\
**Replies:** 9\
**Last updated:** [August 25, 2019, 7:11am UTC](https://discourse.processing.org/t/from-java-to-simple-desktop-application/13582 "2019-08-25T07:11:09Z")

</div>

I built a relatively simple application that measures a cross section, counts “folds” and then determines a color to white percentage. Hard to explain with little detail. My objective is to have a simple desktop app th…

---

## [Reversing the threshold filter](https://discourse.processing.org/t/reversing-the-threshold-filter/13579)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.processing.org/u/eric)\
**Replies:** 2\
**Last updated:** [August 25, 2019, 4:53am UTC](https://discourse.processing.org/t/reversing-the-threshold-filter/13579 "2019-08-25T04:53:12Z")

</div>

I’ll throw in only the important parts, but for an image processing application I’m making, I want to analyze the image with the rgb components (typical picture), and then change it to black and white using the threshold…

---

## [Vehicles over 3D terrain](https://discourse.processing.org/t/vehicles-over-3d-terrain/12100)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 12\
**Last updated:** [August 24, 2019, 9:05am UTC](https://discourse.processing.org/t/vehicles-over-3d-terrain/12100 "2019-08-24T09:05:09Z")

</div>

Hello Does anyone know of a reference for creating a system of vehicles moving over a 3D rendered terrain? Thank you.

---

## [Opening/Running a Sketch, then closing and Runnning a new Sketch automatically](https://discourse.processing.org/t/opening-running-a-sketch-then-closing-and-runnning-a-new-sketch-automatically/13543)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 4\
**Last updated:** [August 23, 2019, 6:26pm UTC](https://discourse.processing.org/t/opening-running-a-sketch-then-closing-and-runnning-a-new-sketch-automatically/13543 "2019-08-23T18:26:12Z")

</div>

Hi, I am an electronic musician. I have been sending OSC messages from my music software to Processing to create pretty awesome interactive visual animations after only a few weeks of learning processing. I am starting…

---

## [Digitize Audio Input](https://discourse.processing.org/t/digitize-audio-input/13156)

<div class="topic-metadata">

**Author:** [@StevenSarns](https://discourse.processing.org/u/StevenSarns)\
**Replies:** 8\
**Last updated:** [August 23, 2019, 10:46am UTC](https://discourse.processing.org/t/digitize-audio-input/13156 "2019-08-23T10:46:12Z")

</div>

Hello All, Thanks in advance for any insights. I am very new to Processing. My project is to create an oscilloscope-like presentation of the signal on the MIC input of my desktop computer. The test waveform is a 20 H…

---

## [What hint(ENABLE\_OPTIMIZED\_STROKE) does?](https://discourse.processing.org/t/what-hint-enable-optimized-stroke-does/9416)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 12\
**Last updated:** [August 23, 2019, 9:54am UTC](https://discourse.processing.org/t/what-hint-enable-optimized-stroke-does/9416 "2019-08-23T09:54:47Z")

</div>

another simple quesiton. what Enable\_Optimized\_Stroke does?. im could not find any openGL reference. What is the openGl equivalent? Thanks!

---

## [How to run pictures in alphabetical order](https://discourse.processing.org/t/how-to-run-pictures-in-alphabetical-order/13544)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 2\
**Last updated:** [August 23, 2019, 9:43am UTC](https://discourse.processing.org/t/how-to-run-pictures-in-alphabetical-order/13544 "2019-08-23T09:43:11Z")

</div>

In for loop how to run pictures in alphabetical order not random… For creating animation like animal walking… Can any one help?

---

## [Very low FPS problem](https://discourse.processing.org/t/very-low-fps-problem/13533)

<div class="topic-metadata">

**Author:** [@Raiben23](https://discourse.processing.org/u/Raiben23)\
**Replies:** 5\
**Last updated:** [August 22, 2019, 7:57pm UTC](https://discourse.processing.org/t/very-low-fps-problem/13533 "2019-08-22T19:57:12Z")

</div>

Hi, I’m having a problem with a code that I’m testing, that’s: Star\[\] s; Nave n; Asteroide\[\] ast; Planets\[\] plan; int numast = 5; int numplan = 2; int numstar = 500; void setup() { size(1200, 600); // frameRate(10…

---

## [\[SOLVED\] Play second video when first video ends?](https://discourse.processing.org/t/solved-play-second-video-when-first-video-ends/13512)

<div class="topic-metadata">

**Author:** [@AxeFire](https://discourse.processing.org/u/AxeFire)\
**Replies:** 16\
**Last updated:** [August 22, 2019, 4:05pm UTC](https://discourse.processing.org/t/solved-play-second-video-when-first-video-ends/13512 "2019-08-22T16:05:30Z")

</div>

this might seem trivial but, how do you make the video move to the next “scene” automatically after the video ends? void draw() { //----------game states------------- if (state == 0) // 0 welcome screen { …

---

## [\[SOLVED\] PGraphics or PImage as Uniform not working when using GLSL in Java OpenGL](https://discourse.processing.org/t/solved-pgraphics-or-pimage-as-uniform-not-working-when-using-glsl-in-java-opengl/13514)

<div class="topic-metadata">

**Author:** [@kesson](https://discourse.processing.org/u/kesson)\
**Replies:** 15\
**Last updated:** [August 22, 2019, 2:57pm UTC](https://discourse.processing.org/t/solved-pgraphics-or-pimage-as-uniform-not-working-when-using-glsl-in-java-opengl/13514 "2019-08-22T14:57:51Z")

</div>

Hello everyone, I am keeping exploring the field of shaders in Processing, even if I am facing many problems. My last problem is when I try to use a texture (for example a PGraphics of PImage) to use it as parameters f…

---

## [Trouble moving a function into a class](https://discourse.processing.org/t/trouble-moving-a-function-into-a-class/13535)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 2:01pm UTC](https://discourse.processing.org/t/trouble-moving-a-function-into-a-class/13535 "2019-08-22T14:01:01Z")

</div>

There is a function checkMouse() that I have moved into the Button class, and renamed it checkMouse2. For some reason I can’t figure out, when I try to call it in Button.show(), Button b2 becomes non functional, but Butt…

---

## [Parsing data arduino](https://discourse.processing.org/t/parsing-data-arduino/13541)

<div class="topic-metadata">

**Author:** [@majidd](https://discourse.processing.org/u/majidd)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 7:38am UTC](https://discourse.processing.org/t/parsing-data-arduino/13541 "2019-08-22T07:38:34Z")

</div>

can anyone help me to make an arduino serial data parsing program. data from Bluetooth HC 05, and read by Arduino

---

## [Error code on Startup - Help!](https://discourse.processing.org/t/error-code-on-startup-help/13537)

<div class="topic-metadata">

**Author:** [@yucky](https://discourse.processing.org/u/yucky)\
**Replies:** 0\
**Last updated:** [August 22, 2019, 1:14am UTC](https://discourse.processing.org/t/error-code-on-startup-help/13537 "2019-08-22T01:14:57Z")

</div>

Hi all, I can’t open my Processing anymore :frowning: I had processing downloaded on my computer for a while, but I hadn’t opened it in a couple months and now when I try to run it I get an error code. I’m running mac …

---

## [Unexpected OutOfBoundsException thrown](https://discourse.processing.org/t/unexpected-outofboundsexception-thrown/13526)

<div class="topic-metadata">

**Author:** [@Anosen](https://discourse.processing.org/u/Anosen)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 7:49pm UTC](https://discourse.processing.org/t/unexpected-outofboundsexception-thrown/13526 "2019-08-21T19:49:10Z")

</div>

Hi, my problem is I can’t find from where the OutOfBoundsException error below comes from. Processing and Arduino code attached. Using Processing debugger I think the issue appears at line 81, with “try”. java.lang.Arr…

---

## [Processing x Kinect v2: Getting depth data and tracking moving object in 3D world](https://discourse.processing.org/t/processing-x-kinect-v2-getting-depth-data-and-tracking-moving-object-in-3d-world/13525)

<div class="topic-metadata">

**Author:** [@farahfairy](https://discourse.processing.org/u/farahfairy)\
**Replies:** 0\
**Last updated:** [August 21, 2019, 4:42pm UTC](https://discourse.processing.org/t/processing-x-kinect-v2-getting-depth-data-and-tracking-moving-object-in-3d-world/13525 "2019-08-21T16:42:35Z")

</div>

Hi, struggling with my Processing code… parts are taken from the Thomas Sanchez KinectPV2 examples… So my object is to access the Kinect V2 point cloud data and depth image and then to tracking small moving objects as bl…

---

## [Small projectors for gallery display](https://discourse.processing.org/t/small-projectors-for-gallery-display/13486)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 4:13pm UTC](https://discourse.processing.org/t/small-projectors-for-gallery-display/13486 "2019-08-21T16:13:18Z")

</div>

Has anyone here used small portable projectors for displaying their Processing work in ad-hoc exhibitions? It seems to me that the most important criteria would be a) the lag time, and b) the brightness if projecting in…

---

## [Kinect and Processing](https://discourse.processing.org/t/kinect-and-processing/12972)

<div class="topic-metadata">

**Author:** [@farahfairy](https://discourse.processing.org/u/farahfairy)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 9:22am UTC](https://discourse.processing.org/t/kinect-and-processing/12972 "2019-08-21T09:22:59Z")

</div>

Hi, I am trying to use Porcessing with Kinect to product point cloud data… I followed Daniel Shiffman’s youtube tutorial and link to github with source code but unfortunately having some library troubles… i have this e…

---

## [Rotating camera around a sketch as it draws, without effecting the drawing](https://discourse.processing.org/t/rotating-camera-around-a-sketch-as-it-draws-without-effecting-the-drawing/13500)

<div class="topic-metadata">

**Author:** [@edhull94](https://discourse.processing.org/u/edhull94)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 7:49pm UTC](https://discourse.processing.org/t/rotating-camera-around-a-sketch-as-it-draws-without-effecting-the-drawing/13500 "2019-08-20T19:49:48Z")

</div>

Hi there, Wondering if someone could help me, I am new to processing and programming in general. I have created a random walker that walks a point around a 3D space. Please see code below. Now I would like to be able …

---

## [Use of saveStrings](https://discourse.processing.org/t/use-of-savestrings/13482)

<div class="topic-metadata">

**Author:** [@BeginnerForever](https://discourse.processing.org/u/BeginnerForever)\
**Replies:** 5\
**Last updated:** [August 20, 2019, 4:20pm UTC](https://discourse.processing.org/t/use-of-savestrings/13482 "2019-08-20T16:20:09Z")

</div>

Hi ! I’m very new to processing and java, and for one of my first programs i need to create data file in .txt to store some variables… but when i use the syntax below, in the .txt file i have this : -2097152 red … i …

---

## [Animation with 5 balls](https://discourse.processing.org/t/animation-with-5-balls/13413)

<div class="topic-metadata">

**Author:** [@Francisco](https://discourse.processing.org/u/Francisco)\
**Replies:** 5\
**Last updated:** [August 20, 2019, 4:09pm UTC](https://discourse.processing.org/t/animation-with-5-balls/13413 "2019-08-20T16:09:55Z")

</div>

I have tried this code to iterate an array in a circular way and assign the y values to five circles. But I suspect it is not the most efficient way. Are there other ways to do it? int\[\] secuencia = {0, 5, 10, 15, 20, 2…

---

## [3D terrain standalone display project](https://discourse.processing.org/t/3d-terrain-standalone-display-project/4162)

<div class="topic-metadata">

**Author:** [@stirman](https://discourse.processing.org/u/stirman)\
**Replies:** 14\
**Last updated:** [August 20, 2019, 3:15pm UTC](https://discourse.processing.org/t/3d-terrain-standalone-display-project/4162 "2019-08-20T15:15:23Z")

</div>

Hey friends, I have an idea… but could use a little wisdom of the crowd to get me going in the right direction. I would like to create a 3d terrain flyover similar to this but on a small standalone, framed display with a…

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

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