# Processing

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

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

**Page:** 364

---

## [Anyone have any Improvements?](https://discourse.processing.org/t/anyone-have-any-improvements/3812)

<div class="topic-metadata">

**Author:** [@Godemperor949](https://discourse.processing.org/u/Godemperor949)\
**Replies:** 12\
**Last updated:** [September 25, 2018, 10:42pm UTC](https://discourse.processing.org/t/anyone-have-any-improvements/3812 "2018-09-25T22:42:13Z")

</div>

//Jeopardy, by Isaiah Johnson. PFont digits;//font Cell\[\] grid; //makes each individual cells int cols; //how many colloms int rows; // how many rows int numA=0;// number of questions answered int p;// the cell that was …

---

## [\[SOLVED\] Importing other Processing classes](https://discourse.processing.org/t/solved-importing-other-processing-classes/3708)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 7\
**Last updated:** [September 25, 2018, 8:46pm UTC](https://discourse.processing.org/t/solved-importing-other-processing-classes/3708 "2018-09-25T20:46:40Z")

</div>

Hello, this question might seem very blatant but I could’t figure it out by googleing and searching the forums. I would like to sort the different classes in subfolders of the project (eg. gui, algorithm) and then impor…

---

## [How can I get center point of each a bunch of red points](https://discourse.processing.org/t/how-can-i-get-center-point-of-each-a-bunch-of-red-points/3823)

<div class="topic-metadata">

**Author:** [@leereset](https://discourse.processing.org/u/leereset)\
**Replies:** 5\
**Last updated:** [September 25, 2018, 8:28pm UTC](https://discourse.processing.org/t/how-can-i-get-center-point-of-each-a-bunch-of-red-points/3823 "2018-09-25T20:28:23Z")

</div>

Hi I’m using processing to make some good project. explanation of project: Detect hand based on depth and draw the circle on each hand. Progress: I can find center but there’s issue. If two bunch of pixels exist, i…

---

## [Frame rate logic in draw -- locating it in the source code](https://discourse.processing.org/t/frame-rate-logic-in-draw-locating-it-in-the-source-code/3840)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 7:02pm UTC](https://discourse.processing.org/t/frame-rate-logic-in-draw-locating-it-in-the-source-code/3840 "2018-09-25T19:02:39Z")

</div>

I am trying to track down the code that Processing uses to change the frameRate() into decisions about when to lag or speed up individual frame start times – including where the default frameRate() goal is stored, how it…

---

## [Stereo output w. Minim](https://discourse.processing.org/t/stereo-output-w-minim/3837)

<div class="topic-metadata">

**Author:** [@jeppius](https://discourse.processing.org/u/jeppius)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 6:12pm UTC](https://discourse.processing.org/t/stereo-output-w-minim/3837 "2018-09-25T18:12:53Z")

</div>

Hi, what would be the general approach to send audio independently to either the Right or the Left channel of an AudioOutput object?

---

## [\[RESOLVED\] Unable to build for mac](https://discourse.processing.org/t/resolved-unable-to-build-for-mac/3756)

<div class="topic-metadata">

**Author:** [@Bunnygamers](https://discourse.processing.org/u/Bunnygamers)\
**Replies:** 4\
**Last updated:** [September 25, 2018, 5:55pm UTC](https://discourse.processing.org/t/resolved-unable-to-build-for-mac/3756 "2018-09-25T17:55:40Z")

</div>

I made a small thing using processing 3.3.7 on Windows 10 (32bit) but I can't seem to build for mac (checkbox for mac is grey), can someone help

---

## [Recursively delete directory](https://discourse.processing.org/t/recursively-delete-directory/3766)

<div class="topic-metadata">

**Author:** [@elaner](https://discourse.processing.org/u/elaner)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 5:41pm UTC](https://discourse.processing.org/t/recursively-delete-directory/3766 "2018-09-25T17:41:33Z")

</div>

I need to delete a directory that has files in it. Anyone have code to do this? I have tried a number of Java routines I found online but without luck.

---

## [Feedback on my code](https://discourse.processing.org/t/feedback-on-my-code/3764)

<div class="topic-metadata">

**Author:** [@jonaspower](https://discourse.processing.org/u/jonaspower)\
**Replies:** 7\
**Last updated:** [September 25, 2018, 5:35pm UTC](https://discourse.processing.org/t/feedback-on-my-code/3764 "2018-09-25T17:35:16Z")

</div>

Hi im new to processing and i have made this program (Its a timer/alarm) here is the code (probably doesnt work because of the sound thing but to make it work remember to have the sound and put a file next to the code c…

---

## [\[SOLVED\] \[Cp5\] Do something as textfield loses focus](https://discourse.processing.org/t/solved-cp5-do-something-as-textfield-loses-focus/3757)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 5:11pm UTC](https://discourse.processing.org/t/solved-cp5-do-something-as-textfield-loses-focus/3757 "2018-09-25T17:11:22Z")

</div>

I would like to check the value of cp5 textfields as soon as they lose focus. The only thing I found regarding this, it that textfields have an .isFocus() method, but I cant think of a smart way to utilize this. You wou…

---

## [Rotate Camera around it's own axis](https://discourse.processing.org/t/rotate-camera-around-its-own-axis/3774)

<div class="topic-metadata">

**Author:** [@Keheck](https://discourse.processing.org/u/Keheck)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 4:56pm UTC](https://discourse.processing.org/t/rotate-camera-around-its-own-axis/3774 "2018-09-25T16:56:53Z")

</div>

I’d like to know if there is a way to rotate a 3D camera atound it’s own axis. I want to create a 3D game like Minecraft and for that I of course need to make the camera be rotatable I tried following code (unnecessary c…

---

## [Generative code](https://discourse.processing.org/t/generative-code/3725)

<div class="topic-metadata">

**Author:** [@mturel](https://discourse.processing.org/u/mturel)\
**Replies:** 4\
**Last updated:** [September 25, 2018, 5:44am UTC](https://discourse.processing.org/t/generative-code/3725 "2018-09-25T05:44:04Z")

</div>

Hi, I’m a beginner at coding and I’m wondering if anyone could help me with some code I’m writing. I have a bunch of seed vector files that I would like the code to randomly overlay zoom in, rotate to create new pieces …

---

## [Integrating Processing to Sublime](https://discourse.processing.org/t/integrating-processing-to-sublime/2225)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 16\
**Last updated:** [August 9, 2018, 1:25am UTC](https://discourse.processing.org/t/integrating-processing-to-sublime/2225 "2018-08-09T01:25:37Z")

</div>

I was trying to use processing-java to open a processing sketch. I am running windows 10 and processing 3.3.7. I right clicked and used the open with menu to select the processing-java. Am I using processing-java correct…

---

## [The Somewhat Possible Game by Kristoffer Pauly](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 2:42am UTC](https://discourse.processing.org/t/the-somewhat-possible-game-by-kristoffer-pauly/3739 "2018-09-25T02:42:08Z")

</div>

Hello Dear Processors, I found an awesome game I want to learn from https://www.dropbox.com/s/6yvuv1i84u41j0m/The\_Somewhat\_Possible\_Game.zip?dl=0 but it is throwing an ArrayIndexOutOfBoundsException: 3 error and highligh…

---

## [Null pointer when accessing variable from another class](https://discourse.processing.org/t/null-pointer-when-accessing-variable-from-another-class/3702)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [September 20, 2018, 7:45pm UTC](https://discourse.processing.org/t/null-pointer-when-accessing-variable-from-another-class/3702 "2018-09-20T19:45:10Z")

</div>

Okay, I’m having another learning experience here. I don’t know what’s going wrong with this. I’m experimenting with how classes work together, and how to pass data between them. When I run this code, I get a NullPointe…

---

## [Repeat lines until an event happens](https://discourse.processing.org/t/repeat-lines-until-an-event-happens/3753)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 4\
**Last updated:** [September 24, 2018, 3:07pm UTC](https://discourse.processing.org/t/repeat-lines-until-an-event-happens/3753 "2018-09-24T15:07:58Z")

</div>

Hello, I’m new here, and I’m simply searching for a way to repeat a line of code unlimited times (in one draw passing) until the wanted event happens. Is there any way to do so?

---

## [How to use the Processing XML class in other Java Editors?](https://discourse.processing.org/t/how-to-use-the-processing-xml-class-in-other-java-editors/3700)

<div class="topic-metadata">

**Author:** [@Paul94](https://discourse.processing.org/u/Paul94)\
**Replies:** 3\
**Last updated:** [September 24, 2018, 1:28pm UTC](https://discourse.processing.org/t/how-to-use-the-processing-xml-class-in-other-java-editors/3700 "2018-09-24T13:28:48Z")

</div>

Hello, I want to use the XML class in BlueJ but it doesn’t work. I have tried several others like PFont for example which does work. As I found out the class XML is part of the core library.

---

## [\[SOLVED\] Problems with PVectors](https://discourse.processing.org/t/solved-problems-with-pvectors/3715)

<div class="topic-metadata">

**Author:** [@OrigamiBoy](https://discourse.processing.org/u/OrigamiBoy)\
**Replies:** 2\
**Last updated:** [September 24, 2018, 1:23pm UTC](https://discourse.processing.org/t/solved-problems-with-pvectors/3715 "2018-09-24T13:23:01Z")

</div>

Hey all, I am having some problems with changing the values with PVectors. Here is my code: Rocket rocket = new Rocket(); void keyPressed() { switch(key) { case 'w': rocket.up(); case 's': rocket.dow…

---

## [Start/Stop button | can't figure this out](https://discourse.processing.org/t/start-stop-button-cant-figure-this-out/3784)

<div class="topic-metadata">

**Author:** [@SolDrakibane](https://discourse.processing.org/u/SolDrakibane)\
**Replies:** 2\
**Last updated:** [September 24, 2018, 11:10am UTC](https://discourse.processing.org/t/start-stop-button-cant-figure-this-out/3784 "2018-09-24T11:10:34Z")

</div>

So, the code below creates a bullseye that moves from the middle to the right and starts at the left again and loops. When i click the Start button the bullseye moves, the text switches to Stop. When i click the button a…

---

## [Playing videos frame by frame](https://discourse.processing.org/t/playing-videos-frame-by-frame/2900)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 4\
**Last updated:** [September 24, 2018, 2:25am UTC](https://discourse.processing.org/t/playing-videos-frame-by-frame/2900 "2018-09-24T02:25:45Z")

</div>

I found a few posts in older forums but I can’t find a definitive answer. I have multiple videos in a collage. I want to save the frame of the whole composition to render it in a sequence of PNGs. The thing is: I can’t…

---

## [Transform text to colored pixels?](https://discourse.processing.org/t/transform-text-to-colored-pixels/3633)

<div class="topic-metadata">

**Author:** [@MAKESHADY](https://discourse.processing.org/u/MAKESHADY)\
**Replies:** 3\
**Last updated:** [September 24, 2018, 2:03am UTC](https://discourse.processing.org/t/transform-text-to-colored-pixels/3633 "2018-09-24T02:03:20Z")

</div>

I would like to create and image composed by a text. I would like to say on processing " a = blue pixel, b = red pixel … ". Transform 100 letters on 10x10 image ( or larger ). THX !

---

## [Drag and Drop Rectangle](https://discourse.processing.org/t/drag-and-drop-rectangle/3762)

<div class="topic-metadata">

**Author:** [@butterycowegg](https://discourse.processing.org/u/butterycowegg)\
**Replies:** 3\
**Last updated:** [September 23, 2018, 6:01pm UTC](https://discourse.processing.org/t/drag-and-drop-rectangle/3762 "2018-09-23T18:01:48Z")

</div>

I am new to Processing and am trying to write a program that allows you to drag and drop a rectangle. Whenever I click on the rectangle, the mouse locations becomes the new top left corner of the rectangle. How can I mak…

---

## [From 0 to 100 script](https://discourse.processing.org/t/from-0-to-100-script/3667)

<div class="topic-metadata">

**Author:** [@netillo](https://discourse.processing.org/u/netillo)\
**Replies:** 4\
**Last updated:** [September 23, 2018, 4:43am UTC](https://discourse.processing.org/t/from-0-to-100-script/3667 "2018-09-23T04:43:22Z")

</div>

Hello everyone, I’m trying to write a script that goes from which goes from 0 to 100 in 10 minutes with the look of a digital clock. I hope someone can help. Thank you! Cordially, Netillo

---

## [\[SOLVED\] Unexpected token:processing error in code drawn from an author's code](https://discourse.processing.org/t/solved-unexpected-token-processing-error-in-code-drawn-from-an-authors-code/3653)

<div class="topic-metadata">

**Author:** [@bobhurd](https://discourse.processing.org/u/bobhurd)\
**Replies:** 17\
**Last updated:** [September 23, 2018, 12:52am UTC](https://discourse.processing.org/t/solved-unexpected-token-processing-error-in-code-drawn-from-an-authors-code/3653 "2018-09-23T00:52:25Z")

</div>

The following code yields the error “unexpected token: processing”. What am I missing? It’s a straight copy of an author’s code (from “Arduino Projects Book”) that apparently did not get this error… Did I not install …

---

## [Focus on item from ArrayList in zty.pe like game](https://discourse.processing.org/t/focus-on-item-from-arraylist-in-zty-pe-like-game/3522)

<div class="topic-metadata">

**Author:** [@Pyrros](https://discourse.processing.org/u/Pyrros)\
**Replies:** 14\
**Last updated:** [September 22, 2018, 10:52pm UTC](https://discourse.processing.org/t/focus-on-item-from-arraylist-in-zty-pe-like-game/3522 "2018-09-22T22:52:21Z")

</div>

I am in the process of making a zty.pe game, and I have defined classes for own ship, enemies (those meant to be shot with words) as well as a projectile which own ship fires. The Enemy-class item has a string assigned w…

---

## [How to use a variable name that's stored inside the variable? Reflection?](https://discourse.processing.org/t/how-to-use-a-variable-name-thats-stored-inside-the-variable-reflection/3730)

<div class="topic-metadata">

**Author:** [@Luka](https://discourse.processing.org/u/Luka)\
**Replies:** 7\
**Last updated:** [September 22, 2018, 5:12pm UTC](https://discourse.processing.org/t/how-to-use-a-variable-name-thats-stored-inside-the-variable-reflection/3730 "2018-09-22T17:12:26Z")

</div>

I’m trying to control a sketch through OSC from another application (SuperCollider). I want to be able to pass control data (integers) to various variables in the sketch by naming them in the OSC message. For example I …

---

## [Nested loops, ending "early"](https://discourse.processing.org/t/nested-loops-ending-early/3726)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [September 22, 2018, 4:49pm UTC](https://discourse.processing.org/t/nested-loops-ending-early/3726 "2018-09-22T16:49:00Z")

</div>

Now I have this question about nested loops. With the buildTiles() method, I would like to have the option to create fewer Tile objects than grid cells, but still number them in the “id” field, and assign the grid cell …

---

## [Quiz game - need help](https://discourse.processing.org/t/quiz-game-need-help/3166)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.processing.org/u/Pedro)\
**Replies:** 30\
**Last updated:** [September 22, 2018, 12:42pm UTC](https://discourse.processing.org/t/quiz-game-need-help/3166 "2018-09-22T12:42:24Z")

</div>

I’m doing a Quiz game, so I want to put the questions in a different order automatically. I would have to number each question and use random (), but I do not know how it is numbered. I have not done anything yet.

---

## [Accessing functions from Java Generics](https://discourse.processing.org/t/accessing-functions-from-java-generics/3391)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 18\
**Last updated:** [September 10, 2018, 11:58am UTC](https://discourse.processing.org/t/accessing-functions-from-java-generics/3391 "2018-09-10T11:58:30Z")

</div>

Hi! Recently I’ve been making some classes to carry out functions, but when making them, I’ve only been able to use 1 class for one object. For example, class Sorter { Point\[\] points; Sorter(Point\[\] points\_) { …

---

## [Centering a point cloud/OBJ object](https://discourse.processing.org/t/centering-a-point-cloud-obj-object/3493)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 11\
**Last updated:** [September 22, 2018, 6:11am UTC](https://discourse.processing.org/t/centering-a-point-cloud-obj-object/3493 "2018-09-22T06:11:25Z")

</div>

Hi all, I have a problem locating on the canvas a large point cloud file (.txt / .xyz) that I have created with Meshlab. I’ve tried to translate the coordinates numerous times with the translate() function but not onl…

---

## [Processing sketch as Mac Os Screen Saver error](https://discourse.processing.org/t/processing-sketch-as-mac-os-screen-saver-error/3724)

<div class="topic-metadata">

**Author:** [@mchelle](https://discourse.processing.org/u/mchelle)\
**Replies:** 2\
**Last updated:** [September 22, 2018, 1:31am UTC](https://discourse.processing.org/t/processing-sketch-as-mac-os-screen-saver-error/3724 "2018-09-22T01:31:44Z")

</div>

I made a sketch and I saved it as an executable file for mac os. I changed the extension from .app to .saver and installed it as a screen saver but my System Preferences is showing me an error when I preview the screen s…

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

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