# Processing

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

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

**Page:** 318

---

## [Problems with loading pictures and keeping framerate at 60](https://discourse.processing.org/t/problems-with-loading-pictures-and-keeping-framerate-at-60/9008)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 1\
**Last updated:** [March 6, 2019, 2:05pm UTC](https://discourse.processing.org/t/problems-with-loading-pictures-and-keeping-framerate-at-60/9008 "2019-03-06T14:05:25Z")

</div>

Hi, i am trying to make a game, where it is necessary to load pictures, however my framerate drops every time I load a picture (For now i only load one picture at a time). It may be because the quality of the pictures is…

---

## [Trying to create a BCD clock](https://discourse.processing.org/t/trying-to-create-a-bcd-clock/8560)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 2\
**Last updated:** [March 6, 2019, 10:32am UTC](https://discourse.processing.org/t/trying-to-create-a-bcd-clock/8560 "2019-03-06T10:32:30Z")

</div>

I’m trying o create a BCD clock, but something seems very off. The value of s = second(); returns a negative value, and the clock isn’t displaying correctly. What am I doing wrong? int h; int m; int s; void setup(){ …

---

## [Ellipse moving in rectangular shape](https://discourse.processing.org/t/ellipse-moving-in-rectangular-shape/8988)

<div class="topic-metadata">

**Author:** [@cathfrier](https://discourse.processing.org/u/cathfrier)\
**Replies:** 2\
**Last updated:** [March 6, 2019, 7:31am UTC](https://discourse.processing.org/t/ellipse-moving-in-rectangular-shape/8988 "2019-03-06T07:31:15Z")

</div>

Hi there! The solution is probably right in front of me, but I’m struggling with my code. I have an ellipse that are meant to move in a rectangular shape, from top right (x0, y0) \> bottom right (x1, y1) \> diagonal bott…

---

## [Strange behavior loading video files from data path](https://discourse.processing.org/t/strange-behavior-loading-video-files-from-data-path/8996)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 1\
**Last updated:** [March 6, 2019, 2:35am UTC](https://discourse.processing.org/t/strange-behavior-loading-video-files-from-data-path/8996 "2019-03-06T02:35:59Z")

</div>

I’m making a script that mixes different videos on screen. The script works if I load the videos from the “data” path, but if i use subfolders like “data/something” I get an error (despite the files are loading correctly…

---

## [Files must be loaded inside setup() or after it has been called](https://discourse.processing.org/t/files-must-be-loaded-inside-setup-or-after-it-has-been-called/8751)

<div class="topic-metadata">

**Author:** [@Kyle](https://discourse.processing.org/u/Kyle)\
**Replies:** 7\
**Last updated:** [March 6, 2019, 12:31am UTC](https://discourse.processing.org/t/files-must-be-loaded-inside-setup-or-after-it-has-been-called/8751 "2019-03-06T00:31:58Z")

</div>

My code has many different object classes which all extend the main class. Each one has its own set of PImages (I have found that the only way to make them work is to loadImage them inside the class constructor, you can …

---

## [Newb- AI for 2d Games - player object to be recognized by physics engine](https://discourse.processing.org/t/newb-ai-for-2d-games-player-object-to-be-recognized-by-physics-engine/8821)

<div class="topic-metadata">

**Author:** [@seeblank](https://discourse.processing.org/u/seeblank)\
**Replies:** 7\
**Last updated:** [March 5, 2019, 7:44pm UTC](https://discourse.processing.org/t/newb-ai-for-2d-games-player-object-to-be-recognized-by-physics-engine/8821 "2019-03-05T19:44:11Z")

</div>

hello sketchers, I am a newb here, newb in programming. I have a project for one of my classes, and I am using Quarks AI for 2D Games to get a basic functionality. I am unsure how many people have used this library yet, …

---

## [Art Installation, Long Run Times](https://discourse.processing.org/t/art-installation-long-run-times/5101)

<div class="topic-metadata">

**Author:** [@Phospheros](https://discourse.processing.org/u/Phospheros)\
**Replies:** 7\
**Last updated:** [March 5, 2019, 6:43pm UTC](https://discourse.processing.org/t/art-installation-long-run-times/5101 "2019-03-05T18:43:22Z")

</div>

Hi All, I’m working on a project with an artist, and my contribution will be an interactive projection w/ Kinect. The sketch is in P5v3 (Java), and should be expected to run continuously for 8+ hrs. a day. The exhibitio…

---

## [What is this ~/Documents/Processing/libraries directory while installing Processing 3](https://discourse.processing.org/t/what-is-this-documents-processing-libraries-directory-while-installing-processing-3/8899)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 7\
**Last updated:** [March 5, 2019, 3:53pm UTC](https://discourse.processing.org/t/what-is-this-documents-processing-libraries-directory-while-installing-processing-3/8899 "2019-03-05T15:53:55Z")

</div>

I’m new to Processing. I was trying to get the code working based on the following link: I’m using Linux Ubuntu. The following are the steps to install Processing based on the above link. 1: Download Processing …

---

## [How am I supposed to open sketches downloaded from github?](https://discourse.processing.org/t/how-am-i-supposed-to-open-sketches-downloaded-from-github/8927)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.processing.org/u/mono)\
**Replies:** 5\
**Last updated:** [March 5, 2019, 2:46pm UTC](https://discourse.processing.org/t/how-am-i-supposed-to-open-sketches-downloaded-from-github/8927 "2019-03-05T14:46:50Z")

</div>

Hey there. I was trying to download sketches that other people have put on github so I could take a look at the code and get some insight on how to structure my own sketches. The problem I’m having is the sketch never s…

---

## [Printing characters one by one?](https://discourse.processing.org/t/printing-characters-one-by-one/8952)

<div class="topic-metadata">

**Author:** [@JsRambles](https://discourse.processing.org/u/JsRambles)\
**Replies:** 2\
**Last updated:** [March 5, 2019, 2:59am UTC](https://discourse.processing.org/t/printing-characters-one-by-one/8952 "2019-03-05T02:59:19Z")

</div>

Hello, How can I print out string characters one by one? Kind of like how in some RPG games when an NPC is talking the text will print out slowing at a certain speed each letter one by one. However I’m not going left …

---

## [Help with button objects](https://discourse.processing.org/t/help-with-button-objects/8839)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 3\
**Last updated:** [March 5, 2019, 2:13am UTC](https://discourse.processing.org/t/help-with-button-objects/8839 "2019-03-05T02:13:45Z")

</div>

Hi, I have a class to define some buttons and I have my main application displaying a few of these (grouped in 2 separate arrays). Everything works fine except I’d like the “currently” active button to display a red line…

---

## [How do I optimize/make my script run better/let processing take more resources](https://discourse.processing.org/t/how-do-i-optimize-make-my-script-run-better-let-processing-take-more-resources/8948)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 2\
**Last updated:** [March 5, 2019, 12:56am UTC](https://discourse.processing.org/t/how-do-i-optimize-make-my-script-run-better-let-processing-take-more-resources/8948 "2019-03-05T00:56:56Z")

</div>

I recently coded a simple point cloud script but it starts to lag really bad when I go above 250 or so points. Is there any way to optimize my script / let processing take more resources? keep in mind I am new to Proce…

---

## [Mouse over in Control p5 scrollablelist](https://discourse.processing.org/t/mouse-over-in-control-p5-scrollablelist/8950)

<div class="topic-metadata">

**Author:** [@larry](https://discourse.processing.org/u/larry)\
**Replies:** 0\
**Last updated:** [March 4, 2019, 11:21pm UTC](https://discourse.processing.org/t/mouse-over-in-control-p5-scrollablelist/8950 "2019-03-04T23:21:45Z")

</div>

Hi, I’m trying to access label names using mouseover in a scrollable list, I have found the following but can’t get it to work - can anyone show me a working example of this? Thanks public class MyScrollableList extend…

---

## [Track relative motion of fingers : Leapmotion](https://discourse.processing.org/t/track-relative-motion-of-fingers-leapmotion/8718)

<div class="topic-metadata">

**Author:** [@piyushpohekar3003](https://discourse.processing.org/u/piyushpohekar3003)\
**Replies:** 5\
**Last updated:** [March 4, 2019, 5:08pm UTC](https://discourse.processing.org/t/track-relative-motion-of-fingers-leapmotion/8718 "2019-03-04T17:08:48Z")

</div>

Please refer the code available at the link above. I wanted to track finger-tips independently. But when I tried using ‘specific finger’ part of the code, i notices that the PVector values were changing even if I mov…

---

## [Rectangle moving along the z-axis](https://discourse.processing.org/t/rectangle-moving-along-the-z-axis/8736)

<div class="topic-metadata">

**Author:** [@Raoul](https://discourse.processing.org/u/Raoul)\
**Replies:** 6\
**Last updated:** [March 4, 2019, 3:55pm UTC](https://discourse.processing.org/t/rectangle-moving-along-the-z-axis/8736 "2019-03-04T15:55:28Z")

</div>

Hello, I am learning Processing reading the Daniel Shiffman book and I just started the Chapter “Trasformation and 3D”. The following code is the first example about using the z axis. I can not understand why once Z re…

---

## [Export Application crashes in Sierra but in Yosemite works perfectly](https://discourse.processing.org/t/export-application-crashes-in-sierra-but-in-yosemite-works-perfectly/8786)

<div class="topic-metadata">

**Author:** [@litiec](https://discourse.processing.org/u/litiec)\
**Replies:** 8\
**Last updated:** [March 4, 2019, 8:36am UTC](https://discourse.processing.org/t/export-application-crashes-in-sierra-but-in-yosemite-works-perfectly/8786 "2019-03-04T08:36:30Z")

</div>

Hello Everyone I have this serious issues that I’m not able to track. I exported my sketch processing to application and I tested in several machines, but two of then were OS X Sierra and the application opens the wind…

---

## [Conflict between a TTS and Sound Object](https://discourse.processing.org/t/conflict-between-a-tts-and-sound-object/8597)

<div class="topic-metadata">

**Author:** [@gbv34](https://discourse.processing.org/u/gbv34)\
**Replies:** 2\
**Last updated:** [March 4, 2019, 8:34am UTC](https://discourse.processing.org/t/conflict-between-a-tts-and-sound-object/8597 "2019-03-04T08:34:55Z")

</div>

Hello, I’m currently working on a Text To Speech project. I want to change the voice in real time, adding some effects in a sound software (Live). For that purpose, I use Soundflower to route the sound from Processing t…

---

## [Why background() is not updated in a draw() loop](https://discourse.processing.org/t/why-background-is-not-updated-in-a-draw-loop/8904)

<div class="topic-metadata">

**Author:** [@elode](https://discourse.processing.org/u/elode)\
**Replies:** 3\
**Last updated:** [March 3, 2019, 11:13pm UTC](https://discourse.processing.org/t/why-background-is-not-updated-in-a-draw-loop/8904 "2019-03-03T23:13:39Z")

</div>

I start with Processing. I’m studying Daniel Shiffman’s book “Learning Processing”. In Exercise 6.5 of the book, I can not understand why background(0) which is in draw() is not updated each time a new line is drawn, e…

---

## [Beginners, processing, moving more than one object](https://discourse.processing.org/t/beginners-processing-moving-more-than-one-object/8903)

<div class="topic-metadata">

**Author:** [@Valete](https://discourse.processing.org/u/Valete)\
**Replies:** 4\
**Last updated:** [March 3, 2019, 9:18pm UTC](https://discourse.processing.org/t/beginners-processing-moving-more-than-one-object/8903 "2019-03-03T21:18:07Z")

</div>

hello, i am a super beginner at processing and java, but i have a reasonable background at C language, so i know some of the concepts of programing, but i decided learn something new, and i am trying to learn processing. …

---

## [Skybox, Skysphere](https://discourse.processing.org/t/skybox-skysphere/8735)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 3\
**Last updated:** [March 3, 2019, 8:10am UTC](https://discourse.processing.org/t/skybox-skysphere/8735 "2019-03-03T08:10:37Z")

</div>

Hello all, can anyone provide the code for a skybox, maybe with a kind of floor? It’s for a graphic program (Menger Sponge) I work on. A full code would be great… Thanks! Regards, Chrisir

---

## [Newbie - trying to change colors](https://discourse.processing.org/t/newbie-trying-to-change-colors/8870)

<div class="topic-metadata">

**Author:** [@BBG](https://discourse.processing.org/u/BBG)\
**Replies:** 2\
**Last updated:** [March 3, 2019, 7:37am UTC](https://discourse.processing.org/t/newbie-trying-to-change-colors/8870 "2019-03-03T07:37:08Z")

</div>

So what I want is to change the color of the background of this processing project. I keep being told that a } bracket is missing and an expecting EOF (not sure what that means). Can anyone point out what it is that I …

---

## [mousePressed not updating in while loop](https://discourse.processing.org/t/mousepressed-not-updating-in-while-loop/8793)

<div class="topic-metadata">

**Author:** [@Wangmaster](https://discourse.processing.org/u/Wangmaster)\
**Replies:** 6\
**Last updated:** [March 3, 2019, 1:13am UTC](https://discourse.processing.org/t/mousepressed-not-updating-in-while-loop/8793 "2019-03-03T01:13:06Z")

</div>

Sorry if this questions is a little basic, but I’m tearing my hair out trying to get my code to work. After some troubleshooting i narrowed the offending section to the following snippet: void setup(){ size(400,400); …

---

## [Need help with Twister game with changing rules i.e if statements](https://discourse.processing.org/t/need-help-with-twister-game-with-changing-rules-i-e-if-statements/8806)

<div class="topic-metadata">

**Author:** [@jacobm](https://discourse.processing.org/u/jacobm)\
**Replies:** 6\
**Last updated:** [March 3, 2019, 12:38am UTC](https://discourse.processing.org/t/need-help-with-twister-game-with-changing-rules-i-e-if-statements/8806 "2019-03-03T00:38:18Z")

</div>

Hi, I am new to processing and I have written this code for a easy twister game. Now I want to change the rules so that the instruction like for example left hand floor does not repeat. So basically altering the random …

---

## [Help with code pastebin link is https://pastebin.com/fr4Gs5YH](https://discourse.processing.org/t/help-with-code-pastebin-link-is-https-pastebin-com-fr4gs5yh/8798)

<div class="topic-metadata">

**Author:** [@DumboWumbo](https://discourse.processing.org/u/DumboWumbo)\
**Replies:** 1\
**Last updated:** [March 3, 2019, 12:23am UTC](https://discourse.processing.org/t/help-with-code-pastebin-link-is-https-pastebin-com-fr4gs5yh/8798 "2019-03-03T00:23:44Z")

</div>

Hello i recently madea some code in order to “distort” the image but the original image continues to be put on top of tge scrambled image and i do not know what is wrong.(paste bin link https://pastebin.com/fr4Gs5YH

---

## [Send JSON over HTTP in Processing](https://discourse.processing.org/t/send-json-over-http-in-processing/8774)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 5\
**Last updated:** [March 3, 2019, 12:13am UTC](https://discourse.processing.org/t/send-json-over-http-in-processing/8774 "2019-03-03T00:13:20Z")

</div>

Hey! Looking for tutorials on how to use HTTP to send images and/or data in JSON-format. Locally/localhost is fine, not over the internet. All hints much appreciated :slight\_smile:

---

## [2D Array Help needed](https://discourse.processing.org/t/2d-array-help-needed/8567)

<div class="topic-metadata">

**Author:** [@Awal](https://discourse.processing.org/u/Awal)\
**Replies:** 2\
**Last updated:** [February 21, 2019, 10:26am UTC](https://discourse.processing.org/t/2d-array-help-needed/8567 "2019-02-21T10:26:35Z")

</div>

Hi, I am hoping someone can help me again with my Processing assignment. This is a red and black checker board. The question is “add one line of code that will create a circle using the ellipse function and place it on …

---

## [\[\]\[\] ,What does that symbol mean?](https://discourse.processing.org/t/what-does-that-symbol-mean/8860)

<div class="topic-metadata">

**Author:** [@ximi](https://discourse.processing.org/u/ximi)\
**Replies:** 2\
**Last updated:** [March 2, 2019, 2:18pm UTC](https://discourse.processing.org/t/what-does-that-symbol-mean/8860 "2019-03-02T14:18:11Z")

</div>

if (m\[x/sTile\]\[y/sTile\] == 0) fill(c0); in the code above,\[\]\[\] means m\[\]\*m\[\] ?

---

## [How to fill the canvas with a string?](https://discourse.processing.org/t/how-to-fill-the-canvas-with-a-string/8742)

<div class="topic-metadata">

**Author:** [@jacobo](https://discourse.processing.org/u/jacobo)\
**Replies:** 3\
**Last updated:** [March 2, 2019, 4:19am UTC](https://discourse.processing.org/t/how-to-fill-the-canvas-with-a-string/8742 "2019-03-02T04:19:05Z")

</div>

Hi! Basically I want to fill the 700x1000 canvas with 3 sets of text lines till it hits 600 pixels y. I’ve tried to make a String with the lines of text and put it into a for loop but I’m not sure if it’s the correct w…

---

## [How to make something inside a loop happen once?](https://discourse.processing.org/t/how-to-make-something-inside-a-loop-happen-once/8807)

<div class="topic-metadata">

**Author:** [@jacobo](https://discourse.processing.org/u/jacobo)\
**Replies:** 8\
**Last updated:** [March 1, 2019, 8:33pm UTC](https://discourse.processing.org/t/how-to-make-something-inside-a-loop-happen-once/8807 "2019-03-01T20:33:23Z")

</div>

Hey guys. In this code I’d like the words to be randomly generated just once and not over and over again, while still keeping it bouncing from left to right. I’m new at processing so help is much appreciated! float te…

---

## [Create collision between the characters](https://discourse.processing.org/t/create-collision-between-the-characters/8791)

<div class="topic-metadata">

**Author:** [@Rey](https://discourse.processing.org/u/Rey)\
**Replies:** 1\
**Last updated:** [March 1, 2019, 6:41pm UTC](https://discourse.processing.org/t/create-collision-between-the-characters/8791 "2019-03-01T18:41:39Z")

</div>

ex: Game and watch Hi I should create a collision between the characters, example, \* character \* touches the \* enemy \* and the enemy disappears. can you help me? Code here (http://fromsmash.com/9b1ee406-3b42-11e9-a045…

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

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