# Processing

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

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

**Page:** 331

---

## [Collision detection between avatar and 5 moving circles](https://discourse.processing.org/t/collision-detection-between-avatar-and-5-moving-circles/7466)

<div class="topic-metadata">

**Author:** [@lucadelagua](https://discourse.processing.org/u/lucadelagua)\
**Replies:** 3\
**Last updated:** [January 13, 2019, 2:41pm UTC](https://discourse.processing.org/t/collision-detection-between-avatar-and-5-moving-circles/7466 "2019-01-13T14:41:07Z")

</div>

Hey, I got a task from the university and I don’t know, why I cant detect the collision between my avatar with the 5 ghosts. some lines under voidDraw. Does anyone see the problem? Thanks :slight\_smile: Here is my Code…

---

## [Toxiclibs: many instances of VerletPhysics2D](https://discourse.processing.org/t/toxiclibs-many-instances-of-verletphysics2d/7395)

<div class="topic-metadata">

**Author:** [@mar](https://discourse.processing.org/u/mar)\
**Replies:** 3\
**Last updated:** [January 12, 2019, 11:09pm UTC](https://discourse.processing.org/t/toxiclibs-many-instances-of-verletphysics2d/7395 "2019-01-12T23:09:42Z")

</div>

Hello! II would love to use this cool library for a project. In this project I have many closed physic systems, which need to be computed parallel, like parallel physics worlds. The question is if it is possible to us…

---

## [So I am trying to make a Pacman kinda game](https://discourse.processing.org/t/so-i-am-trying-to-make-a-pacman-kinda-game/7358)

<div class="topic-metadata">

**Author:** [@captainmajere](https://discourse.processing.org/u/captainmajere)\
**Replies:** 2\
**Last updated:** [January 12, 2019, 9:48pm UTC](https://discourse.processing.org/t/so-i-am-trying-to-make-a-pacman-kinda-game/7358 "2019-01-12T21:48:35Z")

</div>

I am new to processing so I am trying to make a pacman kinda game. I want to make the small ball disappear and randomly spawn at another point in screen but I can’t specify the collision. How can I do that? Here is my …

---

## [Processing Webcam Game](https://discourse.processing.org/t/processing-webcam-game/7313)

<div class="topic-metadata">

**Author:** [@aloal](https://discourse.processing.org/u/aloal)\
**Replies:** 3\
**Last updated:** [January 12, 2019, 9:47pm UTC](https://discourse.processing.org/t/processing-webcam-game/7313 "2019-01-12T21:47:37Z")

</div>

Hello Everyone :slight\_smile: My idea was to create a webcam game where different colored bubbles appear, grow and are burst once a bright area (e.g. a phone torch) is shined over them. I have been struggling with the c…

---

## [\[SOLVED\] Gradient color with a mask](https://discourse.processing.org/t/solved-gradient-color-with-a-mask/7435)

<div class="topic-metadata">

**Author:** [@uforange](https://discourse.processing.org/u/uforange)\
**Replies:** 2\
**Last updated:** [January 12, 2019, 5:24pm UTC](https://discourse.processing.org/t/solved-gradient-color-with-a-mask/7435 "2019-01-12T17:24:02Z")

</div>

Hello, I am struggling with applying mask in my sketch. I’ve tried PGraphics, but I have no idea how to make it work. I would like to draw a particular shape(rect or ellipse or triangle) using mask on this gradient colo…

---

## [Processing and Windows 10](https://discourse.processing.org/t/processing-and-windows-10/7411)

<div class="topic-metadata">

**Author:** [@Gils](https://discourse.processing.org/u/Gils)\
**Replies:** 7\
**Last updated:** [January 12, 2019, 5:19pm UTC](https://discourse.processing.org/t/processing-and-windows-10/7411 "2019-01-12T17:19:22Z")

</div>

Hi, Processing does not working on Windows 10 (last update). 64 bits 32Mo of ram. when I try to run Processing it takes more 3 minutes to appear on screen and after I write code setup and draw it takes and other 3 minu…

---

## [Translating horizontally inverted quads](https://discourse.processing.org/t/translating-horizontally-inverted-quads/7364)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 8\
**Last updated:** [January 12, 2019, 3:50pm UTC](https://discourse.processing.org/t/translating-horizontally-inverted-quads/7364 "2019-01-12T15:50:29Z")

</div>

A week ago I asked a question about translations and rotations in Processing. I wanted to: translate, invert and rotate a single quadrilateral (PShape object) multiple times then change the height of one of its 2 top…

---

## [Trail effect on waterfall issue](https://discourse.processing.org/t/trail-effect-on-waterfall-issue/7440)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 1\
**Last updated:** [January 12, 2019, 3:41pm UTC](https://discourse.processing.org/t/trail-effect-on-waterfall-issue/7440 "2019-01-12T15:41:56Z")

</div>

Hi all! I’m trying to implement a simple waterfall sketch, but I’m having an issue with how to show a trail effect on my drops object while moving acros the screen. Here is my code: import java.util.List; import java.ut…

---

## [Trigger a sound file when an object \> width/2](https://discourse.processing.org/t/trigger-a-sound-file-when-an-object-width-2/7438)

<div class="topic-metadata">

**Author:** [@BrokenCode](https://discourse.processing.org/u/BrokenCode)\
**Replies:** 4\
**Last updated:** [January 12, 2019, 1:52pm UTC](https://discourse.processing.org/t/trigger-a-sound-file-when-an-object-width-2/7438 "2019-01-12T13:52:02Z")

</div>

Hello everyone, I’m a bit stack with a rather simple file trigger, the thing is: I have some text() that I can drag and drop, and I would like that when one of them pass the width/2 value, it play a specific sound file…

---

## [Collating .tif images?](https://discourse.processing.org/t/collating-tif-images/7401)

<div class="topic-metadata">

**Author:** [@Bluu](https://discourse.processing.org/u/Bluu)\
**Replies:** 3\
**Last updated:** [January 11, 2019, 4:38pm UTC](https://discourse.processing.org/t/collating-tif-images/7401 "2019-01-11T16:38:54Z")

</div>

I have a script I’m using to capture frames(I made it simpler for understandability’s sake here, so I can’t change it, sorry :frowning: ). I’ve used the processing moviemaker tool in the past, but is there any way to use…

---

## [Interface and classes](https://discourse.processing.org/t/interface-and-classes/7331)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 4\
**Last updated:** [January 11, 2019, 2:09pm UTC](https://discourse.processing.org/t/interface-and-classes/7331 "2019-01-11T14:09:51Z")

</div>

I have several objects of different types which had to be stored in the same arrayList. I did this because most classes share similar functions. ArrayList \<Node\> objectArray = new ArrayList(); With an interface interf…

---

## [How to ADD or Subtract two values from key board and show result in same window?](https://discourse.processing.org/t/how-to-add-or-subtract-two-values-from-key-board-and-show-result-in-same-window/7302)

<div class="topic-metadata">

**Author:** [@Towhid](https://discourse.processing.org/u/Towhid)\
**Replies:** 8\
**Last updated:** [January 11, 2019, 12:49pm UTC](https://discourse.processing.org/t/how-to-add-or-subtract-two-values-from-key-board-and-show-result-in-same-window/7302 "2019-01-11T12:49:43Z")

</div>

Hi, Here I attach screenshot of my processing project. Here I subtract 2 values by putting in my code. but i want to take those values from keyboard after run the program and showing results in that place. MY CODE …

---

## [Sutcliffe Pentagons](https://discourse.processing.org/t/sutcliffe-pentagons/7262)

<div class="topic-metadata">

**Author:** [@Suzie](https://discourse.processing.org/u/Suzie)\
**Replies:** 5\
**Last updated:** [January 11, 2019, 8:12am UTC](https://discourse.processing.org/t/sutcliffe-pentagons/7262 "2019-01-11T08:12:19Z")

</div>

Hi, I am trying to draw a Sutcliffe Pentagons and just get started with processing. I want to start with drawing a recursive pentagon which is in the middle of the Sutcliffe Pentagons but my code only draw one for me. D…

---

## [Reading Phidgets 22 in Processing](https://discourse.processing.org/t/reading-phidgets-22-in-processing/7384)

<div class="topic-metadata">

**Author:** [@rafedigma](https://discourse.processing.org/u/rafedigma)\
**Replies:** 1\
**Last updated:** [January 11, 2019, 4:16am UTC](https://discourse.processing.org/t/reading-phidgets-22-in-processing/7384 "2019-01-11T04:16:06Z")

</div>

Hello, I am trying to get Processing working with Phidgets 22, I found the library Phidgets for Processing but it seems to be only working with previous version of Phidgets 21. I do not know Java to write a new library …

---

## [\[SOLVED\] How do you make a SS Function?](https://discourse.processing.org/t/solved-how-do-you-make-a-ss-function/7406)

<div class="topic-metadata">

**Author:** [@Typhoon](https://discourse.processing.org/u/Typhoon)\
**Replies:** 2\
**Last updated:** [January 11, 2019, 4:14am UTC](https://discourse.processing.org/t/solved-how-do-you-make-a-ss-function/7406 "2019-01-11T04:14:29Z")

</div>

How do you go ahead and make side scrolling in processing?

---

## [Proccessing Game Over funktion](https://discourse.processing.org/t/proccessing-game-over-funktion/7403)

<div class="topic-metadata">

**Author:** [@TheSkyCrafter](https://discourse.processing.org/u/TheSkyCrafter)\
**Replies:** 3\
**Last updated:** [January 11, 2019, 3:22am UTC](https://discourse.processing.org/t/proccessing-game-over-funktion/7403 "2019-01-11T03:22:41Z")

</div>

Hello, I have created a little game in progress. You can move the character in the X position and fall down from above. You have a random X position and a random speed. If you run into an obstacle, I want the Gamestate v…

---

## [\[SOLVED\] Question about flipping Images](https://discourse.processing.org/t/solved-question-about-flipping-images/7391)

<div class="topic-metadata">

**Author:** [@Typhoon](https://discourse.processing.org/u/Typhoon)\
**Replies:** 7\
**Last updated:** [January 10, 2019, 10:15pm UTC](https://discourse.processing.org/t/solved-question-about-flipping-images/7391 "2019-01-10T22:15:39Z")

</div>

How do you go ahead and flip an array of images in processing? Im trying to make a game where the character runs left and right but i only have the pictures for him to run right,

---

## [Two PVector variables update but only one is changed](https://discourse.processing.org/t/two-pvector-variables-update-but-only-one-is-changed/7388)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 5\
**Last updated:** [January 10, 2019, 3:24pm UTC](https://discourse.processing.org/t/two-pvector-variables-update-but-only-one-is-changed/7388 "2019-01-10T15:24:05Z")

</div>

PVector p; PVector newP; void setup() { p = new PVector(500, 300); newP = new PVector(500, 300); } void draw() { newP = p; println(newP + " \< newP before"); // Adds to p p.add(50, 100); println(newP + "…

---

## [Changing Processing IDE color scheme](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244)

<div class="topic-metadata">

**Author:** [@marky04](https://discourse.processing.org/u/marky04)\
**Replies:** 18\
**Last updated:** [January 10, 2019, 11:47am UTC](https://discourse.processing.org/t/changing-processing-ide-color-scheme/7244 "2019-01-10T11:47:50Z")

</div>

Hello, I wanted to change Processing’s color scheme but being a sort of newbie to coding, I’m not sure what some of the tokens in the preferences.txt file correspond to. Here is the list for all token types I found in Pr…

---

## [Lost project file. Is now a temp file](https://discourse.processing.org/t/lost-project-file-is-now-a-temp-file/7379)

<div class="topic-metadata">

**Author:** [@bodmans](https://discourse.processing.org/u/bodmans)\
**Replies:** 3\
**Last updated:** [January 10, 2019, 9:43am UTC](https://discourse.processing.org/t/lost-project-file-is-now-a-temp-file/7379 "2019-01-10T09:43:10Z")

</div>

After saving twice yesterday, I shut down my laptop and let it run some Windows updates. This morning I return to the files above. Panic ensued. Went to the tempfolder in the C drive, no direct recovery there. Could …

---

## [Getting PShape primitive sizes](https://discourse.processing.org/t/getting-pshape-primitive-sizes/7375)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 1\
**Last updated:** [January 10, 2019, 2:41am UTC](https://discourse.processing.org/t/getting-pshape-primitive-sizes/7375 "2019-01-10T02:41:29Z")

</div>

Is there a way to obtain the size of a PShape primitive? PShape ps1 = createShape(); ps1.beginShape(); ps1.vertex(-50, -50); ps1.vertex(50, -50); ps1.vertex(50, 50); ps1.vertex(-50, 50); ps1.endShape(CLOSE); println(ps1…

---

## [I'm trying to use arrarys to make circles fall](https://discourse.processing.org/t/im-trying-to-use-arrarys-to-make-circles-fall/7371)

<div class="topic-metadata">

**Author:** [@squirrel1969](https://discourse.processing.org/u/squirrel1969)\
**Replies:** 5\
**Last updated:** [January 9, 2019, 9:53pm UTC](https://discourse.processing.org/t/im-trying-to-use-arrarys-to-make-circles-fall/7371 "2019-01-09T21:53:51Z")

</div>

Hello! I’m new to processing and coding in general and for our final project I want to make a game where circles move across the screen horizontally and you have to avoid them. We didn’t learn how to use arrays, but I w…

---

## [Having trouble running pde file from command line](https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344)

<div class="topic-metadata">

**Author:** [@karims99](https://discourse.processing.org/u/karims99)\
**Replies:** 2\
**Last updated:** [January 9, 2019, 7:07pm UTC](https://discourse.processing.org/t/having-trouble-running-pde-file-from-command-line/7344 "2019-01-09T19:07:50Z")

</div>

Hi. I’m trying to get a pde file to run from command line (cygwin installed on windows). I have processing-java installed and I’m in the correct directory. My pde file is called genflag and I run the following processin…

---

## [Why doesn't show markers in processing using unfoldingmaps?](https://discourse.processing.org/t/why-doesnt-show-markers-in-processing-using-unfoldingmaps/1685)

<div class="topic-metadata">

**Author:** [@zbd](https://discourse.processing.org/u/zbd)\
**Replies:** 3\
**Last updated:** [January 9, 2019, 6:29pm UTC](https://discourse.processing.org/t/why-doesnt-show-markers-in-processing-using-unfoldingmaps/1685 "2019-01-09T18:29:00Z")

</div>

Hi, its the first time i’m writing a Processing sketch and i want to make an interactive map to show a position ( GPS coordinates) . I want to display a marker to show destination in the map. I use Windows 10 and Proc…

---

## [I wanted to make a object move to a target when mouse is clicked how would i do this](https://discourse.processing.org/t/i-wanted-to-make-a-object-move-to-a-target-when-mouse-is-clicked-how-would-i-do-this/7365)

<div class="topic-metadata">

**Author:** [@redFoa](https://discourse.processing.org/u/redFoa)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 6:20pm UTC](https://discourse.processing.org/t/i-wanted-to-make-a-object-move-to-a-target-when-mouse-is-clicked-how-would-i-do-this/7365 "2019-01-09T18:20:07Z")

</div>

void setup(){ size(500,500); } void draw(){ fill(0); rect(100, 200, 40, 40); fill(255,0,5); rect(400, 400, 40, 40); }

---

## [Java equivalent of js object\[key\] lookup](https://discourse.processing.org/t/java-equivalent-of-js-object-key-lookup/7345)

<div class="topic-metadata">

**Author:** [@PHuzzeyMusic](https://discourse.processing.org/u/PHuzzeyMusic)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 5:38pm UTC](https://discourse.processing.org/t/java-equivalent-of-js-object-key-lookup/7345 "2019-01-09T17:38:53Z")

</div>

Just started making this Java Swing interface to control lots of parameters in a separate window from my sketch. Is there a way in Java to make references closer to this old jQuery code I made a while ago with ToneJS: t…

---

## [So I need some help lol EDIT: Answered!](https://discourse.processing.org/t/so-i-need-some-help-lol-edit-answered/7361)

<div class="topic-metadata">

**Author:** [@Typhoon](https://discourse.processing.org/u/Typhoon)\
**Replies:** 2\
**Last updated:** [January 9, 2019, 5:16pm UTC](https://discourse.processing.org/t/so-i-need-some-help-lol-edit-answered/7361 "2019-01-09T17:16:04Z")

</div>

Hey, So Im trying to make my animation only run through once, it is repeating. Im trying to make it only go through once and be done. (Im making a castlevaniaesk game) (Its also for my grade 12 final project) class Alu…

---

## [Pathfinder library diagonal path](https://discourse.processing.org/t/pathfinder-library-diagonal-path/7353)

<div class="topic-metadata">

**Author:** [@Whahahahaha](https://discourse.processing.org/u/Whahahahaha)\
**Replies:** 2\
**Last updated:** [January 9, 2019, 4:32pm UTC](https://discourse.processing.org/t/pathfinder-library-diagonal-path/7353 "2019-01-09T16:32:05Z")

</div>

hi, I’m having a certain problem with my code. It’s a program with certain points (obstacles) and a robot which should find a path around it. eventually the follower class will be a physical robot with a LiDAR sensor w…

---

## [Pimage array: How to avoid OutOfBoundsException](https://discourse.processing.org/t/pimage-array-how-to-avoid-outofboundsexception/7356)

<div class="topic-metadata">

**Author:** [@amaia](https://discourse.processing.org/u/amaia)\
**Replies:** 3\
**Last updated:** [January 9, 2019, 3:35pm UTC](https://discourse.processing.org/t/pimage-array-how-to-avoid-outofboundsexception/7356 "2019-01-09T15:35:36Z")

</div>

Hello: I have 16 images in the array repeated 4 times each and I can put them in an 8x8 board without problems. The magic is from anchnk in this link. I dont understand how but I suppose the expression that makes it po…

---

## [Connect two sketches on two computers](https://discourse.processing.org/t/connect-two-sketches-on-two-computers/7338)

<div class="topic-metadata">

**Author:** [@f.m](https://discourse.processing.org/u/f.m)\
**Replies:** 5\
**Last updated:** [January 9, 2019, 1:36pm UTC](https://discourse.processing.org/t/connect-two-sketches-on-two-computers/7338 "2019-01-09T13:36:32Z")

</div>

Hey everyone! I just got a little question for you. Right now I work for a project where I have to connect two Processing sketches on two computers, to send an integer between those two computers. I still found some lib…

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

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