# Processing

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

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

**Page:** 370

---

## [Installing libusbjava](https://discourse.processing.org/t/installing-libusbjava/2621)

<div class="topic-metadata">

**Author:** [@olivi55](https://discourse.processing.org/u/olivi55)\
**Replies:** 4\
**Last updated:** [August 31, 2018, 3:48am UTC](https://discourse.processing.org/t/installing-libusbjava/2621 "2018-08-31T03:48:01Z")

</div>

Hi everyone, I’m currently trying to use libusbjava as shown on this website, but I get an error, and can’t manage to get it to work, since I’m not so experienced with raw Java… The thing is this example was made in 200…

---

## [How to declare a constant in Processing editor & p5.js? (reported issue)](https://discourse.processing.org/t/how-to-declare-a-constant-in-processing-editor-p5-js-reported-issue/2855)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 12\
**Last updated:** [August 30, 2018, 6:56pm UTC](https://discourse.processing.org/t/how-to-declare-a-constant-in-processing-editor-p5-js-reported-issue/2855 "2018-08-30T18:56:30Z")

</div>

Hi everyone. When declaring a constant, Processing Editor show me the following error message: SyntaxError: expected an operator but found const In Javascript, the first line (generating the error message in Processi…

---

## [Boof cv library error](https://discourse.processing.org/t/boof-cv-library-error/2880)

<div class="topic-metadata">

**Author:** [@Lovell](https://discourse.processing.org/u/Lovell)\
**Replies:** 4\
**Last updated:** [August 30, 2018, 8:40am UTC](https://discourse.processing.org/t/boof-cv-library-error/2880 "2018-08-30T08:40:43Z")

</div>

Hi guys my name is Lovell a Business IT student i am fairly new to processing. I am currently working on computer vision specifically, image classification with the boofCV library. I keep getting this error each time i r…

---

## [Not Able to Render Multiple Shapes](https://discourse.processing.org/t/not-able-to-render-multiple-shapes/3047)

<div class="topic-metadata">

**Author:** [@kokomoko](https://discourse.processing.org/u/kokomoko)\
**Replies:** 6\
**Last updated:** [August 30, 2018, 12:00am UTC](https://discourse.processing.org/t/not-able-to-render-multiple-shapes/3047 "2018-08-30T00:00:45Z")

</div>

OK guys, I have been using P3D and I’m trying to render multiple minecraft grass blocks using a for loop. I have a for loop in draw that runs this function, increasing x each iteration: void makeTexturedCube(PImage pix,…

---

## [Random x placement and proportional scaling](https://discourse.processing.org/t/random-x-placement-and-proportional-scaling/3102)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [August 29, 2018, 10:11pm UTC](https://discourse.processing.org/t/random-x-placement-and-proportional-scaling/3102 "2018-08-29T22:11:07Z")

</div>

Hello Processors, thank you for your time. I am trying to place video-objects along the same y height but random x position, it works but it moves non stop. Also I am trying to scale, proportionally the object using the …

---

## [Early builds of the new Processing Sound library available for testing](https://discourse.processing.org/t/early-builds-of-the-new-processing-sound-library-available-for-testing/1796)

<div class="topic-metadata">

**Author:** [@kevinstadler](https://discourse.processing.org/u/kevinstadler)\
**Replies:** 4\
**Last updated:** [August 29, 2018, 8:45pm UTC](https://discourse.processing.org/t/early-builds-of-the-new-processing-sound-library-available-for-testing/1796 "2018-08-29T20:45:52Z")

</div>

Hello, as part of Google Summer of Code I’m currently doing a from-scratch rewrite of the Processing Sound library based on a Java sound synthesis engine, which should improve support for platforms such as Android and R…

---

## [PImage Arrays and auto scrolling photo strip](https://discourse.processing.org/t/pimage-arrays-and-auto-scrolling-photo-strip/3074)

<div class="topic-metadata">

**Author:** [@ChrisTMChen](https://discourse.processing.org/u/ChrisTMChen)\
**Replies:** 3\
**Last updated:** [August 29, 2018, 3:50pm UTC](https://discourse.processing.org/t/pimage-arrays-and-auto-scrolling-photo-strip/3074 "2018-08-29T15:50:27Z")

</div>

Hi everyone! New member to the forum here (and processing). So thank you in advance to whoever might be able to help out. I’m working towards a bigger coding project for developing a photo projection installation, and …

---

## [Basic shader help](https://discourse.processing.org/t/basic-shader-help/2895)

<div class="topic-metadata">

**Author:** [@steve\_j](https://discourse.processing.org/u/steve_j)\
**Replies:** 7\
**Last updated:** [August 29, 2018, 12:57pm UTC](https://discourse.processing.org/t/basic-shader-help/2895 "2018-08-29T12:57:19Z")

</div>

Im currently trying to get my head around shaders. Have tried adapting the the “VideoMappingWithShader” fragment shader from gohai’s GL video Pi library to add a gradient to the video. i get a “OpenGL error 1282 at top …

---

## [Array Index Out of Bounds error on Array List](https://discourse.processing.org/t/array-index-out-of-bounds-error-on-array-list/3006)

<div class="topic-metadata">

**Author:** [@eschulzpsd](https://discourse.processing.org/u/eschulzpsd)\
**Replies:** 10\
**Last updated:** [August 28, 2018, 10:51pm UTC](https://discourse.processing.org/t/array-index-out-of-bounds-error-on-array-list/3006 "2018-08-28T22:51:25Z")

</div>

I’m creating a random item generator from an array list. When I get down to an empty list, I want a ‘gameOver’ function to run, but I get an Array Index Out of Bounds error. I’m wondering if I have a variable issue whe…

---

## [Kinect with Max and Processing](https://discourse.processing.org/t/kinect-with-max-and-processing/3062)

<div class="topic-metadata">

**Author:** [@zoppa](https://discourse.processing.org/u/zoppa)\
**Replies:** 2\
**Last updated:** [August 28, 2018, 9:20pm UTC](https://discourse.processing.org/t/kinect-with-max-and-processing/3062 "2018-08-28T21:20:37Z")

</div>

Hi, I am using Kinect V1 with Synapse for Max and sending the OSC data to Processing. But I am receiving so many glitches that are destroying all the audio sound after 50 seconds of data flow. I am using 512 I/O Vector …

---

## [A question about an exercise in \<Algorithms for Visual Design\>](https://discourse.processing.org/t/a-question-about-an-exercise-in-algorithms-for-visual-design/3040)

<div class="topic-metadata">

**Author:** [@Xinquan](https://discourse.processing.org/u/Xinquan)\
**Replies:** 8\
**Last updated:** [August 28, 2018, 6:09pm UTC](https://discourse.processing.org/t/a-question-about-an-exercise-in-algorithms-for-visual-design/3040 "2018-08-28T18:09:17Z")

</div>

Currently I am reading the book by Kostas Terzidis. I meet a question doing the exercise1-9 9. Write the shortest possible procedural code that can generate the following number pattern using only standard arithmetic …

---

## [What does get() return?](https://discourse.processing.org/t/what-does-get-return/3069)

<div class="topic-metadata">

**Author:** [@malaJ0](https://discourse.processing.org/u/malaJ0)\
**Replies:** 2\
**Last updated:** [August 28, 2018, 5:14pm UTC](https://discourse.processing.org/t/what-does-get-return/3069 "2018-08-28T17:14:17Z")

</div>

Hey everyone, I’m trying to figure out what does get() return when you use it with 4 arguments - as referred to at processing References. Does it return a matrix of w\*h dimension, while x and y is the position of the t…

---

## [JOptionPane and Strings](https://discourse.processing.org/t/joptionpane-and-strings/3049)

<div class="topic-metadata">

**Author:** [@pcoderbasic](https://discourse.processing.org/u/pcoderbasic)\
**Replies:** 2\
**Last updated:** [August 28, 2018, 10:16am UTC](https://discourse.processing.org/t/joptionpane-and-strings/3049 "2018-08-28T10:16:42Z")

</div>

Hi, where can i get some sort of reference for fetching some strings via JOptionPane and then later displaying them on console

---

## [Unable to save point cloud 3d data video](https://discourse.processing.org/t/unable-to-save-point-cloud-3d-data-video/3024)

<div class="topic-metadata">

**Author:** [@vivekbarsaiyan](https://discourse.processing.org/u/vivekbarsaiyan)\
**Replies:** 3\
**Last updated:** [August 28, 2018, 7:36am UTC](https://discourse.processing.org/t/unable-to-save-point-cloud-3d-data-video/3024 "2018-08-28T07:36:19Z")

</div>

I AM USING LIDAR SENSOR FOR CREATING POINT CLOUD BY INTERFACING WITH ARDUINO UNO BOARD AND PROCESSING I3 SOFTWARE BUT UNABLE TO SAVE THE 3D OUTPUT POINT CLOUD VIDEO DATA. MEAN WHILE I TRIED FOR SAVING EACH POINT CLOUD A…

---

## [How to create a single .exe file?](https://discourse.processing.org/t/how-to-create-a-single-exe-file/3044)

<div class="topic-metadata">

**Author:** [@Kayno](https://discourse.processing.org/u/Kayno)\
**Replies:** 7\
**Last updated:** [August 28, 2018, 1:49am UTC](https://discourse.processing.org/t/how-to-create-a-single-exe-file/3044 "2018-08-28T01:49:43Z")

</div>

Hi, I already know how to export an app, and it would be great if i could create a single .exe file to open it. So i would like to know if it’s possible and how to do it ! :slight\_smile: Thanks in advance ! :+1:

---

## [Exporting files](https://discourse.processing.org/t/exporting-files/3012)

<div class="topic-metadata">

**Author:** [@Groot](https://discourse.processing.org/u/Groot)\
**Replies:** 2\
**Last updated:** [August 27, 2018, 5:47pm UTC](https://discourse.processing.org/t/exporting-files/3012 "2018-08-27T17:47:05Z")

</div>

Hey - when i export the file and save it down. I am unable to email and/or share the file. is there something i am missing? thanks

---

## [Problems with understanding language](https://discourse.processing.org/t/problems-with-understanding-language/3016)

<div class="topic-metadata">

**Author:** [@crab](https://discourse.processing.org/u/crab)\
**Replies:** 4\
**Last updated:** [August 27, 2018, 2:55pm UTC](https://discourse.processing.org/t/problems-with-understanding-language/3016 "2018-08-27T14:55:54Z")

</div>

There is code for the snake game i am trying to recreate, but it fails on line 44 after eating food with ArrayIndexOutOfBoundsException : 1 Can anybody explain why this happens and how can i fix this? (only death by ov…

---

## [Kinect V1 and V2](https://discourse.processing.org/t/kinect-v1-and-v2/3021)

<div class="topic-metadata">

**Author:** [@totovr76](https://discourse.processing.org/u/totovr76)\
**Replies:** 0\
**Last updated:** [August 27, 2018, 12:35pm UTC](https://discourse.processing.org/t/kinect-v1-and-v2/3021 "2018-08-27T12:35:20Z")

</div>

More examples added to execute user detection and skeleton tracking with SimpleOpenNI and Processing 3.4

---

## [ControlP5 background color](https://discourse.processing.org/t/controlp5-background-color/3011)

<div class="topic-metadata">

**Author:** [@Lunkvoul](https://discourse.processing.org/u/Lunkvoul)\
**Replies:** 2\
**Last updated:** [August 27, 2018, 8:01am UTC](https://discourse.processing.org/t/controlp5-background-color/3011 "2018-08-27T08:01:40Z")

</div>

Hi everyone! Is there any option to change cp5 background colour? From Examples: void setup() { size(800, 400); noStroke(); cp5 = new ControlP5(this); cp5.begin(cp5.addBackground("abc")); cp5.addSlide…

---

## [Creating ellipses with different colours and sizes](https://discourse.processing.org/t/creating-ellipses-with-different-colours-and-sizes/2834)

<div class="topic-metadata">

**Author:** [@tomvons](https://discourse.processing.org/u/tomvons)\
**Replies:** 25\
**Last updated:** [August 27, 2018, 7:25am UTC](https://discourse.processing.org/t/creating-ellipses-with-different-colours-and-sizes/2834 "2018-08-27T07:25:52Z")

</div>

Hey there, I’m trying to create something similar to this video: https://www.youtube.com/watch?v=Yy5EcsV1jvk, but much simpler. All I want to do is have my ellipses change colour and size over and over. How do you do thi…

---

## [\[RESOLVED\] A game menu with three levels](https://discourse.processing.org/t/resolved-a-game-menu-with-three-levels/2944)

<div class="topic-metadata">

**Author:** [@blueesky](https://discourse.processing.org/u/blueesky)\
**Replies:** 10\
**Last updated:** [August 26, 2018, 6:09pm UTC](https://discourse.processing.org/t/resolved-a-game-menu-with-three-levels/2944 "2018-08-26T18:09:56Z")

</div>

I’m looking for someone who can help me organize and intervene the code for a school assignment. I have to make a game with three levels + the main menu that contains options to play the full game (three levels of follow…

---

## [Creating a game](https://discourse.processing.org/t/creating-a-game/2948)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 5\
**Last updated:** [August 26, 2018, 4:04pm UTC](https://discourse.processing.org/t/creating-a-game/2948 "2018-08-26T16:04:14Z")

</div>

I need some examples of codes of games. So that i can get an idea how to make a simple game like a character can collect coin and increase score And if touch any object like bomb its life will be deducted. Just some exam…

---

## [Movie objects all change at the same time](https://discourse.processing.org/t/movie-objects-all-change-at-the-same-time/2979)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [August 25, 2018, 11:13pm UTC](https://discourse.processing.org/t/movie-objects-all-change-at-the-same-time/2979 "2018-08-25T23:13:18Z")

</div>

Hello Processors, thank you for your time. I made this object using a Movie object where two videos float up and stay in the top. It works but I also typed a function for each of them to change color when I click on them…

---

## [Video does not show up when object oriented code runs](https://discourse.processing.org/t/video-does-not-show-up-when-object-oriented-code-runs/2976)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [August 25, 2018, 11:09pm UTC](https://discourse.processing.org/t/video-does-not-show-up-when-object-oriented-code-runs/2976 "2018-08-25T23:09:09Z")

</div>

Hello Processors, thank you for your time. I made an object using another object called Movie, so that two videos appear floating upwards and stay in the top. The code runs but only the white background appears. import …

---

## [Image to text (Tess4J?)](https://discourse.processing.org/t/image-to-text-tess4j/2957)

<div class="topic-metadata">

**Author:** [@MTech](https://discourse.processing.org/u/MTech)\
**Replies:** 18\
**Last updated:** [August 25, 2018, 9:06pm UTC](https://discourse.processing.org/t/image-to-text-tess4j/2957 "2018-08-25T21:06:58Z")

</div>

Hey all, So the past few hours i’ve been desperately trying to get some form of ‘image-to-text’ working in processing 3. I’ve browsed and read alot of things for java, and i think it should be possible to get something …

---

## [Move the character by pressing up key](https://discourse.processing.org/t/move-the-character-by-pressing-up-key/2475)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 10\
**Last updated:** [August 25, 2018, 6:42pm UTC](https://discourse.processing.org/t/move-the-character-by-pressing-up-key/2475 "2018-08-25T18:42:53Z")

</div>

When keyboard arrow key UP is press, character should move up to the next upper section. Each time character is more up on level, this level will be coloured differently. Please somebody help me to code this.

---

## [Random boxes and circles using array(s)](https://discourse.processing.org/t/random-boxes-and-circles-using-array-s/2939)

<div class="topic-metadata">

**Author:** [@suptoabha](https://discourse.processing.org/u/suptoabha)\
**Replies:** 4\
**Last updated:** [August 25, 2018, 6:40pm UTC](https://discourse.processing.org/t/random-boxes-and-circles-using-array-s/2939 "2018-08-25T18:40:12Z")

</div>

I am trying to make something like this. My code is here int x; int y=226; boolean play = true; void setup() { size(800, 400); background(0); } void draw() { cave(); stone(); clumsy(); bomb(); coin…

---

## [While loop bug? Stuck on empty](https://discourse.processing.org/t/while-loop-bug-stuck-on-empty/2557)

<div class="topic-metadata">

**Author:** [@iamtomodea](https://discourse.processing.org/u/iamtomodea)\
**Replies:** 19\
**Last updated:** [August 13, 2018, 10:41am UTC](https://discourse.processing.org/t/while-loop-bug-stuck-on-empty/2557 "2018-08-13T10:41:05Z")

</div>

Hi I have a weird bug in a sketch that I’m using to control a plotter. I have a while loop that is controlled by a boolean that is switched to false while the plotter is in the middle of doing something. Once the plott…

---

## [Tint mp4 when clicked](https://discourse.processing.org/t/tint-mp4-when-clicked/2937)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 4\
**Last updated:** [August 25, 2018, 5:40am UTC](https://discourse.processing.org/t/tint-mp4-when-clicked/2937 "2018-08-25T05:40:49Z")

</div>

Hello Processors, thank you for your time. I have a loop that changes the size of mp4’s (images), using the key “s” I stop the loop and restart it with key “p”. I want to click on any of the images and randomly tint. I t…

---

## [Frame differencing with Kinect and opencv](https://discourse.processing.org/t/frame-differencing-with-kinect-and-opencv/2919)

<div class="topic-metadata">

**Author:** [@raya](https://discourse.processing.org/u/raya)\
**Replies:** 1\
**Last updated:** [August 24, 2018, 9:37pm UTC](https://discourse.processing.org/t/frame-differencing-with-kinect-and-opencv/2919 "2018-08-24T21:37:55Z")

</div>

Hi, Is there any way to do frame differencing with openCV and/or the depth data of Kinect to detect interaction in a scene? In the scene there are no skeletons, just a table with some objects on it and I need to detect…

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

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