# Processing

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

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

**Page:** 140

---

## [Tower Hanoi - Why recursive draw only first and last steps?](https://discourse.processing.org/t/tower-hanoi-why-recursive-draw-only-first-and-last-steps/28923)

<div class="topic-metadata">

**Author:** [@dyehuda](https://discourse.processing.org/u/dyehuda)\
**Replies:** 4\
**Last updated:** [April 7, 2021, 3:07pm UTC](https://discourse.processing.org/t/tower-hanoi-why-recursive-draw-only-first-and-last-steps/28923 "2021-04-07T15:07:39Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int h=50; int w=100; int size=3; int flag=0; int\[\]\[\] Array = { {1,2,3}, {0,0,0}, {0,0,0 } }; int\[\] Top={ 0, -1, 2, 2}; void setup() { size(1200,…

---

## [Updating pixels on a live video stream](https://discourse.processing.org/t/updating-pixels-on-a-live-video-stream/29187)

<div class="topic-metadata">

**Author:** [@bandhavya](https://discourse.processing.org/u/bandhavya)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 1:31pm UTC](https://discourse.processing.org/t/updating-pixels-on-a-live-video-stream/29187 "2021-04-07T13:31:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Here is my code. https://editor.p5js.org/bandhavya/sketches/BCFYuQzS- Im unable to update the pixels of a live video. Please suggest how to pro…

---

## [Piano on arduino and processing](https://discourse.processing.org/t/piano-on-arduino-and-processing/29159)

<div class="topic-metadata">

**Author:** [@sugievlos](https://discourse.processing.org/u/sugievlos)\
**Replies:** 5\
**Last updated:** [April 7, 2021, 1:30pm UTC](https://discourse.processing.org/t/piano-on-arduino-and-processing/29159 "2021-04-07T13:30:17Z")

</div>

Hello everyone! I have a problem with a project and I was wondering if one of you could help me, im new to processing :smile:. I have to do a piano on arduino, and with processing, play the note on my computers’s speake…

---

## [Jittery Collision Bug](https://discourse.processing.org/t/jittery-collision-bug/29181)

<div class="topic-metadata">

**Author:** [@Tasperen](https://discourse.processing.org/u/Tasperen)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 10:25am UTC](https://discourse.processing.org/t/jittery-collision-bug/29181 "2021-04-07T10:25:05Z")

</div>

I’m getting a Jitter effect on my collision system. I have a guess but not completely sure. I’ve been researching collisions for a month now and finally got my code working with a very basic solution. Unfortunately, with…

---

## [Processing 4.0 release date?](https://discourse.processing.org/t/processing-4-0-release-date/29179)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 6:12am UTC](https://discourse.processing.org/t/processing-4-0-release-date/29179 "2021-04-07T06:12:12Z")

</div>

Hi, exists any estimated dato to Processing 4.0 release?

---

## [Rotate and flipY axis of multiple RGBpixels images](https://discourse.processing.org/t/rotate-and-flipy-axis-of-multiple-rgbpixels-images/27445)

<div class="topic-metadata">

**Author:** [@ashk](https://discourse.processing.org/u/ashk)\
**Replies:** 3\
**Last updated:** [April 6, 2021, 11:58pm UTC](https://discourse.processing.org/t/rotate-and-flipy-axis-of-multiple-rgbpixels-images/27445 "2021-04-06T23:58:58Z")

</div>

\< I have created 4 images from pixels in a grid format. I want to flip two images in x and y axis. Rotate one image on its own places and keep one as it is. Please help. PImage source, imgFlipxaxis, imgFlipyaxis, imgFl…

---

## [Processing examples: Reach2](https://discourse.processing.org/t/processing-examples-reach2/29143)

<div class="topic-metadata">

**Author:** [@pokelan](https://discourse.processing.org/u/pokelan)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 10:15pm UTC](https://discourse.processing.org/t/processing-examples-reach2/29143 "2021-04-06T22:15:08Z")

</div>

Hi all I am trying to understand this Processing example: https://processing.org/examples/reach2.html And some parts confuse me. reachSegment(0, mouseX, mouseY); for(int i=1; i\<numSegments; i++) { reachSegment(…

---

## [Cursor and mouse position alignment](https://discourse.processing.org/t/cursor-and-mouse-position-alignment/29116)

<div class="topic-metadata">

**Author:** [@Criste44](https://discourse.processing.org/u/Criste44)\
**Replies:** 1\
**Last updated:** [April 6, 2021, 9:43pm UTC](https://discourse.processing.org/t/cursor-and-mouse-position-alignment/29116 "2021-04-06T21:43:34Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to highlight tiles, that are hovered by the mouse. This is my code: void Update () { Ray ray = Camera.main.ScreenPointToRay(Input.m…

---

## [Creating screen boundaries](https://discourse.processing.org/t/creating-screen-boundaries/28855)

<div class="topic-metadata">

**Author:** [@NewProgrammer123](https://discourse.processing.org/u/NewProgrammer123)\
**Replies:** 22\
**Last updated:** [April 6, 2021, 6:30pm UTC](https://discourse.processing.org/t/creating-screen-boundaries/28855 "2021-04-06T18:30:41Z")

</div>

Hello, I am making a simple game but as a beginner I cannot find a way to do the following. It a moving square but I want to write an IF statement so that when it hits the edge of the window for the game to restart. I al…

---

## [Basic word cloud without overlapping](https://discourse.processing.org/t/basic-word-cloud-without-overlapping/26316)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 1:06pm UTC](https://discourse.processing.org/t/basic-word-cloud-without-overlapping/26316 "2021-04-06T13:06:07Z")

</div>

Dear all, I would like to build a basic word cloud, but I have issue with overlapping and placing text. I have seen a mention of a wordcloud library “wordcram.org” but it seems obselete. The code below is based on 9…

---

## [How to add new words in a string and display them to create a word-cloud](https://discourse.processing.org/t/how-to-add-new-words-in-a-string-and-display-them-to-create-a-word-cloud/5951)

<div class="topic-metadata">

**Author:** [@polispace](https://discourse.processing.org/u/polispace)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 11:22am UTC](https://discourse.processing.org/t/how-to-add-new-words-in-a-string-and-display-them-to-create-a-word-cloud/5951 "2021-04-06T11:22:18Z")

</div>

Hi everyone. I’m doing an installation for a project, this is my stand point. What do I want to achieve: A program that display a word-cloud (the more a specific word has been say, the bigger it appears in the word cl…

---

## [How to implement this wave animation (link provided)](https://discourse.processing.org/t/how-to-implement-this-wave-animation-link-provided/29153)

<div class="topic-metadata">

**Author:** [@fsterg](https://discourse.processing.org/u/fsterg)\
**Replies:** 2\
**Last updated:** [April 6, 2021, 10:52am UTC](https://discourse.processing.org/t/how-to-implement-this-wave-animation-link-provided/29153 "2021-04-06T10:52:39Z")

</div>

Please have a look at this animation. Do you think it would be possible to implement it using Processing? The text should be dynamic (keyboard input), but first I want to do the wave animation part. I’m searching usin…

---

## [Is there a "file -\> open" possibility inside of a sketch?](https://discourse.processing.org/t/is-there-a-file-open-possibility-inside-of-a-sketch/29102)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 6\
**Last updated:** [April 5, 2021, 7:06pm UTC](https://discourse.processing.org/t/is-there-a-file-open-possibility-inside-of-a-sketch/29102 "2021-04-05T19:06:52Z")

</div>

I am using the sketch to read various CSV files that have a date in them. Then I interpret the data and make graphs out of it. I use table = loadTable(“Infinity\_Report\_3\_31\_2021.csv”, “header”); Then I populate arra…

---

## [How can I 3d rotate a shape while using size(P2D)?](https://discourse.processing.org/t/how-can-i-3d-rotate-a-shape-while-using-size-p2d/29134)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 5\
**Last updated:** [April 5, 2021, 6:59pm UTC](https://discourse.processing.org/t/how-can-i-3d-rotate-a-shape-while-using-size-p2d/29134 "2021-04-05T18:59:10Z")

</div>

Hi! I designed a 3D sign using PSHAPE on a P3D environment. The problem is I want to use it in a mixed 2D/3D environment /\* displaying text or 2d graphics on a 3d canvas is a pain. But we can cast a 3d canvas inside…

---

## [Beads is using too much memory](https://discourse.processing.org/t/beads-is-using-too-much-memory/27975)

<div class="topic-metadata">

**Author:** [@morusque](https://discourse.processing.org/u/morusque)\
**Replies:** 9\
**Last updated:** [April 5, 2021, 5:08pm UTC](https://discourse.processing.org/t/beads-is-using-too-much-memory/27975 "2021-04-05T17:08:23Z")

</div>

hello, I am using the Beads library to play many sound files, sometimes simultaneously. As new files get periodically loaded and played I want the old ones to stop and be unloaded. But even when I explicitly ask Beads…

---

## [Mix 2d and 3d drawings](https://discourse.processing.org/t/mix-2d-and-3d-drawings/29125)

<div class="topic-metadata">

**Author:** [@KelvinLamptey](https://discourse.processing.org/u/KelvinLamptey)\
**Replies:** 1\
**Last updated:** [April 5, 2021, 2:21pm UTC](https://discourse.processing.org/t/mix-2d-and-3d-drawings/29125 "2021-04-05T14:21:12Z")

</div>

Please how do I draw 2d shapes in 3d mode. With processing in Android. With the APDE.

---

## [Scrolling text in different text sizes](https://discourse.processing.org/t/scrolling-text-in-different-text-sizes/28383)

<div class="topic-metadata">

**Author:** [@Ida](https://discourse.processing.org/u/Ida)\
**Replies:** 1\
**Last updated:** [April 5, 2021, 3:19am UTC](https://discourse.processing.org/t/scrolling-text-in-different-text-sizes/28383 "2021-04-05T03:19:05Z")

</div>

Hello, My code writes lines to the screen after the previous one has left it. Is there a possibility to write the lines directly unter the other and not wait until one has left the screen, just like on a website? I als…

---

## [Using OscP5 in native Android environment](https://discourse.processing.org/t/using-oscp5-in-native-android-environment/29118)

<div class="topic-metadata">

**Author:** [@5tefan](https://discourse.processing.org/u/5tefan)\
**Replies:** 0\
**Last updated:** [April 4, 2021, 6:23pm UTC](https://discourse.processing.org/t/using-oscp5-in-native-android-environment/29118 "2021-04-04T18:23:15Z")

</div>

Hello, I’m not sure this is the right forum for my question but as it concerns OscP5 I thought I give it a try. I’m working on an Android application, using OscP5 in a native Android environment (i.e. not Android mode …

---

## [I have a club laser, now to... ...](https://discourse.processing.org/t/i-have-a-club-laser-now-to/28981)

<div class="topic-metadata">

**Author:** [@TheBuildingShow](https://discourse.processing.org/u/TheBuildingShow)\
**Replies:** 4\
**Last updated:** [April 4, 2021, 4:12pm UTC](https://discourse.processing.org/t/i-have-a-club-laser-now-to/28981 "2021-04-04T16:12:18Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi friends, I recently bought a Kvant laser, it’s amazing. I’m trying to see if there’s any processing code that I can upload to it. Within the…

---

## [Copy objects correctly](https://discourse.processing.org/t/copy-objects-correctly/29110)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 6\
**Last updated:** [April 4, 2021, 10:49am UTC](https://discourse.processing.org/t/copy-objects-correctly/29110 "2021-04-04T10:49:52Z")

</div>

I am currently trying to make a program to play chess. I have the following problem. I want to duplicate my object from my board-class and check and evaluate the position. However when I apply a method to a direct cop…

---

## [Help with operator "&&"](https://discourse.processing.org/t/help-with-operator/29103)

<div class="topic-metadata">

**Author:** [@Dialias](https://discourse.processing.org/u/Dialias)\
**Replies:** 3\
**Last updated:** [April 4, 2021, 12:22am UTC](https://discourse.processing.org/t/help-with-operator/29103 "2021-04-04T00:22:04Z")

</div>

Hey i have a problem with my code. the console says , unexpected tocen ,&&" in th lower code. import processing.pdf.\*; int money; int mpc; //money per click int owned1; //owned first upgrade boolean buy1;…

---

## [How to get and install Unfolding Map v0.9.9beta library?](https://discourse.processing.org/t/how-to-get-and-install-unfolding-map-v0-9-9beta-library/7363)

<div class="topic-metadata">

**Author:** [@fabwoj](https://discourse.processing.org/u/fabwoj)\
**Replies:** 21\
**Last updated:** [April 3, 2021, 1:57pm UTC](https://discourse.processing.org/t/how-to-get-and-install-unfolding-map-v0-9-9beta-library/7363 "2021-04-03T13:57:07Z")

</div>

Hi there, I would like to use unfolding maps under P3. I saw on the forum that this seems possible using Unfolding Map v0.9.9beta library. Where can I get this library ? Does it work fine ? Thank you very much. Best …

---

## [SVG Element Explosion](https://discourse.processing.org/t/svg-element-explosion/29083)

<div class="topic-metadata">

**Author:** [@p\_a](https://discourse.processing.org/u/p_a)\
**Replies:** 9\
**Last updated:** [April 3, 2021, 12:54pm UTC](https://discourse.processing.org/t/svg-element-explosion/29083 "2021-04-03T12:54:45Z")

</div>

Hi! Is it possible to: Load an SVG get access to all elements (shapes) of that SVG let them drift apart and back together again? Should look like the whole shape explodes, but build itself back together. If it’s not …

---

## [PacMan moving left and right with chomp, not game](https://discourse.processing.org/t/pacman-moving-left-and-right-with-chomp-not-game/29067)

<div class="topic-metadata">

**Author:** [@Panda](https://discourse.processing.org/u/Panda)\
**Replies:** 7\
**Last updated:** [April 3, 2021, 11:56am UTC](https://discourse.processing.org/t/pacman-moving-left-and-right-with-chomp-not-game/29067 "2021-04-03T11:56:37Z")

</div>

Hello. Coding student here. Trying to understand how to make a Pacman character move across the screen while chomping. Once he hits the edge of the window, turns around and goes back the other way. This is one example o…

---

## [Problems with converting a String to a float](https://discourse.processing.org/t/problems-with-converting-a-string-to-a-float/28761)

<div class="topic-metadata">

**Author:** [@Nick2](https://discourse.processing.org/u/Nick2)\
**Replies:** 12\
**Last updated:** [April 3, 2021, 9:46am UTC](https://discourse.processing.org/t/problems-with-converting-a-string-to-a-float/28761 "2021-04-03T09:46:15Z")

</div>

Hi! Im trying to display my sensor temperature thats hooked up with the arduino. The project is basiclly to display temperature in little rectangles with the colors:RGB, but to do that I first have to split my String an…

---

## [Storing all index permutations with Heap's algorithm](https://discourse.processing.org/t/storing-all-index-permutations-with-heaps-algorithm/22326)

<div class="topic-metadata">

**Author:** [@hsolatges](https://discourse.processing.org/u/hsolatges)\
**Replies:** 6\
**Last updated:** [April 3, 2021, 4:08am UTC](https://discourse.processing.org/t/storing-all-index-permutations-with-heaps-algorithm/22326 "2021-04-03T04:08:51Z")

</div>

Hi, I am new on Processing and I am struggling with Java. I am trying to use Heap’s algorithm to get the list of all the permutations of numbers. I want to store that list so I wan use it as a matrix for animation. I …

---

## [Conditioning the sketch on finding the COM port trouble](https://discourse.processing.org/t/conditioning-the-sketch-on-finding-the-com-port-trouble/28910)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 8\
**Last updated:** [April 3, 2021, 2:32am UTC](https://discourse.processing.org/t/conditioning-the-sketch-on-finding-the-com-port-trouble/28910 "2021-04-03T02:32:12Z")

</div>

I have a sketch that talks to an Arduino. I would like it to stop and warn me when the arduino is not present so I tried: void setup() { size(1900, 950, JAVA2D); printArray(Serial.list()); if (Serial.list().le…

---

## [P2D vs JAVA2D Source-over alpha problems](https://discourse.processing.org/t/p2d-vs-java2d-source-over-alpha-problems/28957)

<div class="topic-metadata">

**Author:** [@plutovman](https://discourse.processing.org/u/plutovman)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 7:24pm UTC](https://discourse.processing.org/t/p2d-vs-java2d-source-over-alpha-problems/28957 "2021-04-02T19:24:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I know this question has been asked in one form of another, but I wanted to pose it here in terms of getting the default blend drawing mode to w…

---

## [3d view maze generator (java/android)](https://discourse.processing.org/t/3d-view-maze-generator-java-android/29057)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 4:53pm UTC](https://discourse.processing.org/t/3d-view-maze-generator-java-android/29057 "2021-04-02T16:53:29Z")

</div>

Hi! I made a small maze generator. My idea was to made a first-person maze escape game. But, as you can see in the code below, 3d view is weird. You can change the value of show3d to make sure the camera is not inside …

---

## [Drawing PImages or PShapes with color modulation](https://discourse.processing.org/t/drawing-pimages-or-pshapes-with-color-modulation/29052)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 8\
**Last updated:** [April 2, 2021, 3:28pm UTC](https://discourse.processing.org/t/drawing-pimages-or-pshapes-with-color-modulation/29052 "2021-04-02T15:28:25Z")

</div>

is there any native way to print a PImage (or a PShape) with additional arguments to change the hue saturation or brightness? i would love to be able to do like image(file,x,y,w,h,hueShift,saturationShift,brightnessShift…

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

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