# Processing

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

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

**Page:** 284

---

## [Mouse position, camera and player movement](https://discourse.processing.org/t/mouse-position-camera-and-player-movement/12837)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 12\
**Last updated:** [July 20, 2019, 2:57pm UTC](https://discourse.processing.org/t/mouse-position-camera-and-player-movement/12837 "2019-07-20T14:57:36Z")

</div>

Hi, i started working on my player movements and i realise that i have a issue with the the coordinates of my mouse when i’m using a camera method. Here is my code: Player player; LimitOfTheWorld limitoftheworld; PVect…

---

## [Processing for iOS](https://discourse.processing.org/t/processing-for-ios/12798)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [July 20, 2019, 12:00am UTC](https://discourse.processing.org/t/processing-for-ios/12798 "2019-07-20T00:00:08Z")

</div>

If anyone reading this has used the Processing for iOS app by Frederik Riedel and knows how to get a sketch to recognize the first screen tap as mousePressed, please let me know. It seems like the first mousePressed nev…

---

## [How do I create an erasing effect with Kinect?](https://discourse.processing.org/t/how-do-i-create-an-erasing-effect-with-kinect/12828)

<div class="topic-metadata">

**Author:** [@AxeFire](https://discourse.processing.org/u/AxeFire)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 8:27pm UTC](https://discourse.processing.org/t/how-do-i-create-an-erasing-effect-with-kinect/12828 "2019-07-19T20:27:53Z")

</div>

I am trying to create an erasing effect of where the top image will be erased away to reveal another image below. I am using Kinect to control the erasing effect, however it is currently just drawing an ellipse on the to…

---

## [.cue() in SoundFile seems to have suddenly stopped working properly](https://discourse.processing.org/t/cue-in-soundfile-seems-to-have-suddenly-stopped-working-properly/12801)

<div class="topic-metadata">

**Author:** [@bpeterson](https://discourse.processing.org/u/bpeterson)\
**Replies:** 7\
**Last updated:** [July 19, 2019, 8:24pm UTC](https://discourse.processing.org/t/cue-in-soundfile-seems-to-have-suddenly-stopped-working-properly/12801 "2019-07-19T20:24:53Z")

</div>

.cue() seemed to have been working exactly as intended until I saved my processing sketch in a different location. (save as… same name, different location) I thought I was just making a copy of the code so I could safely…

---

## [How to hardware decode video in Processing?](https://discourse.processing.org/t/how-to-hardware-decode-video-in-processing/12761)

<div class="topic-metadata">

**Author:** [@George](https://discourse.processing.org/u/George)\
**Replies:** 4\
**Last updated:** [July 19, 2019, 4:47pm UTC](https://discourse.processing.org/t/how-to-hardware-decode-video-in-processing/12761 "2019-07-19T16:47:09Z")

</div>

Hi, I’ve been using Processing for a while and mainly used the processing-video library to playback H.264 encoded videos. I’ve noticed playback can be quite laggy for 1080p videos: it looks like decoding is done on the…

---

## [How to fill color in chess board](https://discourse.processing.org/t/how-to-fill-color-in-chess-board/12819)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 1:47pm UTC](https://discourse.processing.org/t/how-to-fill-color-in-chess-board/12819 "2019-07-19T13:47:18Z")

</div>

How to fill color in chess board

---

## [I would you like to process at the moment when press Buttons](https://discourse.processing.org/t/i-would-you-like-to-process-at-the-moment-when-press-buttons/12813)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 10:13am UTC](https://discourse.processing.org/t/i-would-you-like-to-process-at-the-moment-when-press-buttons/12813 "2019-07-19T10:13:58Z")

</div>

Hey everyone, I created a System. This System has got Step Motor and Led. I added buttons with Processing on System but I want to use together all Buttons on System. My problem is here. I am pressing button. It is worki…

---

## [Exporting code/copying code/ code management](https://discourse.processing.org/t/exporting-code-copying-code-code-management/12673)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 14\
**Last updated:** [July 19, 2019, 11:02am UTC](https://discourse.processing.org/t/exporting-code-copying-code-code-management/12673 "2019-07-19T11:02:54Z")

</div>

I like to use multiple tabs to organise my code in processing, and was wandering if there was a simple way to grab all the code and paste it anywhere else, without having to check through all the tabs. Also is there a f…

---

## [Help understanding code](https://discourse.processing.org/t/help-understanding-code/12799)

<div class="topic-metadata">

**Author:** [@Jackieh111](https://discourse.processing.org/u/Jackieh111)\
**Replies:** 3\
**Last updated:** [July 19, 2019, 10:11am UTC](https://discourse.processing.org/t/help-understanding-code/12799 "2019-07-19T10:11:52Z")

</div>

Hi The code below works but I don’t understand why to check boundaries I check boxSize/2 - ballSize instead of just boxSize-ballSize. I’m clearly not understanding something here. Can anyone explain it to me please? PV…

---

## [Advices to create a player GUI and inventory](https://discourse.processing.org/t/advices-to-create-a-player-gui-and-inventory/12810)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 9:59am UTC](https://discourse.processing.org/t/advices-to-create-a-player-gui-and-inventory/12810 "2019-07-19T09:59:11Z")

</div>

Hi, first i would like to thanks everybody in this community for the help and advices i recieved. With your help i manage to create a little ecosystem with 10 species and their basic behavior. here a little video i mak…

---

## [\[Processing net POST request\] Error : Client got end of stream](https://discourse.processing.org/t/processing-net-post-request-error-client-got-end-of-stream/12339)

<div class="topic-metadata">

**Author:** [@Dupond](https://discourse.processing.org/u/Dupond)\
**Replies:** 12\
**Last updated:** [July 19, 2019, 7:03am UTC](https://discourse.processing.org/t/processing-net-post-request-error-client-got-end-of-stream/12339 "2019-07-19T07:03:15Z")

</div>

Hello ! I want to send data from arduino to a local server via a serial connection. I have found this example online but I have an End of stream error when I execute the code. This is follows by many java.lang.NullPoint…

---

## [Using Frames to Display a 3rd Party App?](https://discourse.processing.org/t/using-frames-to-display-a-3rd-party-app/12788)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 4:35am UTC](https://discourse.processing.org/t/using-frames-to-display-a-3rd-party-app/12788 "2019-07-19T04:35:29Z")

</div>

Hello All, I’m using Processing ver. 3.3x and would like to Open/Launch a 3rd Party software to run within a “contained” frame. Is this possible? Please direct me to any functions/documents for further reading, or a …

---

## [Detect direction from video motion and apply it to Particle System](https://discourse.processing.org/t/detect-direction-from-video-motion-and-apply-it-to-particle-system/9111)

<div class="topic-metadata">

**Author:** [@meniossin](https://discourse.processing.org/u/meniossin)\
**Replies:** 5\
**Last updated:** [July 19, 2019, 2:57am UTC](https://discourse.processing.org/t/detect-direction-from-video-motion-and-apply-it-to-particle-system/9111 "2019-07-19T02:57:30Z")

</div>

Greetings, Newcomer in this forum and currently an apprentice with Processing. I did a lot of research in the previous processing forums and in this one but I haven’t found a resource/answer that will apply to the curr…

---

## [REALLY basic functions problem](https://discourse.processing.org/t/really-basic-functions-problem/12794)

<div class="topic-metadata">

**Author:** [@EmptyAtoms](https://discourse.processing.org/u/EmptyAtoms)\
**Replies:** 12\
**Last updated:** [July 18, 2019, 6:59pm UTC](https://discourse.processing.org/t/really-basic-functions-problem/12794 "2019-07-18T18:59:45Z")

</div>

Hi all, So I’ve been given an assignment to produce a function that gets the lowest value of an array, then stores that value and uses it to color a circle, and write that same value onto that circle. I cannot get my f…

---

## [Why vector.nomalize() do not print 1?](https://discourse.processing.org/t/why-vector-nomalize-do-not-print-1/12770)

<div class="topic-metadata">

**Author:** [@andresobregonl](https://discourse.processing.org/u/andresobregonl)\
**Replies:** 4\
**Last updated:** [July 18, 2019, 3:53pm UTC](https://discourse.processing.org/t/why-vector-nomalize-do-not-print-1/12770 "2019-07-18T15:53:45Z")

</div>

// Ex 1.6 Normalizing a vector The Nature of Code void draw() { background(255); PVector mouse = new PVector(mouseX,mouseY); PVector center = new PVector(width/2,height/2); //sub() — subtract vectors mouse.sub(cent…

---

## [Accessing Two USB Ports in One Program](https://discourse.processing.org/t/accessing-two-usb-ports-in-one-program/12790)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 1\
**Last updated:** [July 18, 2019, 2:41pm UTC](https://discourse.processing.org/t/accessing-two-usb-ports-in-one-program/12790 "2019-07-18T14:41:17Z")

</div>

Hello Everyone, I’d like to perfect/enhance my ability to access data from two different USB devices. My code works fine, and I’m able to grab data from both devices, but I know it’s a novice approach. Is there a meth…

---

## [How to use for loops with transformations in processing?](https://discourse.processing.org/t/how-to-use-for-loops-with-transformations-in-processing/12782)

<div class="topic-metadata">

**Author:** [@phanirithvij](https://discourse.processing.org/u/phanirithvij)\
**Replies:** 5\
**Last updated:** [July 18, 2019, 12:52pm UTC](https://discourse.processing.org/t/how-to-use-for-loops-with-transformations-in-processing/12782 "2019-07-18T12:52:46Z")

</div>

So this is the code I wrote which I intend to draw n lines starting from a single point. Each separated by an angle of 2\*PI / n. int n; void setup(){ size(displayWidth, displayHeight); n = 7; } void draw(){ bac…

---

## [Create "random" function in processing.js?](https://discourse.processing.org/t/create-random-function-in-processing-js/12777)

<div class="topic-metadata">

**Author:** [@demsp](https://discourse.processing.org/u/demsp)\
**Replies:** 2\
**Last updated:** [July 18, 2019, 7:46am UTC](https://discourse.processing.org/t/create-random-function-in-processing-js/12777 "2019-07-18T07:46:15Z")

</div>

This function turn back a random number IntList listRand; void setup() { listRand=new IntList(); // void draw() { } int randm(int a,int b){ int y; int x=int( random(a,b) ); if (listRand.hasValue(x) == false) { …

---

## [Hitbox and death counter](https://discourse.processing.org/t/hitbox-and-death-counter/12763)

<div class="topic-metadata">

**Author:** [@Prantzz](https://discourse.processing.org/u/Prantzz)\
**Replies:** 5\
**Last updated:** [July 17, 2019, 7:12pm UTC](https://discourse.processing.org/t/hitbox-and-death-counter/12763 "2019-07-17T19:12:09Z")

</div>

Hey there, i’m new to processing and programming in general, so go easy on me :smiley: Well, i was writing this simple game for processing 3, and found myself into some difficulties. I Made 2 tabs, one for the main cod…

---

## [Var not iterating problem • Use all row values to iterate CSV column with for loop to playNote()](https://discourse.processing.org/t/var-not-iterating-problem-use-all-row-values-to-iterate-csv-column-with-for-loop-to-playnote/12590)

<div class="topic-metadata">

**Author:** [@Gus\_Fermin](https://discourse.processing.org/u/Gus_Fermin)\
**Replies:** 18\
**Last updated:** [July 17, 2019, 2:57pm UTC](https://discourse.processing.org/t/var-not-iterating-problem-use-all-row-values-to-iterate-csv-column-with-for-loop-to-playnote/12590 "2019-07-17T14:57:35Z")

</div>

Hello there, I wanted to share my code with you, I feel that there is something crucial that I have not understood keeping me from moving forward, so I ask for your help hoping that somebody shares with me their opinion…

---

## [Help making code more concise](https://discourse.processing.org/t/help-making-code-more-concise/12734)

<div class="topic-metadata">

**Author:** [@r8th](https://discourse.processing.org/u/r8th)\
**Replies:** 8\
**Last updated:** [July 17, 2019, 2:56pm UTC](https://discourse.processing.org/t/help-making-code-more-concise/12734 "2019-07-17T14:56:57Z")

</div>

Dear community, I am trying to capture 2 seconds-worth of frames, every 30 minutes using a webcam. The following code works, but I feel that there must be a more concise way to write this. I’ve searched but cannot find …

---

## [I Want to Add Text on the Button](https://discourse.processing.org/t/i-want-to-add-text-on-the-button/12756)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 7\
**Last updated:** [July 17, 2019, 2:49pm UTC](https://discourse.processing.org/t/i-want-to-add-text-on-the-button/12756 "2019-07-17T14:49:18Z")

</div>

Hello my dear friends, I am adding button for open the led. I want to write text on the Button. I am adding text but I can’t see this. Text is under the Button. I want to see that. I am sharing codes. I want to text “ST…

---

## [Trigger sound when data == x](https://discourse.processing.org/t/trigger-sound-when-data-x/12701)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 13\
**Last updated:** [July 17, 2019, 1:13am UTC](https://discourse.processing.org/t/trigger-sound-when-data-x/12701 "2019-07-17T01:13:12Z")

</div>

Hi, I would like to trigger sound when I receive data=0. But sometimes It works, sometimes it doesn’t. Maybe because my program doesn’t actualise itself enough quickly? here my program import processing.serial.\*; /…

---

## [Changing the color of black pixels in area](https://discourse.processing.org/t/changing-the-color-of-black-pixels-in-area/12748)

<div class="topic-metadata">

**Author:** [@hensn](https://discourse.processing.org/u/hensn)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 10:41pm UTC](https://discourse.processing.org/t/changing-the-color-of-black-pixels-in-area/12748 "2019-07-16T22:41:26Z")

</div>

Hi, I loaded a binary image (only black and white pixels) into processing. I want the user to be able to click on an area of the image (say a circle around the cursor) and each black pixel within that area then changes …

---

## [How do I add external libraries to Processing?](https://discourse.processing.org/t/how-do-i-add-external-libraries-to-processing/12750)

<div class="topic-metadata">

**Author:** [@BeastCoder](https://discourse.processing.org/u/BeastCoder)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 3:48pm UTC](https://discourse.processing.org/t/how-do-i-add-external-libraries-to-processing/12750 "2019-07-16T15:48:04Z")

</div>

I am unable to add external libraries to processing. I’ve followed multiple tutorials and looked at other questions but none of them do the job. I’ve unzipped the library and put it into the libraries folder inside of …

---

## [Cannot import libraries](https://discourse.processing.org/t/cannot-import-libraries/12716)

<div class="topic-metadata">

**Author:** [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Replies:** 13\
**Last updated:** [July 16, 2019, 6:42pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716 "2019-07-16T18:42:49Z")

</div>

Hello all, I’m a beginner to Processing, I’ve been using it for a few months now and everything is going great. Today I was hoping to start working with sound, and so I needed to import the sound library. I saw it could…

---

## [Feature request: Find dialog additions](https://discourse.processing.org/t/feature-request-find-dialog-additions/12709)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 7\
**Last updated:** [July 15, 2019, 3:23pm UTC](https://discourse.processing.org/t/feature-request-find-dialog-additions/12709 "2019-07-15T15:23:47Z")

</div>

It would be really great if the IDE Find dialog had a checkbox for “In Selection” and for “Find Whole Word Only”

---

## [G4P Font for Textfield](https://discourse.processing.org/t/g4p-font-for-textfield/12732)

<div class="topic-metadata">

**Author:** [@madscientist](https://discourse.processing.org/u/madscientist)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 4:16pm UTC](https://discourse.processing.org/t/g4p-font-for-textfield/12732 "2019-07-16T16:16:51Z")

</div>

@quark How would I change the font that a G4P Textfield uses? Thanks

---

## [Save image selection into a (different) folder(s)](https://discourse.processing.org/t/save-image-selection-into-a-different-folder-s/12627)

<div class="topic-metadata">

**Author:** [@MissFroes](https://discourse.processing.org/u/MissFroes)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 7:07am UTC](https://discourse.processing.org/t/save-image-selection-into-a-different-folder-s/12627 "2019-07-16T07:07:06Z")

</div>

Hi, I am new in Processing and I have this project that someone has to make an image selection then the selection has to be saved in a specific folder so that when the archive is running again that can save the new selec…

---

## [L system rules for drawing corals](https://discourse.processing.org/t/l-system-rules-for-drawing-corals/12733)

<div class="topic-metadata">

**Author:** [@MustafaMerza](https://discourse.processing.org/u/MustafaMerza)\
**Replies:** 3\
**Last updated:** [July 16, 2019, 6:32am UTC](https://discourse.processing.org/t/l-system-rules-for-drawing-corals/12733 "2019-07-16T06:32:47Z")

</div>

Hello guys, I’m sorry that I’m posting here but I haven’t found any other solution for my problem. I’m using an example code for L-System that comes when downloading examples from “The Nature of Code by Daniel Shiffman…

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

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