# Processing

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

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

**Page:** 346

---

## [Maze generation](https://discourse.processing.org/t/maze-generation/5801)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 0\
**Last updated:** [November 21, 2018, 6:32pm UTC](https://discourse.processing.org/t/maze-generation/5801 "2018-11-21T18:32:12Z")

</div>

Hi guys. I’ve hit a wall here. I’m trying to build a generative keith herring’s maze, or something like those grafitti fillings maze, like the image below. I’ve done a few thing, but now I hit a wall and I’m stuck. I…

---

## [I need to create a ATM machine like program](https://discourse.processing.org/t/i-need-to-create-a-atm-machine-like-program/5800)

<div class="topic-metadata">

**Author:** [@Sventhepuffin](https://discourse.processing.org/u/Sventhepuffin)\
**Replies:** 1\
**Last updated:** [November 21, 2018, 5:55pm UTC](https://discourse.processing.org/t/i-need-to-create-a-atm-machine-like-program/5800 "2018-11-21T17:55:38Z")

</div>

I have a project in which i need to create a ATM machine like code. The program needs to deposit, withdraw, transfer and check total balance. I’m having difficulty figuring out where to start exactly and how to get the w…

---

## [getLocation() of the sketch](https://discourse.processing.org/t/getlocation-of-the-sketch/5763)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 5\
**Last updated:** [November 21, 2018, 5:30pm UTC](https://discourse.processing.org/t/getlocation-of-the-sketch/5763 "2018-11-21T17:30:00Z")

</div>

I try to catch the location of my sketch, but I don’t find any option to do that like surface.setLocation(). Any idea which method can be used to catch the sketch position, like before getLocationOnScreen()

---

## [Strange Font & Math Problems, Basic Math would Probably Help](https://discourse.processing.org/t/strange-font-math-problems-basic-math-would-probably-help/5755)

<div class="topic-metadata">

**Author:** [@c0nfused\_t3chie](https://discourse.processing.org/u/c0nfused_t3chie)\
**Replies:** 3\
**Last updated:** [November 21, 2018, 5:57am UTC](https://discourse.processing.org/t/strange-font-math-problems-basic-math-would-probably-help/5755 "2018-11-21T05:57:44Z")

</div>

Hello, first time posting sorry if this is vauge, just needing some help with what I thought should be basic math. For random reasons I felt making a sandbox version of a terminal window to help teach someone more power…

---

## [Erasing draw after "x" frames](https://discourse.processing.org/t/erasing-draw-after-x-frames/5707)

<div class="topic-metadata">

**Author:** [@vayjean](https://discourse.processing.org/u/vayjean)\
**Replies:** 4\
**Last updated:** [November 21, 2018, 1:57am UTC](https://discourse.processing.org/t/erasing-draw-after-x-frames/5707 "2018-11-21T01:57:06Z")

</div>

Hi everyone, I’m a new user of processing and i’m trying to make abstractions drawing with the below code. However I don’t arrive to erase the drawing after a certain amount of frames. Does someone knows how to do this …

---

## ["How does the learning process of an A.I. sound?" We need help with the source code and API of a simple A.I. Program](https://discourse.processing.org/t/how-does-the-learning-process-of-an-a-i-sound-we-need-help-with-the-source-code-and-api-of-a-simple-a-i-program/5559)

<div class="topic-metadata">

**Author:** [@sebastianw94](https://discourse.processing.org/u/sebastianw94)\
**Replies:** 2\
**Last updated:** [November 21, 2018, 1:50am UTC](https://discourse.processing.org/t/how-does-the-learning-process-of-an-a-i-sound-we-need-help-with-the-source-code-and-api-of-a-simple-a-i-program/5559 "2018-11-21T01:50:22Z")

</div>

Hello Everyone, We are students from Germany and we are currently studying „Media-Design“. We were assigned to create an artistic media-installation for the “Ars Electronica” as an entry in their competition. Our Idea …

---

## [Hi i am getting an error on the boolean method saying missing left curly brace at the end of the crash method](https://discourse.processing.org/t/hi-i-am-getting-an-error-on-the-boolean-method-saying-missing-left-curly-brace-at-the-end-of-the-crash-method/5759)

<div class="topic-metadata">

**Author:** [@redFoa](https://discourse.processing.org/u/redFoa)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 10:04pm UTC](https://discourse.processing.org/t/hi-i-am-getting-an-error-on-the-boolean-method-saying-missing-left-curly-brace-at-the-end-of-the-crash-method/5759 "2018-11-20T22:04:35Z")

</div>

bnbmb,n,m,jkhkhkj;h;hjj

---

## [Using processing for the HTC Vive](https://discourse.processing.org/t/using-processing-for-the-htc-vive/5764)

<div class="topic-metadata">

**Author:** [@donzilll](https://discourse.processing.org/u/donzilll)\
**Replies:** 1\
**Last updated:** [November 20, 2018, 7:55pm UTC](https://discourse.processing.org/t/using-processing-for-the-htc-vive/5764 "2018-11-20T19:55:56Z")

</div>

Hello everyone, I have a HTC Vive and am interested in creating processing sketches to use in VR. I found a great library that does exactly that: It has been great so far but I found have found it be quite limited …

---

## [Question about deleting an object](https://discourse.processing.org/t/question-about-deleting-an-object/5760)

<div class="topic-metadata">

**Author:** [@Jeany](https://discourse.processing.org/u/Jeany)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 2:29pm UTC](https://discourse.processing.org/t/question-about-deleting-an-object/5760 "2018-11-20T14:29:33Z")

</div>

Hello, I’m working with a team on a school project and we’re making a little race game. Sadly we are stuck on a bug/problem we are having. I hoped someone would help us here. We would really appreciate it! So the probl…

---

## [Not reading text file for example on website](https://discourse.processing.org/t/not-reading-text-file-for-example-on-website/5750)

<div class="topic-metadata">

**Author:** [@Oz\_joker](https://discourse.processing.org/u/Oz_joker)\
**Replies:** 3\
**Last updated:** [November 20, 2018, 4:32am UTC](https://discourse.processing.org/t/not-reading-text-file-for-example-on-website/5750 "2018-11-20T04:32:31Z")

</div>

Hi, I’m trying to get this simple example to work from your website: https://processing.org/examples/loadfile1.html I’ve made a text file called positions.txt, and followed the instructions on the website, "Loads a te…

---

## [Anti-rotation command](https://discourse.processing.org/t/anti-rotation-command/5752)

<div class="topic-metadata">

**Author:** [@alk5603](https://discourse.processing.org/u/alk5603)\
**Replies:** 2\
**Last updated:** [November 20, 2018, 4:27am UTC](https://discourse.processing.org/t/anti-rotation-command/5752 "2018-11-20T04:27:12Z")

</div>

float angle = 0, radius = 300; int num = 6; void setup() { size(800, 800); fill(255); } void draw() { fill(0, 20); rect(-50, -50, width+100, height+100); translate(width/2, height/2); rotate(angle); if (mouseP…

---

## [Hello my name is Alejo, I wanted to know if processing can add lights on the screen? in the case that yes. What objects should I use? From already thank you very much](https://discourse.processing.org/t/hello-my-name-is-alejo-i-wanted-to-know-if-processing-can-add-lights-on-the-screen-in-the-case-that-yes-what-objects-should-i-use-from-already-thank-you-very-much/5747)

<div class="topic-metadata">

**Author:** [@alejo.corvalann](https://discourse.processing.org/u/alejo.corvalann)\
**Replies:** 1\
**Last updated:** [November 20, 2018, 12:21am UTC](https://discourse.processing.org/t/hello-my-name-is-alejo-i-wanted-to-know-if-processing-can-add-lights-on-the-screen-in-the-case-that-yes-what-objects-should-i-use-from-already-thank-you-very-much/5747 "2018-11-20T00:21:11Z")

</div>

Hello my name is Alejo, I wanted to know if processing can add lights on the screen? in the case that yes. What objects should I use? From already thank you very much

---

## [I need help morphing two jpg images](https://discourse.processing.org/t/i-need-help-morphing-two-jpg-images/5722)

<div class="topic-metadata">

**Author:** [@morphinghero](https://discourse.processing.org/u/morphinghero)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 11:08pm UTC](https://discourse.processing.org/t/i-need-help-morphing-two-jpg-images/5722 "2018-11-19T23:08:31Z")

</div>

Does anyone know how to morph two jpg images using Processing? If so can I please have the code for it I am stuck and I cannot find the information everywhere.

---

## [A caught error exception occurred on Raspberry Pi](https://discourse.processing.org/t/a-caught-error-exception-occurred-on-raspberry-pi/1129)

<div class="topic-metadata">

**Author:** [@Samsanit](https://discourse.processing.org/u/Samsanit)\
**Replies:** 5\
**Last updated:** [June 22, 2018, 9:55pm UTC](https://discourse.processing.org/t/a-caught-error-exception-occurred-on-raspberry-pi/1129 "2018-06-22T21:55:01Z")

</div>

Hi, while working with processing on raspberry pi I was attempting to have a second screen pop up with data I had gathered in a separate method. On short runs (about 1 minute or less), the code is able to make this witho…

---

## [Culling text outside of a certain bounds?](https://discourse.processing.org/t/culling-text-outside-of-a-certain-bounds/5701)

<div class="topic-metadata">

**Author:** [@Bluu](https://discourse.processing.org/u/Bluu)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 2:14pm UTC](https://discourse.processing.org/t/culling-text-outside-of-a-certain-bounds/5701 "2018-11-19T14:14:32Z")

</div>

I’m making a scrolling textbox(much like an HTML textarea) in a processing project, but when the box is full and has nowhere to overflow, it bleeds into other elements. is there any way to make the text only appear withi…

---

## [Flickering background when updating img.pixels\[\] in another thread](https://discourse.processing.org/t/flickering-background-when-updating-img-pixels-in-another-thread/5710)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 2:10pm UTC](https://discourse.processing.org/t/flickering-background-when-updating-img-pixels-in-another-thread/5710 "2018-11-19T14:10:11Z")

</div>

Hello, When I’m updating the pixels of an PImage in a different thread this somehow effects the background of my main (P3D) sketch (on both Mac and Window). Even when the image is not bound as a texture. Any idea? PIma…

---

## [Text() and Delay()](https://discourse.processing.org/t/text-and-delay/5698)

<div class="topic-metadata">

**Author:** [@CodeMonkey](https://discourse.processing.org/u/CodeMonkey)\
**Replies:** 8\
**Last updated:** [November 19, 2018, 11:17am UTC](https://discourse.processing.org/t/text-and-delay/5698 "2018-11-19T11:17:28Z")

</div>

I want text to appear on the screen, but letter by letter and slowly. When I execute this code nothing is displayed to the user and I’m unsure as to why. String textLine = “This is a test to see if I can do this”; St…

---

## [Using Beads or other libraries for multichannel audio output](https://discourse.processing.org/t/using-beads-or-other-libraries-for-multichannel-audio-output/5648)

<div class="topic-metadata">

**Author:** [@danpaul](https://discourse.processing.org/u/danpaul)\
**Replies:** 3\
**Last updated:** [November 19, 2018, 10:50am UTC](https://discourse.processing.org/t/using-beads-or-other-libraries-for-multichannel-audio-output/5648 "2018-11-19T10:50:56Z")

</div>

I’m looking for an audio library that supports multichannel (at least 4) audio outputs. From the research I’ve done, it sounds like Beads should support this but I’m not able to find specific information in the beads tut…

---

## [TTS sketch not working, why?](https://discourse.processing.org/t/tts-sketch-not-working-why/5681)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 5:32am UTC](https://discourse.processing.org/t/tts-sketch-not-working-why/5681 "2018-11-19T05:32:32Z")

</div>

Hello this sketch dont working i want to write some text and spell it from google translator, do you have some working library or code for TTS ? text to speak ? import java.net.\*; File f; import java.io.FileOutputStrea…

---

## [Replicate inbuilt functions](https://discourse.processing.org/t/replicate-inbuilt-functions/5473)

<div class="topic-metadata">

**Author:** [@Dee-3\_123](https://discourse.processing.org/u/Dee-3_123)\
**Replies:** 9\
**Last updated:** [November 19, 2018, 5:40am UTC](https://discourse.processing.org/t/replicate-inbuilt-functions/5473 "2018-11-19T05:40:51Z")

</div>

I want to understand the logic of below functions… 10. float pow(float n, int pow) 13. int String.indexOf(String str) 14. boolean String.contains(String str) 16. boolean String.equalsIgnoreCase(String str)

---

## [How to connect two computers via OSC?](https://discourse.processing.org/t/how-to-connect-two-computers-via-osc/5635)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 5:39am UTC](https://discourse.processing.org/t/how-to-connect-two-computers-via-osc/5635 "2018-11-19T05:39:47Z")

</div>

hello everyone! how can i send messages from one computer to another via OSC? can anybody enlightme ? thanks!

---

## [Help with reading keywords from a .txt file to send to Arduino to turn into a tone](https://discourse.processing.org/t/help-with-reading-keywords-from-a-txt-file-to-send-to-arduino-to-turn-into-a-tone/5699)

<div class="topic-metadata">

**Author:** [@jonbearpig](https://discourse.processing.org/u/jonbearpig)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 4:21am UTC](https://discourse.processing.org/t/help-with-reading-keywords-from-a-txt-file-to-send-to-arduino-to-turn-into-a-tone/5699 "2018-11-19T04:21:37Z")

</div>

Hi, I’m trying to use Processing to read a .txt file from my computer, search for specific keywords from this file, and send information to Arduino via the serial port so that Arduino can turn the keyword into a specifi…

---

## [How do I send variables from text fields in processing to Arduino?](https://discourse.processing.org/t/how-do-i-send-variables-from-text-fields-in-processing-to-arduino/5691)

<div class="topic-metadata">

**Author:** [@Mahrokh](https://discourse.processing.org/u/Mahrokh)\
**Replies:** 1\
**Last updated:** [November 18, 2018, 9:42pm UTC](https://discourse.processing.org/t/how-do-i-send-variables-from-text-fields-in-processing-to-arduino/5691 "2018-11-18T21:42:31Z")

</div>

In my Arduino project, I’ve been sending data to the board via serial monitor in Arduino IDE. Here’s a part of my code from the Arduino: \`while (Serial.available() \> 0) { // look for the next valid integer/float i…

---

## [Kinect v2 Color Tracking Issue : ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/kinect-v2-color-tracking-issue-arrayindexoutofboundsexception/5636)

<div class="topic-metadata">

**Author:** [@flemingo](https://discourse.processing.org/u/flemingo)\
**Replies:** 4\
**Last updated:** [November 18, 2018, 12:21pm UTC](https://discourse.processing.org/t/kinect-v2-color-tracking-issue-arrayindexoutofboundsexception/5636 "2018-11-18T12:21:51Z")

</div>

Hi everyone! I’m currently working on a project to detect and track a color in the kinect image. However when my program gets to the line: color currentColor = img.pixels \[loc\]; It crashes and gives me the following …

---

## [selectOutput feature](https://discourse.processing.org/t/selectoutput-feature/5606)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 6\
**Last updated:** [November 18, 2018, 6:16pm UTC](https://discourse.processing.org/t/selectoutput-feature/5606 "2018-11-18T18:16:04Z")

</div>

Dear all, I developed a very simple sketch in which I use the selectOutput function. It works but, as soon as the select output file window is open, the sketch graphic disappear and the desktop is shown. Did you have …

---

## [Ohm's law exercice](https://discourse.processing.org/t/ohms-law-exercice/5660)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 2\
**Last updated:** [November 18, 2018, 4:47pm UTC](https://discourse.processing.org/t/ohms-law-exercice/5660 "2018-11-18T16:47:10Z")

</div>

Good morning. Thanks to jb4x I been able to draw a simple electric circuit boolean isOpen; float Vpila=10.0; float R1=100.00; float Rv=500.00; float DR=5.00; float color\_alpha=0; float I=0.00; void setup() { size(600…

---

## [Basic computer course project University](https://discourse.processing.org/t/basic-computer-course-project-university/5526)

<div class="topic-metadata">

**Author:** [@SeanTYH](https://discourse.processing.org/u/SeanTYH)\
**Replies:** 30\
**Last updated:** [November 18, 2018, 1:34pm UTC](https://discourse.processing.org/t/basic-computer-course-project-university/5526 "2018-11-18T13:34:14Z")

</div>

i was doing an assignment for my basic level computer course. what i wanted was to draw pac man ghosts in different colors (3 color choices) and 3 pac man ghosts at time = 3 which will slowly increase as the ghosts are k…

---

## [Can background of text editor be changed?](https://discourse.processing.org/t/can-background-of-text-editor-be-changed/5657)

<div class="topic-metadata">

**Author:** [@wsnicol](https://discourse.processing.org/u/wsnicol)\
**Replies:** 1\
**Last updated:** [November 18, 2018, 4:09am UTC](https://discourse.processing.org/t/can-background-of-text-editor-be-changed/5657 "2018-11-18T04:09:50Z")

</div>

Is it possible to change the white background in the text editor? To something easier on the eyes, if not actually a different color then maybe make the white not quite as glaring?:eyeglasses:

---

## [Rotate function with 4 arguments](https://discourse.processing.org/t/rotate-function-with-4-arguments/5652)

<div class="topic-metadata">

**Author:** [@moonspacedancer](https://discourse.processing.org/u/moonspacedancer)\
**Replies:** 2\
**Last updated:** [November 18, 2018, 1:54am UTC](https://discourse.processing.org/t/rotate-function-with-4-arguments/5652 "2018-11-18T01:54:07Z")

</div>

In my studying today, I have come across a rotate function with 4 arguments more than once, except can’t find any documentation on it. anyone know anything about this?

---

## [How to store last 20 mouse positions in an array?](https://discourse.processing.org/t/how-to-store-last-20-mouse-positions-in-an-array/5626)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 5\
**Last updated:** [November 17, 2018, 10:48pm UTC](https://discourse.processing.org/t/how-to-store-last-20-mouse-positions-in-an-array/5626 "2018-11-17T22:48:02Z")

</div>

Hey all together, i am Sebastian, i am very new to programming and i think i need some help :smiley: i wrote this code snippet to store the last 20 mouse positions but it only stores the same 20times… i cannot figure …

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

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