# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=199

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

**Page:** 200

---

## [Processing vs Rhino coordinates](https://discourse.processing.org/t/processing-vs-rhino-coordinates/21572)

<div class="topic-metadata">

**Author:** [@evilome](https://discourse.processing.org/u/evilome)\
**Replies:** 8\
**Last updated:** [June 19, 2020, 12:20pm UTC](https://discourse.processing.org/t/processing-vs-rhino-coordinates/21572 "2020-06-19T12:20:07Z")

</div>

Hello everyone, Understanding very little programming and facing a related problem and I need help for those who are available: I am working on the 3D animal head construction project from stainless wire using Rhino 6 +…

---

## [Switch case with two key pressed? Is it possible?](https://discourse.processing.org/t/switch-case-with-two-key-pressed-is-it-possible/21869)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [June 19, 2020, 11:09am UTC](https://discourse.processing.org/t/switch-case-with-two-key-pressed-is-it-possible/21869 "2020-06-19T11:09:26Z")

</div>

Hello. I would like to switch case with a combination of two letter or letter, one of each. I did like that, but it doesn’t work void keyPressed() { if (key=='5' && key=='T'){ println ("T55555TTTT5555"); …

---

## [Video Capture in linux with ARM processor](https://discourse.processing.org/t/video-capture-in-linux-with-arm-processor/13970)

<div class="topic-metadata">

**Author:** [@tcreed](https://discourse.processing.org/u/tcreed)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 10:16pm UTC](https://discourse.processing.org/t/video-capture-in-linux-with-arm-processor/13970 "2020-06-18T22:16:44Z")

</div>

I have been using processing on Mac for some time with good success but am now trying to run a sketch on a Linux based depth camera, a Persee from Orbbec. I have Ubuntu Linux 14 installed on the camera which uses an ARM…

---

## [Mario game help!](https://discourse.processing.org/t/mario-game-help/21979)

<div class="topic-metadata">

**Author:** [@jasmine](https://discourse.processing.org/u/jasmine)\
**Replies:** 9\
**Last updated:** [June 18, 2020, 7:02pm UTC](https://discourse.processing.org/t/mario-game-help/21979 "2020-06-18T19:02:13Z")

</div>

How can I add enemies that the player needs to avoid int gameMode=0;//0 - menu, 1 - play game, 2 - instructions, 3 - character selection int selChar=1;//default character is “character 1” int level=1; color red=color(25…

---

## [getAttribute value from XML node](https://discourse.processing.org/t/getattribute-value-from-xml-node/21977)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 6:17pm UTC](https://discourse.processing.org/t/getattribute-value-from-xml-node/21977 "2020-06-18T18:17:56Z")

</div>

Hi, I’m trying to get the value of attribute in XML. Here’s the xml line : \<image x="20" y="190"\> How to have 20 in a variable ?

---

## [3D Text Library](https://discourse.processing.org/t/3d-text-library/21776)

<div class="topic-metadata">

**Author:** [@spencerbambrick](https://discourse.processing.org/u/spencerbambrick)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 5:54pm UTC](https://discourse.processing.org/t/3d-text-library/21776 "2020-06-18T17:54:11Z")

</div>

Hello all, I’m relatively new to Processing but I’m loving working with it, so thanks in advance for the help! In short I’m looking for a library that will allow me to create 3D text with depth (not just rotate 2D text …

---

## [About saving data](https://discourse.processing.org/t/about-saving-data/21964)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 3\
**Last updated:** [June 18, 2020, 4:46pm UTC](https://discourse.processing.org/t/about-saving-data/21964 "2020-06-18T16:46:32Z")

</div>

I can read and make a graph about those values that I can send from Arduino. I want to save those datas as an .csv file (Excel with commas between values) Is there a way ?

---

## [Export video in real time](https://discourse.processing.org/t/export-video-in-real-time/2517)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 22\
**Last updated:** [June 18, 2020, 4:44pm UTC](https://discourse.processing.org/t/export-video-in-real-time/2517 "2020-06-18T16:44:01Z")

</div>

Hey! im actuallly using hamoid librarie video export. but frame rate still down. I need some way to record a sketch in real time( im moving cameras, and other events, so i need perfect sync). What alternatives do i have?…

---

## [How make this movement?](https://discourse.processing.org/t/how-make-this-movement/21935)

<div class="topic-metadata">

**Author:** [@Lucaso](https://discourse.processing.org/u/Lucaso)\
**Replies:** 3\
**Last updated:** [June 18, 2020, 2:28pm UTC](https://discourse.processing.org/t/how-make-this-movement/21935 "2020-06-18T14:28:33Z")

</div>

Hi everyone! I’m new in this community and using Processing, so I’m going to explain what is my problem. I want make a “field road” effect, similar to the one shown in the following link: https://cs.brynmawr.edu/gxk20…

---

## [Lines movement help](https://discourse.processing.org/t/lines-movement-help/21862)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 7\
**Last updated:** [June 18, 2020, 1:25pm UTC](https://discourse.processing.org/t/lines-movement-help/21862 "2020-06-18T13:25:12Z")

</div>

Ciao, qualcuno saprebbe dirmi perchè non riesco a fare il movimento nella parte sinistra dello schermo? Riesco a far muove la parte destra con la linea e il rect(blu) ma la parte di sinistra quella con la linea e il rec…

---

## [At work with the class](https://discourse.processing.org/t/at-work-with-the-class/21954)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 1:03pm UTC](https://discourse.processing.org/t/at-work-with-the-class/21954 "2020-06-18T13:03:59Z")

</div>

Hi everyone I need a confirmation or a hand for a game: I am working with colored buttons and I need to understand if when I step on with the mouse they are selected and then transported within my sketch. Can anyone tel…

---

## [Why doesn't the port.write() work when placed inside the setup() function? Processing doesn't get serial data back from Arduino](https://discourse.processing.org/t/why-doesnt-the-port-write-work-when-placed-inside-the-setup-function-processing-doesnt-get-serial-data-back-from-arduino/21920)

<div class="topic-metadata">

**Author:** [@wasd808](https://discourse.processing.org/u/wasd808)\
**Replies:** 5\
**Last updated:** [June 18, 2020, 11:57am UTC](https://discourse.processing.org/t/why-doesnt-the-port-write-work-when-placed-inside-the-setup-function-processing-doesnt-get-serial-data-back-from-arduino/21920 "2020-06-18T11:57:01Z")

</div>

I’m using processing with an Arduino UNO for my application. I’m making an adaptive traffic light system and for that, I’ve implemented a primitive graphic display in processing. In this, the processing code reads the nu…

---

## [Passing an Array through recursive class objects](https://discourse.processing.org/t/passing-an-array-through-recursive-class-objects/21972)

<div class="topic-metadata">

**Author:** [@Hyperion65](https://discourse.processing.org/u/Hyperion65)\
**Replies:** 2\
**Last updated:** [June 18, 2020, 8:49am UTC](https://discourse.processing.org/t/passing-an-array-through-recursive-class-objects/21972 "2020-06-18T08:49:38Z")

</div>

Hello ! I am working on a data visualization for a tree, generated with processing. I have created a class that creates a branch of the tree and then recursively creates another object for each child branch. To connec…

---

## [Change Color Moving](https://discourse.processing.org/t/change-color-moving/21924)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 8:42am UTC](https://discourse.processing.org/t/change-color-moving/21924 "2020-06-18T08:42:26Z")

</div>

Hi everyone, I need a hand, on how I can make my static rectangles () inside my moving rectangles () change color: I have three squares: static green, purple and orange I have three moving rectangles (): yellow, red an…

---

## [Extending classes](https://discourse.processing.org/t/extending-classes/21973)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 3:05am UTC](https://discourse.processing.org/t/extending-classes/21973 "2020-06-18T03:05:54Z")

</div>

So, let’s say, I have classes ExternalClass, OutterClass and InnerClass in a sketch called TestProject: public class ExternalClass{ ExternalClass(){ } } final static public class OutterClass{ final static pu…

---

## [PGraphics framebuffer can be rendered in \`noLoop\` mode but cannot be rendered in \`loop\` mode](https://discourse.processing.org/t/pgraphics-framebuffer-can-be-rendered-in-noloop-mode-but-cannot-be-rendered-in-loop-mode/21912)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 16, 2020, 3:18am UTC](https://discourse.processing.org/t/pgraphics-framebuffer-can-be-rendered-in-noloop-mode-but-cannot-be-rendered-in-loop-mode/21912 "2020-06-16T03:18:51Z")

</div>

why can the PGraphics FrameBuffer be rendered when noLoop() is given but fails to image when noLoop() is not given? as the following works for noLoop(); however it fails for looping draw() as the screen is always black …

---

## [Pong game end screen buttons not working](https://discourse.processing.org/t/pong-game-end-screen-buttons-not-working/21896)

<div class="topic-metadata">

**Author:** [@mrporcessing](https://discourse.processing.org/u/mrporcessing)\
**Replies:** 2\
**Last updated:** [June 18, 2020, 12:12am UTC](https://discourse.processing.org/t/pong-game-end-screen-buttons-not-working/21896 "2020-06-18T00:12:32Z")

</div>

Hi, for some reason my end game screen at the very end, when I press the respected keys doesn’t go to that stage. When I do it on the menu screen however it works. I have no idea why. //all major variables int x,y,w,h,s…

---

## [How to change the deformation level](https://discourse.processing.org/t/how-to-change-the-deformation-level/21963)

<div class="topic-metadata">

**Author:** [@IAN](https://discourse.processing.org/u/IAN)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 9:28pm UTC](https://discourse.processing.org/t/how-to-change-the-deformation-level/21963 "2020-06-17T21:28:43Z")

</div>

Hi, there this is a project I found in online, and this is a ball with soft-body, but I don’t know how to change the soft-level~ Is it about to change the boundary setting? in the tab ‘‘integrateHeun’’ ? or spring forc…

---

## [Sleep() in processing](https://discourse.processing.org/t/sleep-in-processing/21966)

<div class="topic-metadata">

**Author:** [@jeyeffkay](https://discourse.processing.org/u/jeyeffkay)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 8:54pm UTC](https://discourse.processing.org/t/sleep-in-processing/21966 "2020-06-17T20:54:32Z")

</div>

Hey guys, I am currently coding on a game for school and I asked myself and googled how can I use the sleep() command in processing. I want to create a flappy bird like game and I want one loop to wait e.g. two seconds …

---

## [How do I draw a line when the mouse is pressed, and then have that line change type when the mouse and a certain key are pressed at the same time?](https://discourse.processing.org/t/how-do-i-draw-a-line-when-the-mouse-is-pressed-and-then-have-that-line-change-type-when-the-mouse-and-a-certain-key-are-pressed-at-the-same-time/21956)

<div class="topic-metadata">

**Author:** [@keith](https://discourse.processing.org/u/keith)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 4:54pm UTC](https://discourse.processing.org/t/how-do-i-draw-a-line-when-the-mouse-is-pressed-and-then-have-that-line-change-type-when-the-mouse-and-a-certain-key-are-pressed-at-the-same-time/21956 "2020-06-17T16:54:38Z")

</div>

For example, I would like to have a “normal” line drawn when only the mouse is pressed, but have that line change color and/or size when the mouse and a certain key are pressed at the same time.

---

## [Flappy bird beginner](https://discourse.processing.org/t/flappy-bird-beginner/6284)

<div class="topic-metadata">

**Author:** [@Yuma0444](https://discourse.processing.org/u/Yuma0444)\
**Replies:** 6\
**Last updated:** [December 4, 2018, 5:24pm UTC](https://discourse.processing.org/t/flappy-bird-beginner/6284 "2018-12-04T17:24:34Z")

</div>

I’m a beginner in processing and I’m making the flappy bird but, I’m stacked on the bar section. //Final\_project int x = 0; int y = 0; int value = 0; Bar\[\] bars; void setup() { size(500, 600); background(200); bars = n…

---

## [Audio frequence](https://discourse.processing.org/t/audio-frequence/21953)

<div class="topic-metadata">

**Author:** [@iamthatoli](https://discourse.processing.org/u/iamthatoli)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 4:30pm UTC](https://discourse.processing.org/t/audio-frequence/21953 "2020-06-17T16:30:29Z")

</div>

What audio rate (kbit/s) should I use if i want to embeed it into my project?

---

## [How do I make a loop that only runs once?](https://discourse.processing.org/t/how-do-i-make-a-loop-that-only-runs-once/21928)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 3\
**Last updated:** [June 17, 2020, 4:02pm UTC](https://discourse.processing.org/t/how-do-i-make-a-loop-that-only-runs-once/21928 "2020-06-17T16:02:26Z")

</div>

For a project, I want to change the background for the starting screen every time it is loaded up. So the user opens the program and the background is displayed, they play for a bit, press a key to reset and go back to t…

---

## [Problems with my mini game](https://discourse.processing.org/t/problems-with-my-mini-game/21949)

<div class="topic-metadata">

**Author:** [@iamthatoli](https://discourse.processing.org/u/iamthatoli)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 3:55pm UTC](https://discourse.processing.org/t/problems-with-my-mini-game/21949 "2020-06-17T15:55:39Z")

</div>

Hey Guys! I have a problem with my mini game I want my circles to spawn after 1 second each of them. Can anyone pls help me? //Array deklarieren float\[\] x; float\[\] y; float xDir\[\]; float yDir\[\]; float xrect = random(1…

---

## [Who is learning to code using JavaScript and p5.js? What can you say about your experience?](https://discourse.processing.org/t/who-is-learning-to-code-using-javascript-and-p5-js-what-can-you-say-about-your-experience/21903)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 1:51pm UTC](https://discourse.processing.org/t/who-is-learning-to-code-using-javascript-and-p5-js-what-can-you-say-about-your-experience/21903 "2020-06-17T13:51:47Z")

</div>

Who is learning to code using JavaScript and p5.js? What can you say about your experience? How old are you? What are your programming goals?

---

## [Natural "first person like" turning/moving in P3D](https://discourse.processing.org/t/natural-first-person-like-turning-moving-in-p3d/21854)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 10:39am UTC](https://discourse.processing.org/t/natural-first-person-like-turning-moving-in-p3d/21854 "2020-06-17T10:39:17Z")

</div>

Hey everyone, I think I’m making something more difficult than it needs to be. To begin with I am simply trying to be able to turn the camera in the P3D environment so that when I then move forward, the camera moves in …

---

## [Making a simple counter/timer](https://discourse.processing.org/t/making-a-simple-counter-timer/21923)

<div class="topic-metadata">

**Author:** [@AverageBiped](https://discourse.processing.org/u/AverageBiped)\
**Replies:** 7\
**Last updated:** [June 17, 2020, 8:06am UTC](https://discourse.processing.org/t/making-a-simple-counter-timer/21923 "2020-06-17T08:06:24Z")

</div>

I am trying to do something very simple and can’t figure out how. I want to implement a counter that counts from 0 to 12, printing out 1 number per second (so on run it will immediately print “0”, followed by “1” 1 seco…

---

## [How to use web crawling after you enter something to a online site?](https://discourse.processing.org/t/how-to-use-web-crawling-after-you-enter-something-to-a-online-site/21865)

<div class="topic-metadata">

**Author:** [@SilverPrevail](https://discourse.processing.org/u/SilverPrevail)\
**Replies:** 5\
**Last updated:** [June 17, 2020, 12:58am UTC](https://discourse.processing.org/t/how-to-use-web-crawling-after-you-enter-something-to-a-online-site/21865 "2020-06-17T00:58:03Z")

</div>

For instance, if I try to use a matrix calculator site (https://matrixcalc.org/) from my code, I have to enter my matrices into a site, and then use web crawling to get the answer. Like this example, I need to get the r…

---

## [Looking in Folders and Building Arrays of contents on program startup](https://discourse.processing.org/t/looking-in-folders-and-building-arrays-of-contents-on-program-startup/21902)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 1:02am UTC](https://discourse.processing.org/t/looking-in-folders-and-building-arrays-of-contents-on-program-startup/21902 "2020-06-17T01:02:43Z")

</div>

Hello, I Have been reviewing this page on listing the contents of directories and sub directories Processing Directory List My question now is how to work with this data effectively once gathered. I say “effectively”…

---

## [Problem with transparent png](https://discourse.processing.org/t/problem-with-transparent-png/21930)

<div class="topic-metadata">

**Author:** [@MartinGo](https://discourse.processing.org/u/MartinGo)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 11:02pm UTC](https://discourse.processing.org/t/problem-with-transparent-png/21930 "2020-06-16T23:02:22Z")

</div>

Hi, I’m trying to draw something with “image” wich in other programs (like Photoshop or others) looks with soft borders but when I draw it inside Processing it looks with jagged edges. What is wrong?

[Previous page](https://discourse.processing.org/c/processing/6.md?page=198)

[Next page](https://discourse.processing.org/c/processing/6.md?page=200)
