# Processing

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

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

**Page:** 324

---

## [FX2D mouseWheel don't work](https://discourse.processing.org/t/fx2d-mousewheel-dont-work/8263)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 1:19pm UTC](https://discourse.processing.org/t/fx2d-mousewheel-dont-work/8263 "2019-02-10T13:19:14Z")

</div>

Hi, today I find this strange behavior: when in the comand size() I set the render mode FX2D the function mouseWheel don’t recognize the count of wheel. This Example Work fine void setup() { size(100, 100); // basic …

---

## [Help with random map generator](https://discourse.processing.org/t/help-with-random-map-generator/8259)

<div class="topic-metadata">

**Author:** [@velosarahptor](https://discourse.processing.org/u/velosarahptor)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 9:32am UTC](https://discourse.processing.org/t/help-with-random-map-generator/8259 "2019-02-10T09:32:03Z")

</div>

This is my first time using processing, and I’m creating a project for a class. I want to make a random map generator using 100x100 pixel image tiles. The idea is that the tiles are placed in random spots when certain ke…

---

## [Which JDK Version to build libraries with Eclipse](https://discourse.processing.org/t/which-jdk-version-to-build-libraries-with-eclipse/8193)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 12:06am UTC](https://discourse.processing.org/t/which-jdk-version-to-build-libraries-with-eclipse/8193 "2019-02-10T00:06:16Z")

</div>

Hi, which JDK version do I need to build my own libs using Eclipse on Windows 10. Thanks f41ardu

---

## [Why does obXX\[0\] below in openprocessing not cause an error?](https://discourse.processing.org/t/why-does-obxx-0-below-in-openprocessing-not-cause-an-error/8197)

<div class="topic-metadata">

**Author:** [@chrisjj](https://discourse.processing.org/u/chrisjj)\
**Replies:** 1\
**Last updated:** [February 9, 2019, 10:53pm UTC](https://discourse.processing.org/t/why-does-obxx-0-below-in-openprocessing-not-cause-an-error/8197 "2019-02-09T22:53:48Z")

</div>

Run this void setup(){ all = new obXX\[0\]; } here in Chrome. Expected: Error. Observed: No error. Why? PS all = new obXX; gives a ReferenceError as expected.

---

## [Color in constructor](https://discourse.processing.org/t/color-in-constructor/8254)

<div class="topic-metadata">

**Author:** [@ZAF](https://discourse.processing.org/u/ZAF)\
**Replies:** 6\
**Last updated:** [February 9, 2019, 8:39pm UTC](https://discourse.processing.org/t/color-in-constructor/8254 "2019-02-09T20:39:30Z")

</div>

Hello there. New to programming here, starting off with processing. How do i assign color to a constructor? I tried with a local variable and did not work out well when initializing it in set up with a color code (whet…

---

## [Why do my X/O's not show in my tictactoe game](https://discourse.processing.org/t/why-do-my-x-os-not-show-in-my-tictactoe-game/8244)

<div class="topic-metadata">

**Author:** [@MQXO](https://discourse.processing.org/u/MQXO)\
**Replies:** 5\
**Last updated:** [February 9, 2019, 7:30pm UTC](https://discourse.processing.org/t/why-do-my-x-os-not-show-in-my-tictactoe-game/8244 "2019-02-09T19:30:01Z")

</div>

hi, I was working on updating my code for my tictactoe, I’m only a beginner and thought this would be a good place to start, the game used to work, but when I added the minim library and set up a song to play in the back…

---

## [Add an ArrayList to another ArrayList](https://discourse.processing.org/t/add-an-arraylist-to-another-arraylist/8187)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 24\
**Last updated:** [February 9, 2019, 6:33pm UTC](https://discourse.processing.org/t/add-an-arraylist-to-another-arraylist/8187 "2019-02-09T18:33:39Z")

</div>

Hi, i have 2 almost identical classes of objects (the color change) they have the same action : a random position without overlapping. Its work, but now i wonder how do i manage to place every objects with a random posi…

---

## [Kinect v2 library](https://discourse.processing.org/t/kinect-v2-library/8224)

<div class="topic-metadata">

**Author:** [@Patrick](https://discourse.processing.org/u/Patrick)\
**Replies:** 1\
**Last updated:** [February 9, 2019, 4:05am UTC](https://discourse.processing.org/t/kinect-v2-library/8224 "2019-02-09T04:05:55Z")

</div>

Hi i have being trying to do the tutorial Getting Started with Kinect and Processing with the Kinect v2 but when i try and find library kinect v2 as in the video it does not come up can any 1 shed light on y

---

## [Processing (3.5) with kinectV2 on depth value](https://discourse.processing.org/t/processing-3-5-with-kinectv2-on-depth-value/8230)

<div class="topic-metadata">

**Author:** [@zznwsuaf](https://discourse.processing.org/u/zznwsuaf)\
**Replies:** 1\
**Last updated:** [February 9, 2019, 3:46am UTC](https://discourse.processing.org/t/processing-3-5-with-kinectv2-on-depth-value/8230 "2019-02-09T03:46:21Z")

</div>

Hello, I am working on using Processing 3.0 to get depth value of KinectV2 sensor. The data can show in the Console, but I just do not know how to save the depth data into a csv or txt file (preferred csv). Can someone …

---

## [Processing wont launch](https://discourse.processing.org/t/processing-wont-launch/8226)

<div class="topic-metadata">

**Author:** [@jamcdonald](https://discourse.processing.org/u/jamcdonald)\
**Replies:** 0\
**Last updated:** [February 8, 2019, 8:39pm UTC](https://discourse.processing.org/t/processing-wont-launch/8226 "2019-02-08T20:39:44Z")

</div>

When I click on processing.exe the loading screen starts, and then disappears without launching the IDE. It generates the following error file # # A fatal error has been detected by the Java Runtime Environment: # # E…

---

## [Broadcast from macosx to windows](https://discourse.processing.org/t/broadcast-from-macosx-to-windows/8198)

<div class="topic-metadata">

**Author:** [@litiec](https://discourse.processing.org/u/litiec)\
**Replies:** 5\
**Last updated:** [February 8, 2019, 8:03pm UTC](https://discourse.processing.org/t/broadcast-from-macosx-to-windows/8198 "2019-02-08T20:03:17Z")

</div>

Hello Everyone I am developing an application where I am using the oscP5 library. I want to set a server from my computer (macosx) and I want other computers to connect to my server. Since the ip address is constantly c…

---

## [Rotate lines in the middle of the square](https://discourse.processing.org/t/rotate-lines-in-the-middle-of-the-square/8215)

<div class="topic-metadata">

**Author:** [@ClashAdam](https://discourse.processing.org/u/ClashAdam)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 4:43pm UTC](https://discourse.processing.org/t/rotate-lines-in-the-middle-of-the-square/8215 "2019-02-08T16:43:28Z")

</div>

Can some1 help me please? I want to make these lines in the middle of the square rotating but i actually can’t. I tried…again…some processing coding, and…unfortunately…it showed me rotate error. thx for help float angle…

---

## [PImage.resize() does not resize to specified width](https://discourse.processing.org/t/pimage-resize-does-not-resize-to-specified-width/8217)

<div class="topic-metadata">

**Author:** [@Lucca](https://discourse.processing.org/u/Lucca)\
**Replies:** 2\
**Last updated:** [February 8, 2019, 3:45pm UTC](https://discourse.processing.org/t/pimage-resize-does-not-resize-to-specified-width/8217 "2019-02-08T15:45:38Z")

</div>

Hey fellow Processors, I am trying to crop a PImage and then resize it to its original width. Essentially, I am trying to get rid of the black border on the left side of the PImage: Unfortunately, if I use PImage.ge…

---

## [Minim On RPI FilePlayer only can load 6 wav files](https://discourse.processing.org/t/minim-on-rpi-fileplayer-only-can-load-6-wav-files/8189)

<div class="topic-metadata">

**Author:** [@makerinchief](https://discourse.processing.org/u/makerinchief)\
**Replies:** 6\
**Last updated:** [February 8, 2019, 3:40pm UTC](https://discourse.processing.org/t/minim-on-rpi-fileplayer-only-can-load-6-wav-files/8189 "2019-02-08T15:40:21Z")

</div>

I’m writing code for an arcade game which involves taking in sensor input and playing sound during certain stages of the game. I’m using the Minim library to handle all of the sound. I’ve run into an issue when trying t…

---

## [Way to organize many tabs?](https://discourse.processing.org/t/way-to-organize-many-tabs/8202)

<div class="topic-metadata">

**Author:** [@Mira](https://discourse.processing.org/u/Mira)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 5:11am UTC](https://discourse.processing.org/t/way-to-organize-many-tabs/8202 "2019-02-08T05:11:15Z")

</div>

In a coding project that I’m working on, I have a need for having many tabs to stay organized. However, I already have 17 different tabs with a need for more. If I have too many, I’m sure that it will become a hassle to …

---

## [How does Serial.readString() manage the serial buffer?](https://discourse.processing.org/t/how-does-serial-readstring-manage-the-serial-buffer/8206)

<div class="topic-metadata">

**Author:** [@Wangmaster](https://discourse.processing.org/u/Wangmaster)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 4:11am UTC](https://discourse.processing.org/t/how-does-serial-readstring-manage-the-serial-buffer/8206 "2019-02-08T04:11:32Z")

</div>

I want to use Processing to read serial data from my Arduino, but first i want to understand how it interacts with the serial buffer. According to the documentation, Serial.readString() returns all information in the se…

---

## [PVector: setting force of vector to something](https://discourse.processing.org/t/pvector-setting-force-of-vector-to-something/7481)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 9\
**Last updated:** [February 7, 2019, 9:53pm UTC](https://discourse.processing.org/t/pvector-setting-force-of-vector-to-something/7481 "2019-02-07T21:53:33Z")

</div>

Recently 3Blue1Brown posted vid: calculating PI with physics, and i wanted to recreate it in processing. I know it would be inacurate representation of it, but i want to challenge myself. So, how can i se…

---

## [Getting the depth image from a Real Sense camera](https://discourse.processing.org/t/getting-the-depth-image-from-a-real-sense-camera/7456)

<div class="topic-metadata">

**Author:** [@Lucca](https://discourse.processing.org/u/Lucca)\
**Replies:** 7\
**Last updated:** [February 7, 2019, 4:29pm UTC](https://discourse.processing.org/t/getting-the-depth-image-from-a-real-sense-camera/7456 "2019-02-07T16:29:37Z")

</div>

Hi @cansik I am trying to use your Java wrapper to get a depth image from a Real Sense D435, but I get a NullPointerException when the context is created in line 63 of RealSenseCamera.pde. Any ideas? this.context = Con…

---

## [Timeout occured while waiting for packet n, IDE freezes](https://discourse.processing.org/t/timeout-occured-while-waiting-for-packet-n-ide-freezes/8188)

<div class="topic-metadata">

**Author:** [@kesson](https://discourse.processing.org/u/kesson)\
**Replies:** 1\
**Last updated:** [February 7, 2019, 3:18pm UTC](https://discourse.processing.org/t/timeout-occured-while-waiting-for-packet-n-ide-freezes/8188 "2019-02-07T15:18:01Z")

</div>

Hi all, Lately I am receiving quite often several errors in Processing IDE when I try to run a sketch. The error is Timeout occured while waiting for packet (random number) Not sure what can cause it, but this probl…

---

## [Cartesian to Spherical coordinates conversion issue](https://discourse.processing.org/t/cartesian-to-spherical-coordinates-conversion-issue/8174)

<div class="topic-metadata">

**Author:** [@kesson](https://discourse.processing.org/u/kesson)\
**Replies:** 2\
**Last updated:** [February 7, 2019, 11:02am UTC](https://discourse.processing.org/t/cartesian-to-spherical-coordinates-conversion-issue/8174 "2019-02-07T11:02:43Z")

</div>

Hi everyone, I am trying to convert the cartesian coordinates a PVector in 3D space, with coordinates (x, y, z) in spherical coordinates (so obtaining radius, theta and phi). Below is the code I am testing, rarely it “…

---

## [Sound Input Considerable latency](https://discourse.processing.org/t/sound-input-considerable-latency/7770)

<div class="topic-metadata">

**Author:** [@n055](https://discourse.processing.org/u/n055)\
**Replies:** 10\
**Last updated:** [February 7, 2019, 9:45am UTC](https://discourse.processing.org/t/sound-input-considerable-latency/7770 "2019-02-07T09:45:51Z")

</div>

Hi, Im using the Sound library in processing (I think it comes form the Jsyn source?) anyways,I’m using it to make an audio visualizer to be used in a live music set. Currently everything is working properly with peak am…

---

## [Loops in shader](https://discourse.processing.org/t/loops-in-shader/8176)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 3\
**Last updated:** [February 7, 2019, 7:05am UTC](https://discourse.processing.org/t/loops-in-shader/8176 "2019-02-07T07:05:00Z")

</div>

Hi !m trying to fix this shader. the effects is a radial blur around a point position, passing from the cpu in a array. The calculations works fine for each point and generates de effect, but as you can see in this pictu…

---

## [Export sketch to jar](https://discourse.processing.org/t/export-sketch-to-jar/8147)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 4\
**Last updated:** [February 7, 2019, 12:30am UTC](https://discourse.processing.org/t/export-sketch-to-jar/8147 "2019-02-07T00:30:14Z")

</div>

Is it possible to export a processing sketch as a jar, or to turn the exported files into an executable jar? I tried following the instructions here https://forum.processing.org/one/topic/getting-processing-to-export-as-…

---

## [PGraphics P2D background in setup issue](https://discourse.processing.org/t/pgraphics-p2d-background-in-setup-issue/8112)

<div class="topic-metadata">

**Author:** [@wqt](https://discourse.processing.org/u/wqt)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 8:04pm UTC](https://discourse.processing.org/t/pgraphics-p2d-background-in-setup-issue/8112 "2019-02-06T20:04:40Z")

</div>

Hi there. I am using a PGraphics as a mask, the PGraphics’s background is set in the setup section so that my mask is not erased every frame. Somehow that works fine with the default renderer, but not in P2D, there is …

---

## [Default argument like c++](https://discourse.processing.org/t/default-argument-like-c/8131)

<div class="topic-metadata">

**Author:** [@diazdaiz](https://discourse.processing.org/u/diazdaiz)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 7:42pm UTC](https://discourse.processing.org/t/default-argument-like-c/8131 "2019-02-06T19:42:27Z")

</div>

is there a way so i can write default argument in processing like c++? in c++, for example: void test(a=100) { … //some function that print value of a } so, when we call the function of test, if we dont passed val…

---

## [Pong game help me](https://discourse.processing.org/t/pong-game-help-me/7499)

<div class="topic-metadata">

**Author:** [@VLAD](https://discourse.processing.org/u/VLAD)\
**Replies:** 4\
**Last updated:** [February 6, 2019, 6:10pm UTC](https://discourse.processing.org/t/pong-game-help-me/7499 "2019-02-06T18:10:44Z")

</div>

Hello, I have to do a Pong for School but i didnt know how to do it, i’m absolut beginner. Pls help me. I’ve found some code for the game but they didnt have all i want. And I want to understand what happen in the co…

---

## [Processing with Max MSP](https://discourse.processing.org/t/processing-with-max-msp/8081)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 5:09pm UTC](https://discourse.processing.org/t/processing-with-max-msp/8081 "2019-02-06T17:09:19Z")

</div>

Hello. I am trying to link up Processing with Max. I am particularly interested in sending data from Processing into Max. I downloaded a thing called Maxlink 0.36, but its latest version is from 2010. \[http://jklabs.net…

---

## [Help with delay/millis without influencing the framerate](https://discourse.processing.org/t/help-with-delay-millis-without-influencing-the-framerate/8153)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 6\
**Last updated:** [February 6, 2019, 4:45pm UTC](https://discourse.processing.org/t/help-with-delay-millis-without-influencing-the-framerate/8153 "2019-02-06T16:45:07Z")

</div>

Hi i am trying to make some text pop up each letter at a time by using a string while my framerate is at 60 however i can not use delay() because it would influence the framerate. How can i do this without using delay? p…

---

## [Random position without overlapping](https://discourse.processing.org/t/random-position-without-overlapping/7904)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 17\
**Last updated:** [February 6, 2019, 11:48am UTC](https://discourse.processing.org/t/random-position-without-overlapping/7904 "2019-02-06T11:48:51Z")

</div>

Hi i try to find a way to place objects on my world but without overlapping and i cant find a way. here’s my code: public class World2 { PApplet parent; public int worldW = 2000; public int worldH = 2000; Playe…

---

## [Problem with frameRate](https://discourse.processing.org/t/problem-with-framerate/8151)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 4\
**Last updated:** [February 6, 2019, 11:02am UTC](https://discourse.processing.org/t/problem-with-framerate/8151 "2019-02-06T11:02:55Z")

</div>

Hi i am making a game where the framerate has to be 60. However when i write frameRate(60); in void setup and println(frameCount) in draw it seems the frameCount is around 20. It Would be nice to know if there’s anythi…

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

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