# Processing

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

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

**Page:** 289

---

## [Proscene mouse postion projection from screen to scene's plane](https://discourse.processing.org/t/proscene-mouse-postion-projection-from-screen-to-scenes-plane/12278)

<div class="topic-metadata">

**Author:** [@Ivan](https://discourse.processing.org/u/Ivan)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 12:46am UTC](https://discourse.processing.org/t/proscene-mouse-postion-projection-from-screen-to-scenes-plane/12278 "2019-06-25T00:46:07Z")

</div>

Hello! Usually, for zooming and panning I’m using gicentreUtils library which is great but still has an issue - small additional zooming is added at the end of the corresponding mouse gesture (SHIFT+mouseDrag). Therefo…

---

## [Array input field](https://discourse.processing.org/t/array-input-field/12266)

<div class="topic-metadata">

**Author:** [@FlameOfPhoenix](https://discourse.processing.org/u/FlameOfPhoenix)\
**Replies:** 2\
**Last updated:** [June 24, 2019, 11:10pm UTC](https://discourse.processing.org/t/array-input-field/12266 "2019-06-24T23:10:24Z")

</div>

I have a question about input fields(I’m using the ones from controlp5) and was asking myself if you can have it so, that every entry in that field are integers and also added to an array. Thank you for your help Edit: …

---

## [PImage garbage not being properly collected](https://discourse.processing.org/t/pimage-garbage-not-being-properly-collected/12252)

<div class="topic-metadata">

**Author:** [@n055](https://discourse.processing.org/u/n055)\
**Replies:** 8\
**Last updated:** [June 24, 2019, 5:48pm UTC](https://discourse.processing.org/t/pimage-garbage-not-being-properly-collected/12252 "2019-06-24T17:48:11Z")

</div>

Howdy. I’m making a display intended to be constantly running on a TV as a sort of information Plaque. I utilize PImage objects as I have a folder of pictures I wish to display as a slideshow, and I am aware that those …

---

## [Float 2D Array Data Limit](https://discourse.processing.org/t/float-2d-array-data-limit/12189)

<div class="topic-metadata">

**Author:** [@SmallSalamander](https://discourse.processing.org/u/SmallSalamander)\
**Replies:** 11\
**Last updated:** [June 23, 2019, 10:41pm UTC](https://discourse.processing.org/t/float-2d-array-data-limit/12189 "2019-06-23T22:41:20Z")

</div>

I have a problem with my code where I added 2.25 million numbers to a float 2D array, and depending on the computer the program either does not run or gives a string of errors. I was wondering if there is a way to either…

---

## [Unknown class through a function](https://discourse.processing.org/t/unknown-class-through-a-function/12236)

<div class="topic-metadata">

**Author:** [@FlyingApple](https://discourse.processing.org/u/FlyingApple)\
**Replies:** 2\
**Last updated:** [June 23, 2019, 9:40pm UTC](https://discourse.processing.org/t/unknown-class-through-a-function/12236 "2019-06-23T21:40:03Z")

</div>

void collision(Player player) { for (Wall wall : walls) { //find collision between player and wall, if they collide, stop player movement Is it possible for the example above to have an unknown class passed throu…

---

## [Using shape() in P2D can throw OutOfMemory and ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/using-shape-in-p2d-can-throw-outofmemory-and-arrayindexoutofboundsexception/12242)

<div class="topic-metadata">

**Author:** [@macbrayne](https://discourse.processing.org/u/macbrayne)\
**Replies:** 6\
**Last updated:** [June 23, 2019, 4:50pm UTC](https://discourse.processing.org/t/using-shape-in-p2d-can-throw-outofmemory-and-arrayindexoutofboundsexception/12242 "2019-06-23T16:50:30Z")

</div>

Hello! When trying to display a specific svg using shape the P2D renderer spits out a OutOfMemory error. I think this might be a bug. java.lang.ArrayIndexOutOfBoundsException: 200 at jogamp.opengl.glu.tessellator.Prio…

---

## [What's wrong with this code? HELP I want to code to like the picture I've added of](https://discourse.processing.org/t/whats-wrong-with-this-code-help-i-want-to-code-to-like-the-picture-ive-added-of/12249)

<div class="topic-metadata">

**Author:** [@henry](https://discourse.processing.org/u/henry)\
**Replies:** 4\
**Last updated:** [June 23, 2019, 11:28am UTC](https://discourse.processing.org/t/whats-wrong-with-this-code-help-i-want-to-code-to-like-the-picture-ive-added-of/12249 "2019-06-23T11:28:54Z")

</div>

size(300, 300); int\[\]data={50, 100, 30, 120, 40, 70, 150}; int max=data\[0\]; int min=data\[0\]; for (int i=0; i\<data.length; i++) { fill(255); rect(10+15\*i, 10, 10, data\[i\]); if(max\<data\[i\]) { max=data\[i\]; …

---

## [This is odd mapping problem](https://discourse.processing.org/t/this-is-odd-mapping-problem/11767)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 4\
**Last updated:** [June 23, 2019, 2:13am UTC](https://discourse.processing.org/t/this-is-odd-mapping-problem/11767 "2019-06-23T02:13:01Z")

</div>

I’ve been playing with navigational star charts, photo maps, star databases, processing for about a year now. With lots of help, I’ve learned how to project an image onto a sphere/globe and plot points onto the image. …

---

## [Convert double to bytes](https://discourse.processing.org/t/convert-double-to-bytes/12154)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.processing.org/u/x13420x)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 11:36pm UTC](https://discourse.processing.org/t/convert-double-to-bytes/12154 "2019-06-22T23:36:38Z")

</div>

I need to convert a single array of doubles to 8 arrays of bytes to save…but not sure this is possible…currently I am converting to float then to str…to save as txt…but there is some loss with this…I would prefer to pres…

---

## [Serial.list() hangs if 32bit export is run under 64bit Windows](https://discourse.processing.org/t/serial-list-hangs-if-32bit-export-is-run-under-64bit-windows/12231)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 5\
**Last updated:** [June 22, 2019, 9:58pm UTC](https://discourse.processing.org/t/serial-list-hangs-if-32bit-export-is-run-under-64bit-windows/12231 "2019-06-22T21:58:11Z")

</div>

Serial.list() hangs in exported apps if the exported 32bit version is started unter 64bit Windows (the exported 64bit version works under 64bit Windows). Is there any way to fix this on my side, short of distributing tw…

---

## [Please help me TT](https://discourse.processing.org/t/please-help-me-tt/12098)

<div class="topic-metadata">

**Author:** [@apple](https://discourse.processing.org/u/apple)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 5:02pm UTC](https://discourse.processing.org/t/please-help-me-tt/12098 "2019-06-22T17:02:32Z")

</div>

String a = "1,235,345,234,123,234,345.\\n"; //channel(0,1,2),value,value,value,value,value,value.\\n String\[\] temp = split(a,','); String CH = temp\[0\].replace("\\n",""); //int value1 = int(temp\[1\]); //int value2 = int(tem…

---

## [saveFrame not advancing frame count](https://discourse.processing.org/t/saveframe-not-advancing-frame-count/12060)

<div class="topic-metadata">

**Author:** [@PixelMx](https://discourse.processing.org/u/PixelMx)\
**Replies:** 6\
**Last updated:** [June 22, 2019, 4:49pm UTC](https://discourse.processing.org/t/saveframe-not-advancing-frame-count/12060 "2019-06-22T16:49:02Z")

</div>

Good morning. My processing has been acting up. First, it didn’t follow the size command and was creating sketches at 4K no matter what. I fixed this by opening an older version of Processing and running the sketch, then…

---

## [Screen capturer](https://discourse.processing.org/t/screen-capturer/12059)

<div class="topic-metadata">

**Author:** [@samolet4e](https://discourse.processing.org/u/samolet4e)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 2:57pm UTC](https://discourse.processing.org/t/screen-capturer/12059 "2019-06-22T14:57:16Z")

</div>

Hello. I would like to discuss an issue related to a screen capturing program. The following code is capable of screen recording and overlaying the mouse cursor: import java.awt.Robot; import java.awt.image.BufferedImag…

---

## [Gray or blank screen when export :(](https://discourse.processing.org/t/gray-or-blank-screen-when-export/12163)

<div class="topic-metadata">

**Author:** [@Pan](https://discourse.processing.org/u/Pan)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 1:03pm UTC](https://discourse.processing.org/t/gray-or-blank-screen-when-export/12163 "2019-06-22T13:03:49Z")

</div>

Hi, when i export my sketch the result is a gray or blank screen but when i am processing the sketch, this works, can someone help me please? Thank you for reading. I am using Windows 8 with 64 bits and Processing 3.5.…

---

## [Beginner (I assume?) Question: How do I make words appear onscreen](https://discourse.processing.org/t/beginner-i-assume-question-how-do-i-make-words-appear-onscreen/12172)

<div class="topic-metadata">

**Author:** [@joshshaman13](https://discourse.processing.org/u/joshshaman13)\
**Replies:** 2\
**Last updated:** [June 22, 2019, 12:59pm UTC](https://discourse.processing.org/t/beginner-i-assume-question-how-do-i-make-words-appear-onscreen/12172 "2019-06-22T12:59:09Z")

</div>

Hey guys, I’m trying to make text appear in a sketch when I touch ‘X’ value on my MPR121 TouchBoard. The problem is I’m not very familiar with Processing, so I was wondering how I might go about this. I feel like most of…

---

## [Problems with background in draw();](https://discourse.processing.org/t/problems-with-background-in-draw/12218)

<div class="topic-metadata">

**Author:** [@wordcounter](https://discourse.processing.org/u/wordcounter)\
**Replies:** 3\
**Last updated:** [June 22, 2019, 10:35am UTC](https://discourse.processing.org/t/problems-with-background-in-draw/12218 "2019-06-22T10:35:07Z")

</div>

Hello! I’m new to processing and I’m having some background issues. I’m working on a data visualization of word frequency in a text, shown through a bar graph. For the example code I replaced my text with a sequence of…

---

## [How to draw a Binary Tree?](https://discourse.processing.org/t/how-to-draw-a-binary-tree/12195)

<div class="topic-metadata">

**Author:** [@demsp](https://discourse.processing.org/u/demsp)\
**Replies:** 6\
**Last updated:** [June 21, 2019, 9:20pm UTC](https://discourse.processing.org/t/how-to-draw-a-binary-tree/12195 "2019-06-21T21:20:11Z")

</div>

This is an example of “Tree in Java”. Can i modify the Node\* class so that to draw the node like so class Node { int value; int x; // add x-coord int y; // add y-coord Node left; Node right; Node(int value, int x…

---

## [Retrieve data from google spreadsheet](https://discourse.processing.org/t/retrieve-data-from-google-spreadsheet/12230)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 8:21pm UTC](https://discourse.processing.org/t/retrieve-data-from-google-spreadsheet/12230 "2019-06-21T20:21:25Z")

</div>

Hi, I need to retrieve some data from google spreadsheet but i don’t know how i can get access to it

---

## [\[SOLVED\] PImage\[\] array inside class shows all images at once](https://discourse.processing.org/t/solved-pimage-array-inside-class-shows-all-images-at-once/12190)

<div class="topic-metadata">

**Author:** [@RealDwayneJ](https://discourse.processing.org/u/RealDwayneJ)\
**Replies:** 14\
**Last updated:** [June 21, 2019, 7:44pm UTC](https://discourse.processing.org/t/solved-pimage-array-inside-class-shows-all-images-at-once/12190 "2019-06-21T19:44:12Z")

</div>

Please note that this is just a portion of the full code. I made sure to isolate this portion only, with all its problems included. What it’s supposed to do: So, in the full code I have a program where you can hit a ce…

---

## [Array.length error](https://discourse.processing.org/t/array-length-error/12217)

<div class="topic-metadata">

**Author:** [@FlyingApple](https://discourse.processing.org/u/FlyingApple)\
**Replies:** 6\
**Last updated:** [June 21, 2019, 12:27pm UTC](https://discourse.processing.org/t/array-length-error/12217 "2019-06-21T12:27:45Z")

</div>

Whenever I do the array.length function I get the error "The global variable “length” does not exist. for (int i = 0; i \< walls.length; i++) { Wall wall = walls.get(i); wall.show(); } walls is an array of the…

---

## [Clip() flickering](https://discourse.processing.org/t/clip-flickering/12227)

<div class="topic-metadata">

**Author:** [@lsk](https://discourse.processing.org/u/lsk)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 11:08am UTC](https://discourse.processing.org/t/clip-flickering/12227 "2019-06-21T11:08:57Z")

</div>

I want to create an effect, where I have 2 source images which are copied onto a destination image made up of n tiles and then slide the tiles to reveal the other image. The way I want to achieve this is by copying a ti…

---

## [Getting started with contribution: How to build from source?](https://discourse.processing.org/t/getting-started-with-contribution-how-to-build-from-source/3226)

<div class="topic-metadata">

**Author:** [@svr8](https://discourse.processing.org/u/svr8)\
**Replies:** 19\
**Last updated:** [June 21, 2019, 8:06am UTC](https://discourse.processing.org/t/getting-started-with-contribution-how-to-build-from-source/3226 "2019-06-21T08:06:36Z")

</div>

Hey! I want to build/run the source files given here: https://github.com/processing/processing. However, the github wiki page seems to be under development: https://github.com/processing/processing/wiki/Build-Instructio…

---

## [Threadsafe offscreen drawing?](https://discourse.processing.org/t/threadsafe-offscreen-drawing/12220)

<div class="topic-metadata">

**Author:** [@Rolf](https://discourse.processing.org/u/Rolf)\
**Replies:** 3\
**Last updated:** [June 21, 2019, 6:58am UTC](https://discourse.processing.org/t/threadsafe-offscreen-drawing/12220 "2019-06-21T06:58:36Z")

</div>

Here’s the idea I want to draw to a huge offscreen buffer usig thread(). Then I want to display the progress in the main window, in a scaled down size. Does not work, it displays the scaled down image, but only once t…

---

## [Trouble with if statments](https://discourse.processing.org/t/trouble-with-if-statments/12210)

<div class="topic-metadata">

**Author:** [@Asterioapo](https://discourse.processing.org/u/Asterioapo)\
**Replies:** 2\
**Last updated:** [June 20, 2019, 11:55pm UTC](https://discourse.processing.org/t/trouble-with-if-statments/12210 "2019-06-20T23:55:43Z")

</div>

Quite new to Processing and am trying to create a sort of create a character program where you chose options for them. I can get the options to cycle but am struggling to figure out the code to use so that if i press a k…

---

## [Rotating an image in the direction of the mouse](https://discourse.processing.org/t/rotating-an-image-in-the-direction-of-the-mouse/12211)

<div class="topic-metadata">

**Author:** [@marcholman23](https://discourse.processing.org/u/marcholman23)\
**Replies:** 2\
**Last updated:** [June 20, 2019, 5:33pm UTC](https://discourse.processing.org/t/rotating-an-image-in-the-direction-of-the-mouse/12211 "2019-06-20T17:33:37Z")

</div>

Hi, I would greatly appreciate it if somebody could correct my code. I want to maintain object orientation. The program is intended simply to rotate a car image in the direction of the mouse. class Car { PVector l…

---

## [Real newb having a NullPointerException. Help wanted](https://discourse.processing.org/t/real-newb-having-a-nullpointerexception-help-wanted/12206)

<div class="topic-metadata">

**Author:** [@MNeumann](https://discourse.processing.org/u/MNeumann)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 3:26pm UTC](https://discourse.processing.org/t/real-newb-having-a-nullpointerexception-help-wanted/12206 "2019-06-20T15:26:45Z")

</div>

As the title suggests, I’m real new to Processing (read: Two weeks in), and I’m having a NullPointerException when trying to do make a maze game for a final project. The issue is occuring on line 216 if(potentialxpos \> …

---

## [Receiving MIDI from Ableton but can't visualise it](https://discourse.processing.org/t/receiving-midi-from-ableton-but-cant-visualise-it/12204)

<div class="topic-metadata">

**Author:** [@Michalis](https://discourse.processing.org/u/Michalis)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 2:30pm UTC](https://discourse.processing.org/t/receiving-midi-from-ableton-but-cant-visualise-it/12204 "2019-06-20T14:30:47Z")

</div>

Hello, I’m having trouble using the MIDI data I receive using The MidiBus. The problem is that I can’t use the data I receive; in example to create a shape. All I’m getting is a square displayed only 1 time and that’s a…

---

## [How can i move the right rectangle using the up and down keys](https://discourse.processing.org/t/how-can-i-move-the-right-rectangle-using-the-up-and-down-keys/12201)

<div class="topic-metadata">

**Author:** [@joey\_2002](https://discourse.processing.org/u/joey_2002)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 12:12pm UTC](https://discourse.processing.org/t/how-can-i-move-the-right-rectangle-using-the-up-and-down-keys/12201 "2019-06-20T12:12:37Z")

</div>

i’ve started like two days ago and i cant figure out how top move things using the keys. this is what i got so far a bit messy but it works. int x = 320; int y = 240; int dx = +10; int dy = -5; int rx = 600; int …

---

## [Set a path to different data folder](https://discourse.processing.org/t/set-a-path-to-different-data-folder/12021)

<div class="topic-metadata">

**Author:** [@OptOut](https://discourse.processing.org/u/OptOut)\
**Replies:** 3\
**Last updated:** [June 20, 2019, 10:20am UTC](https://discourse.processing.org/t/set-a-path-to-different-data-folder/12021 "2019-06-20T10:20:49Z")

</div>

Hi everybody, I have two different sets of images that I need to keep separate. I have one set of images in the regular data folder. I am selecting these images by putting them in an array PImage\[\] images = new PImage\[…

---

## [Calling selectFolder() using Thread()](https://discourse.processing.org/t/calling-selectfolder-using-thread/12177)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 5\
**Last updated:** [June 20, 2019, 1:37am UTC](https://discourse.processing.org/t/calling-selectfolder-using-thread/12177 "2019-06-20T01:37:34Z")

</div>

Hi, I’m getting data (approx 200,000 data points) I have generated from a text file, when the selectFolder method fires the callback and runs my method to process it, the program is of course locked into this course of …

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

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