# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&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

---

## [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?

---

## [Trouble running the IDE and file placement](https://discourse.processing.org/t/trouble-running-the-ide-and-file-placement/21922)

<div class="topic-metadata">

**Author:** [@dmazzoni](https://discourse.processing.org/u/dmazzoni)\
**Replies:** 1\
**Last updated:** [June 16, 2020, 9:11pm UTC](https://discourse.processing.org/t/trouble-running-the-ide-and-file-placement/21922 "2020-06-16T21:11:39Z")

</div>

I’m having a heck of a time trying to get I3 running consistently. I thought I figured out the required directory structure, but now nothing works. I’m trying to run examples in Chapter 3 of the book. Today, however, all…

---

## [How to draw bitmap array in Processing?](https://discourse.processing.org/t/how-to-draw-bitmap-array-in-processing/21875)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 8:07pm UTC](https://discourse.processing.org/t/how-to-draw-bitmap-array-in-processing/21875 "2020-06-16T20:07:27Z")

</div>

Hi, I have three points in my question: How to draw this bitmap array in Processing ? I also want to scale up the final output drawing. Would Processing accept my C coding ? This is my code: bitmap draw file: void…

---

## [How would I create function to select newest object in array list](https://discourse.processing.org/t/how-would-i-create-function-to-select-newest-object-in-array-list/21925)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 2\
**Last updated:** [June 16, 2020, 5:39pm UTC](https://discourse.processing.org/t/how-would-i-create-function-to-select-newest-object-in-array-list/21925 "2020-06-16T17:39:30Z")

</div>

For a project, I am making a game where users can press a key to add legos. However, I also want there to be a key for them to delete the last lego placed. Right now I can delete the first lego placed using Legos.remove(…

---

## [Fullscreen, what do I miss here?](https://discourse.processing.org/t/fullscreen-what-do-i-miss-here/21917)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 1:19pm UTC](https://discourse.processing.org/t/fullscreen-what-do-i-miss-here/21917 "2020-06-16T13:19:21Z")

</div>

Objects doesn’t adapt to fullscreen size. A tiny ball in on a large screen. What do I miss here? float ellipseX = (width / 2); float ellipseY = (height / 10); int rectX = ((width / 2) - 10); int rectY = (height - 10); f…

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

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