# Processing

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

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

**Page:** 369

---

## [Triangle is Moving but is getting Bigger as it moves](https://discourse.processing.org/t/triangle-is-moving-but-is-getting-bigger-as-it-moves/3205)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 6:02pm UTC](https://discourse.processing.org/t/triangle-is-moving-but-is-getting-bigger-as-it-moves/3205 "2018-09-03T18:02:40Z")

</div>

I’m having trouble getting my triangle to stop getting bigger as it moves, any suggestions? float xa=30; float ya=75; float xb=58; float yb=20; float xc=86; float yc=75; float xSpeed=10; float ySpeed=10; void setup(){ …

---

## [Changing alignment on bang from cp5](https://discourse.processing.org/t/changing-alignment-on-bang-from-cp5/3185)

<div class="topic-metadata">

**Author:** [@kat](https://discourse.processing.org/u/kat)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 5:37pm UTC](https://discourse.processing.org/t/changing-alignment-on-bang-from-cp5/3185 "2018-09-03T17:37:32Z")

</div>

Hi all, I’m using a bang from the cp5 library as a button. Is there a way to make the given coordinates the center of the button, similar to the imageMode(CENTER) for images? I’ve looked through the cp5 library and I c…

---

## [Variable/Logic Help: Slot Machine Project - Recognize 3 matching images?](https://discourse.processing.org/t/variable-logic-help-slot-machine-project-recognize-3-matching-images/3198)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 10\
**Last updated:** [September 3, 2018, 5:17pm UTC](https://discourse.processing.org/t/variable-logic-help-slot-machine-project-recognize-3-matching-images/3198 "2018-09-03T17:17:42Z")

</div>

Hello Processing Forum, I am working on a project that is similar to a slot-machine. I am running 3 rows of images (animated gifs and I am stumped on whether I can construct a line of code in my current code logic that …

---

## [Random Image Using an Array](https://discourse.processing.org/t/random-image-using-an-array/3181)

<div class="topic-metadata">

**Author:** [@eschulzpsd](https://discourse.processing.org/u/eschulzpsd)\
**Replies:** 11\
**Last updated:** [September 3, 2018, 3:58pm UTC](https://discourse.processing.org/t/random-image-using-an-array/3181 "2018-09-03T15:58:13Z")

</div>

Hi, I’m trying to use oop to select a random image when the mouse is clicked. I get the image to come up, but I need help making the mouse click display the new image. Sorry, not sure what to do about images in my sketc…

---

## [Spritesheet/cutting an image](https://discourse.processing.org/t/spritesheet-cutting-an-image/3174)

<div class="topic-metadata">

**Author:** [@Hedgy](https://discourse.processing.org/u/Hedgy)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 3:51pm UTC](https://discourse.processing.org/t/spritesheet-cutting-an-image/3174 "2018-09-03T15:51:58Z")

</div>

I have a spritesheet for a character and i’d like to be able to split it up in processing. Any way possible?

---

## [Version 1.5 in windows10](https://discourse.processing.org/t/version-1-5-in-windows10/3165)

<div class="topic-metadata">

**Author:** [@yesi360](https://discourse.processing.org/u/yesi360)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 3:35pm UTC](https://discourse.processing.org/t/version-1-5-in-windows10/3165 "2018-09-03T15:35:33Z")

</div>

Hi It’s possible installed 2 differents versions processing in the same computer? Actually im use the 3.37 version, but i need use open Ni and I thing (Im reading and research) it just works with 1.5 I wan to try the …

---

## [How I can do score](https://discourse.processing.org/t/how-i-can-do-score/3223)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.processing.org/u/Pedro)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 11:17am UTC](https://discourse.processing.org/t/how-i-can-do-score/3223 "2018-09-03T11:17:41Z")

</div>

Hello, I’m doing a game and I’m new to Processing, I’ve done this,I’ve been looking for videos, in forums and nothing, I’m having problems in the score, every time I give it where it has to add +1, it adds much more. PI…

---

## [Inaccurate time intervals for a Metronome](https://discourse.processing.org/t/inaccurate-time-intervals-for-a-metronome/2463)

<div class="topic-metadata">

**Author:** [@rsomani95](https://discourse.processing.org/u/rsomani95)\
**Replies:** 12\
**Last updated:** [September 3, 2018, 9:27am UTC](https://discourse.processing.org/t/inaccurate-time-intervals-for-a-metronome/2463 "2018-09-03T09:27:59Z")

</div>

Hello. I just started working on a metronome app that I would like to create. I’m having trouble with triggering the beat on precise time intervals. Besides that, Processing’s graphics are inconsistent too. The logic is…

---

## [Working with other character sets/UTF-8 on windows?](https://discourse.processing.org/t/working-with-other-character-sets-utf-8-on-windows/3157)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 1\
**Last updated:** [September 3, 2018, 4:45am UTC](https://discourse.processing.org/t/working-with-other-character-sets-utf-8-on-windows/3157 "2018-09-03T04:45:47Z")

</div>

void setup(){ println("тестирование"); } this also does not work PrintStream out = null; try { out = new PrintStream(System.out, true, "UTF-8"); out.println("тестирование"); } catch (Exception e) { …

---

## [Questions about my Color Array](https://discourse.processing.org/t/questions-about-my-color-array/3110)

<div class="topic-metadata">

**Author:** [@Benjamin](https://discourse.processing.org/u/Benjamin)\
**Replies:** 5\
**Last updated:** [September 3, 2018, 4:30am UTC](https://discourse.processing.org/t/questions-about-my-color-array/3110 "2018-09-03T04:30:00Z")

</div>

Hi, I’m new to programming and have a few questions about a small piece of code that I am currently writing in Processing 3. So at the moment I have an array with four different colors in it that represent the four diffe…

---

## [Rotating PMatrix3D around axis](https://discourse.processing.org/t/rotating-pmatrix3d-around-axis/3190)

<div class="topic-metadata">

**Author:** [@bontempos](https://discourse.processing.org/u/bontempos)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 2:12am UTC](https://discourse.processing.org/t/rotating-pmatrix3d-around-axis/3190 "2018-09-03T02:12:32Z")

</div>

I wanted to make the black line to spin on a plane formed by 2 vectors (a2, b2) (and the origin). I am trying to rotate a matrix around the cross product btw a2 and b2 (green line) using the rotate (angle, v0, v1, v2) me…

---

## [Change rgb pixel color when overllaping](https://discourse.processing.org/t/change-rgb-pixel-color-when-overllaping/3180)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 10\
**Last updated:** [September 3, 2018, 1:20am UTC](https://discourse.processing.org/t/change-rgb-pixel-color-when-overllaping/3180 "2018-09-03T01:20:05Z")

</div>

Hello everyone, I wrote a well commented code. I want to change the color of an object but only the part that is overlapping with a shape (rectangle). Please help me, thank you for your time. import processing.video.\*; …

---

## [Dropping objects](https://discourse.processing.org/t/dropping-objects/3114)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 3\
**Last updated:** [September 2, 2018, 11:05pm UTC](https://discourse.processing.org/t/dropping-objects/3114 "2018-09-02T23:05:21Z")

</div>

Hello Processors, thank you for your time. I have an array of object moving on their y axes until a certain “ground” point. It works fine, but when I scale the objects to be different sizes the objects don’t stop exactly…

---

## [Change shape by sound input](https://discourse.processing.org/t/change-shape-by-sound-input/2877)

<div class="topic-metadata">

**Author:** [@kiraw](https://discourse.processing.org/u/kiraw)\
**Replies:** 8\
**Last updated:** [September 2, 2018, 10:19pm UTC](https://discourse.processing.org/t/change-shape-by-sound-input/2877 "2018-09-02T22:19:05Z")

</div>

Hey, after my first problem get solved here, I hope someone can help me again. :slight\_smile: I want the shape (as you can hopefully see on the picture) is changing by sound input. When the sound is loud, the shape shou…

---

## [Controlp5 TextAlign](https://discourse.processing.org/t/controlp5-textalign/2988)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 1\
**Last updated:** [September 2, 2018, 7:30pm UTC](https://discourse.processing.org/t/controlp5-textalign/2988 "2018-09-02T19:30:12Z")

</div>

Hi Guys, I’m trying to add a buttonRadio that control text Align, but I don’t know how to assign a variable that control the LEFT and CENTER button. I’m using Processing width controlp5 library. Thanks a lot.!

---

## [How to make a custom event](https://discourse.processing.org/t/how-to-make-a-custom-event/3161)

<div class="topic-metadata">

**Author:** [@LazyDk](https://discourse.processing.org/u/LazyDk)\
**Replies:** 9\
**Last updated:** [September 2, 2018, 5:49pm UTC](https://discourse.processing.org/t/how-to-make-a-custom-event/3161 "2018-09-02T17:49:27Z")

</div>

Hey there, I’m currently making a small game and I wanted to implement different screens so I would have a Main Screen, a Settings Screen, and a Game Screen. So first I wanted to set up the main screen and it would cont…

---

## [Delta operators, and magicaly changing PVectors](https://discourse.processing.org/t/delta-operators-and-magicaly-changing-pvectors/3189)

<div class="topic-metadata">

**Author:** [@BodaciousBrian](https://discourse.processing.org/u/BodaciousBrian)\
**Replies:** 3\
**Last updated:** [September 2, 2018, 4:13pm UTC](https://discourse.processing.org/t/delta-operators-and-magicaly-changing-pvectors/3189 "2018-09-02T16:13:52Z")

</div>

Solution at the bottom of post, but I can’t offer an explanation! I’m trying to make a delta operator to keep track of change in velocity, and I encountered something I have never seen in any language before. I store o…

---

## [Making an enemy follow a path made by pathfinder java](https://discourse.processing.org/t/making-an-enemy-follow-a-path-made-by-pathfinder-java/3178)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 4\
**Last updated:** [September 2, 2018, 5:40am UTC](https://discourse.processing.org/t/making-an-enemy-follow-a-path-made-by-pathfinder-java/3178 "2018-09-02T05:40:14Z")

</div>

OK, so I been searching and searching for pathfinder stuff in java and finally found how to make a pathfinder that can avoid walls. But my trouble is how to make the enemy follow the path. I been looking it up but been g…

---

## [Width and height return 0](https://discourse.processing.org/t/width-and-height-return-0/3177)

<div class="topic-metadata">

**Author:** [@BodaciousBrian](https://discourse.processing.org/u/BodaciousBrian)\
**Replies:** 3\
**Last updated:** [September 2, 2018, 3:30am UTC](https://discourse.processing.org/t/width-and-height-return-0/3177 "2018-09-02T03:30:05Z")

</div>

The following code, will always return x and y as 0… if I change displayWidth to width, it still returns 0. I’m using the apde editor on an s8+. How can I find the center of the display? (The +50 is there so I can see…

---

## [Growing fractal tree](https://discourse.processing.org/t/growing-fractal-tree/3145)

<div class="topic-metadata">

**Author:** [@Emanuele](https://discourse.processing.org/u/Emanuele)\
**Replies:** 3\
**Last updated:** [September 1, 2018, 4:32pm UTC](https://discourse.processing.org/t/growing-fractal-tree/3145 "2018-09-01T16:32:10Z")

</div>

Hi everyone, I need to do a school project and I want to build a fractal tree that progressively “grows” using the mouse. how can I do it? this is the code I built: void setup() { fullScreen(); } …

---

## [Retrieve Vertex Postion after Vertex Shader](https://discourse.processing.org/t/retrieve-vertex-postion-after-vertex-shader/3123)

<div class="topic-metadata">

**Author:** [@jitterhorse](https://discourse.processing.org/u/jitterhorse)\
**Replies:** 7\
**Last updated:** [September 1, 2018, 11:22am UTC](https://discourse.processing.org/t/retrieve-vertex-postion-after-vertex-shader/3123 "2018-09-01T11:22:01Z")

</div>

Hi lovely Processing people, is there a way (f.e. with low level GL) to retrieve Vertex Positions of an Object after they are displaced by a vertex shader? //this displaces vertex shader(displace); shape(object); //ho…

---

## [Color from FFT center frequency and its amplitude](https://discourse.processing.org/t/color-from-fft-center-frequency-and-its-amplitude/2050)

<div class="topic-metadata">

**Author:** [@vedro](https://discourse.processing.org/u/vedro)\
**Replies:** 2\
**Last updated:** [September 1, 2018, 6:41am UTC](https://discourse.processing.org/t/color-from-fft-center-frequency-and-its-amplitude/2050 "2018-09-01T06:41:24Z")

</div>

Hello This is my first post. I am trying to do a project with a variant of “sound painting” with a theremin. Let me explain a bit. The basic idea is to acquire sound from a theremin (with a microphone), then perform a F…

---

## [My new game - need help working with images](https://discourse.processing.org/t/my-new-game-need-help-working-with-images/3159)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.processing.org/u/Pedro)\
**Replies:** 8\
**Last updated:** [September 1, 2018, 3:48am UTC](https://discourse.processing.org/t/my-new-game-need-help-working-with-images/3159 "2018-09-01T03:48:52Z")

</div>

Look what I have achieved is that when I click on a figure suddenly both are changed at the same time. So now I do not know how to ask a question and relate it to the images. I want for example to say “Click on the recta…

---

## [Creating complex gravity bouncing objects](https://discourse.processing.org/t/creating-complex-gravity-bouncing-objects/3162)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [September 1, 2018, 3:23am UTC](https://discourse.processing.org/t/creating-complex-gravity-bouncing-objects/3162 "2018-09-01T03:23:22Z")

</div>

Hello Processors, please help me figure what to do. I want video objects to bounce off the window edges and collide between them. The issue I am having is that I want the objects to have random sizes. this is messing eve…

---

## [Exponential grids / mobius transformations](https://discourse.processing.org/t/exponential-grids-mobius-transformations/1347)

<div class="topic-metadata">

**Author:** [@jc2046](https://discourse.processing.org/u/jc2046)\
**Replies:** 8\
**Last updated:** [September 1, 2018, 3:03am UTC](https://discourse.processing.org/t/exponential-grids-mobius-transformations/1347 "2018-09-01T03:03:37Z")

</div>

Hi, I want my sketch to draw this kind of things But Im not sure where to start, what kind of maths are involved nor some seudocode examples. If you have some info, tips, suggestion, intuition, whatever it would be mor…

---

## [Delay between gui and sound](https://discourse.processing.org/t/delay-between-gui-and-sound/3147)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 1\
**Last updated:** [August 31, 2018, 7:42pm UTC](https://discourse.processing.org/t/delay-between-gui-and-sound/3147 "2018-08-31T19:42:55Z")

</div>

I’m creating an interactive ocilator, by clicking on the bar 1-Create a sine wave in samples \[\] of “n\_samples\_wave” samples 2-then a thread reads sample by sample and passes it to audiodata \[0\] 3-sourcedataline write…

---

## [Error when searching through a table](https://discourse.processing.org/t/error-when-searching-through-a-table/3118)

<div class="topic-metadata">

**Author:** [@kat](https://discourse.processing.org/u/kat)\
**Replies:** 4\
**Last updated:** [August 31, 2018, 3:41pm UTC](https://discourse.processing.org/t/error-when-searching-through-a-table/3118 "2018-08-31T15:41:55Z")

</div>

Hi all, I’m quite new to Processing and I was hoping someone could help me with this problem I have when searching through a table. I used the control P5 library to make a search bar where the user types words separate…

---

## [A single sketch for saving video's frames and storing them in an array](https://discourse.processing.org/t/a-single-sketch-for-saving-videos-frames-and-storing-them-in-an-array/3126)

<div class="topic-metadata">

**Author:** [@arnonneder](https://discourse.processing.org/u/arnonneder)\
**Replies:** 6\
**Last updated:** [August 31, 2018, 1:32pm UTC](https://discourse.processing.org/t/a-single-sketch-for-saving-videos-frames-and-storing-them-in-an-array/3126 "2018-08-31T13:32:00Z")

</div>

I believe this is a beginner’s question :slight\_smile: I want to play a video in Processing for the purpose of storing the frames in a folder and then storing those frames in an array so I can upload them into the sketc…

---

## [Smoothing loadImage()](https://discourse.processing.org/t/smoothing-loadimage/3096)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 4\
**Last updated:** [August 31, 2018, 10:04am UTC](https://discourse.processing.org/t/smoothing-loadimage/3096 "2018-08-31T10:04:25Z")

</div>

Hi, I work with an image which is smooth source but once I load and read it in Processing it looks like it loose some quality, see : below is my code, all is in the setup() function. size( 700, 900); smooth(8…

---

## [Adding a new shape in the orbit](https://discourse.processing.org/t/adding-a-new-shape-in-the-orbit/3091)

<div class="topic-metadata">

**Author:** [@Kirrat](https://discourse.processing.org/u/Kirrat)\
**Replies:** 5\
**Last updated:** [August 31, 2018, 5:44am UTC](https://discourse.processing.org/t/adding-a-new-shape-in-the-orbit/3091 "2018-08-31T05:44:06Z")

</div>

Hi i’m trying to make the shapes move in an orbit below whenever any of the shapes is clicked above. It’s pretty much happening if you run the code below. The problem is that when ever a new shape is clicked the previou…

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

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