# Processing

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

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

**Page:** 80

---

## [Simple Pong-like Interactive](https://discourse.processing.org/t/simple-pong-like-interactive/34615)

<div class="topic-metadata">

**Author:** [@hullstar242](https://discourse.processing.org/u/hullstar242)\
**Replies:** 1\
**Last updated:** [May 24, 2022, 2:43am UTC](https://discourse.processing.org/t/simple-pong-like-interactive/34615 "2022-05-24T02:43:10Z")

</div>

I literally started with processing on Monday and decided to try and make a simple animation where the ball is bouncing back and forth, the Y of the ball not changing just the X and have the ball change direction when it…

---

## [How to slow down the switch in draw function?](https://discourse.processing.org/t/how-to-slow-down-the-switch-in-draw-function/33973)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 1\
**Last updated:** [May 24, 2022, 6:50am UTC](https://discourse.processing.org/t/how-to-slow-down-the-switch-in-draw-function/33973 "2022-05-24T06:50:06Z")

</div>

How can I slow down the switch i’m using in draw? I’ve played with framerate and delay but it just makes the video('s) very slow which is not what I want, it still need to run smoothly. This is the only way i’ve found o…

---

## [Constellation with noise](https://discourse.processing.org/t/constellation-with-noise/36965)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 29\
**Last updated:** [May 24, 2022, 2:26am UTC](https://discourse.processing.org/t/constellation-with-noise/36965 "2022-05-24T02:26:39Z")

</div>

Hi there! I am trying to make a loop of points with different distances and sizes beetween them, but something softer that I can get with random. I have started to use noise function, but it is my very first time, so I …

---

## [How to create Vertex to connect points like a line](https://discourse.processing.org/t/how-to-create-vertex-to-connect-points-like-a-line/37030)

<div class="topic-metadata">

**Author:** [@miguelandradebr](https://discourse.processing.org/u/miguelandradebr)\
**Replies:** 6\
**Last updated:** [May 24, 2022, 1:39am UTC](https://discourse.processing.org/t/how-to-create-vertex-to-connect-points-like-a-line/37030 "2022-05-24T01:39:42Z")

</div>

Hello I would like to create a vertex to join the points creating an equal line in the image… How can I do it? I’m using p5.js Thanks

---

## [Leap Motion Library problems](https://discourse.processing.org/t/leap-motion-library-problems/21401)

<div class="topic-metadata">

**Author:** [@Ablah](https://discourse.processing.org/u/Ablah)\
**Replies:** 3\
**Last updated:** [May 23, 2022, 7:57pm UTC](https://discourse.processing.org/t/leap-motion-library-problems/21401 "2022-05-23T19:57:28Z")

</div>

I’m trying to use the Leap Motion for school homework. I downloaded the library from Github and added it to the Processing Libraries. I’m using: Processing 3.2.3 Leap Motion Software 2.3.1+31549 At first, it seems to…

---

## [My pictures in array don't disappear, they overlap](https://discourse.processing.org/t/my-pictures-in-array-dont-disappear-they-overlap/37020)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 5\
**Last updated:** [May 22, 2022, 10:12pm UTC](https://discourse.processing.org/t/my-pictures-in-array-dont-disappear-they-overlap/37020 "2022-05-22T22:12:39Z")

</div>

so I made a programm. I dress up game to be excact. I’ve programmed it but there’s one problem: The pictures I use in arrays,when executed only overlap themselves not disappear. Meaning when I click the button “blush” …

---

## [How can i determine which shift/ctrl/alt key is being pressed? \[SOLVED\]](https://discourse.processing.org/t/how-can-i-determine-which-shift-ctrl-alt-key-is-being-pressed-solved/36579)

<div class="topic-metadata">

**Author:** [@RedDeath](https://discourse.processing.org/u/RedDeath)\
**Replies:** 4\
**Last updated:** [May 22, 2022, 4:23pm UTC](https://discourse.processing.org/t/how-can-i-determine-which-shift-ctrl-alt-key-is-being-pressed-solved/36579 "2022-05-22T16:23:36Z")

</div>

Currently trying to figure out how to capture keys which have multiple locations on a typical US layout keyboard, this is just some code I’ve been using to test if this idea can work, and how I should do it. import java…

---

## [Using Pictures in Arrays](https://discourse.processing.org/t/using-pictures-in-arrays/36957)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 4\
**Last updated:** [May 22, 2022, 12:57pm UTC](https://discourse.processing.org/t/using-pictures-in-arrays/36957 "2022-05-22T12:57:57Z")

</div>

So I have this little problem here. I want to use my pictures that I made with arrays. The goal is when you click your mouse the fist picture (array\[0\]) comes up and when u click again the second picture in array\[2\] com…

---

## [Video library simply missing?](https://discourse.processing.org/t/video-library-simply-missing/36963)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 8\
**Last updated:** [May 22, 2022, 12:54pm UTC](https://discourse.processing.org/t/video-library-simply-missing/36963 "2022-05-22T12:54:38Z")

</div>

Running latest processing 4.0b8, reinstalled moments ago. Windows 10 64-bit. import processing.video.\*; Movie vid1; Results in this error: “No library found for processing.video” In the Contribution Manager the video…

---

## [Infinite scrolling images](https://discourse.processing.org/t/infinite-scrolling-images/36967)

<div class="topic-metadata">

**Author:** [@oli7er](https://discourse.processing.org/u/oli7er)\
**Replies:** 1\
**Last updated:** [May 22, 2022, 1:10am UTC](https://discourse.processing.org/t/infinite-scrolling-images/36967 "2022-05-22T01:10:39Z")

</div>

Hi everyone, I have been attempting a sketch, which scrolls through images, each image has an 2 more images placed both on top and below it ( visually similar to how an instagram post will have the username/profile phot…

---

## [Can't import library](https://discourse.processing.org/t/cant-import-library/36951)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 2\
**Last updated:** [May 21, 2022, 6:16pm UTC](https://discourse.processing.org/t/cant-import-library/36951 "2022-05-21T18:16:18Z")

</div>

---

## [Trying to syphon sound from spotify to a sketch](https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 0\
**Last updated:** [May 21, 2022, 5:36pm UTC](https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003 "2022-05-21T17:36:15Z")

</div>

Hey everybody :slight\_smile: I’m testing syphoning sound from my mac to a processing sketch for some audio viz stuff. I installed Sound Siphon and created a new virtual input. When i list my sound devices in processin…

---

## [Pictures in for loop disappear when using other command(redraw();)](https://discourse.processing.org/t/pictures-in-for-loop-disappear-when-using-other-command-redraw/37000)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 1\
**Last updated:** [May 21, 2022, 2:20pm UTC](https://discourse.processing.org/t/pictures-in-for-loop-disappear-when-using-other-command-redraw/37000 "2022-05-21T14:20:56Z")

</div>

Before giving the Problem + code let me tell you my Programm. Im trying to create a dress up game for my schoolwork. You click on a bar and the game starts. I’ve created 3 lines of arrows (pfeil) for that: \<–(left) and -…

---

## [How to display multiple line using nested loop](https://discourse.processing.org/t/how-to-display-multiple-line-using-nested-loop/36994)

<div class="topic-metadata">

**Author:** [@Bossinnit](https://discourse.processing.org/u/Bossinnit)\
**Replies:** 4\
**Last updated:** [May 21, 2022, 12:39pm UTC](https://discourse.processing.org/t/how-to-display-multiple-line-using-nested-loop/36994 "2022-05-21T12:39:16Z")

</div>

I am trying to draw a lane through the use of nested loop, where i can control the lanes through use of “final int”, I have pretty much tried everything but didn’t result as i would like to be.

---

## [Ignore single click on double triple four etc click](https://discourse.processing.org/t/ignore-single-click-on-double-triple-four-etc-click/36990)

<div class="topic-metadata">

**Author:** [@xxlinxx](https://discourse.processing.org/u/xxlinxx)\
**Replies:** 0\
**Last updated:** [May 21, 2022, 9:05am UTC](https://discourse.processing.org/t/ignore-single-click-on-double-triple-four-etc-click/36990 "2022-05-21T09:05:01Z")

</div>

public void mousePressed(MouseEvent e) { if (e.getButton() == LEFT) { clickTimerStart(e); if(e.getCount()==1){ } else if(e.getCount()==2){ //also t…

---

## [Copy from source to PGraphics](https://discourse.processing.org/t/copy-from-source-to-pgraphics/36958)

<div class="topic-metadata">

**Author:** [@Luis\_Luethi1](https://discourse.processing.org/u/Luis_Luethi1)\
**Replies:** 2\
**Last updated:** [May 21, 2022, 8:39am UTC](https://discourse.processing.org/t/copy-from-source-to-pgraphics/36958 "2022-05-21T08:39:32Z")

</div>

Hello, I am working on a simple visualization from the slitscan process. I try to copy from an movie input into an PGraphics buffer. When I try it I get the following error when I try to copy in draw. Width (0) and hei…

---

## [Problems with Serial Library](https://discourse.processing.org/t/problems-with-serial-library/36988)

<div class="topic-metadata">

**Author:** [@hbridge](https://discourse.processing.org/u/hbridge)\
**Replies:** 0\
**Last updated:** [May 21, 2022, 3:16am UTC](https://discourse.processing.org/t/problems-with-serial-library/36988 "2022-05-21T03:16:47Z")

</div>

I have a Processing sketch that receives Serial and writes a csv file. It all worked fine on my old Macbook laptop. Maybe OSX 10.10 or something. I got a new laptop (with an Apple chip) and OSX 12.3 and Processing will n…

---

## [Circle Packing. Trying to implement on my project](https://discourse.processing.org/t/circle-packing-trying-to-implement-on-my-project/8368)

<div class="topic-metadata">

**Author:** [@agitcelik](https://discourse.processing.org/u/agitcelik)\
**Replies:** 21\
**Last updated:** [May 21, 2022, 12:56am UTC](https://discourse.processing.org/t/circle-packing-trying-to-implement-on-my-project/8368 "2022-05-21T00:56:07Z")

</div>

Hi, Came here from below youtube discussion, I am working on my final thesis and I watched your video related to circle packing (https://www.youtube.com/watch?v=pF0cadg2mg0). I have some question on my mind. Github li…

---

## [3D Flocking simulation with two species and octree optimisation](https://discourse.processing.org/t/3d-flocking-simulation-with-two-species-and-octree-optimisation/36984)

<div class="topic-metadata">

**Author:** [@m.codeeee](https://discourse.processing.org/u/m.codeeee)\
**Replies:** 0\
**Last updated:** [May 20, 2022, 10:01pm UTC](https://discourse.processing.org/t/3d-flocking-simulation-with-two-species-and-octree-optimisation/36984 "2022-05-20T22:01:27Z")

</div>

Hi, I’m trying to set up a flocking simulation with two species of boids and octree optimization. My problem here is that I want the two species to run on different octrees, and I don’t really understand how to do that …

---

## [Sampler2D doesnt show the exact PImage, but the average color of the PImage](https://discourse.processing.org/t/sampler2d-doesnt-show-the-exact-pimage-but-the-average-color-of-the-pimage/36972)

<div class="topic-metadata">

**Author:** [@Sevval](https://discourse.processing.org/u/Sevval)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 10:54am UTC](https://discourse.processing.org/t/sampler2d-doesnt-show-the-exact-pimage-but-the-average-color-of-the-pimage/36972 "2022-05-20T10:54:28Z")

</div>

I’m trying to write a simple shader where I just copy the current frame of the program into the shader via the shader.set function: PShader shader; PImage screen; void setup(){ size(1000, 1000, P2D); shader = new …

---

## [Hey guys, was wondering how i can make a scoring system and get my character to reset? I also need to be able to change the max score](https://discourse.processing.org/t/hey-guys-was-wondering-how-i-can-make-a-scoring-system-and-get-my-character-to-reset-i-also-need-to-be-able-to-change-the-max-score/36940)

<div class="topic-metadata">

**Author:** [@mosey](https://discourse.processing.org/u/mosey)\
**Replies:** 9\
**Last updated:** [May 20, 2022, 4:13am UTC](https://discourse.processing.org/t/hey-guys-was-wondering-how-i-can-make-a-scoring-system-and-get-my-character-to-reset-i-also-need-to-be-able-to-change-the-max-score/36940 "2022-05-20T04:13:22Z")

</div>

int pedestrianX; int pedestrianY; int vehicleX; int vehicleY; PFont f; int lineX = 0; int lineY = 80; // Vertical location of each line int spacing = 50; // How far apart is each line int len = 50; // L…

---

## [Infinite scrolling?!](https://discourse.processing.org/t/infinite-scrolling/34028)

<div class="topic-metadata">

**Author:** [@doordewar](https://discourse.processing.org/u/doordewar)\
**Replies:** 7\
**Last updated:** [May 18, 2022, 10:58am UTC](https://discourse.processing.org/t/infinite-scrolling/34028 "2022-05-18T10:58:58Z")

</div>

Hi all, I am trying to create infinite scrolling of images (only vertically), basically like any infinite scroll (social) media platform. What would be the way to go about this? I have tried preloading a large amount of…

---

## [How to add a new item in a arraylist when this class is defined by myself?](https://discourse.processing.org/t/how-to-add-a-new-item-in-a-arraylist-when-this-class-is-defined-by-myself/36944)

<div class="topic-metadata">

**Author:** [@Lee027](https://discourse.processing.org/u/Lee027)\
**Replies:** 6\
**Last updated:** [May 19, 2022, 2:06pm UTC](https://discourse.processing.org/t/how-to-add-a-new-item-in-a-arraylist-when-this-class-is-defined-by-myself/36944 "2022-05-19T14:06:53Z")

</div>

I defined a class named (drop) to represent a moving cloud with rain. And then I created an array uninitialized named (drops\[\]) to represent a list will increase automatically with ‘for loop’ in a table. But when using …

---

## [Instagram video settings with VideoExport and FFMPEG](https://discourse.processing.org/t/instagram-video-settings-with-videoexport-and-ffmpeg/32759)

<div class="topic-metadata">

**Author:** [@fmiramar0101101](https://discourse.processing.org/u/fmiramar0101101)\
**Replies:** 3\
**Last updated:** [May 19, 2022, 1:43pm UTC](https://discourse.processing.org/t/instagram-video-settings-with-videoexport-and-ffmpeg/32759 "2022-05-19T13:43:55Z")

</div>

Hi everybody! I am trying to export a high resolution animation to Instagram using Video Export but after the upload it is getting heavily compressed. I am using size(1080, 1350) and videoExport.setFrameRate(30). I’ve …

---

## [Processing IDE: option key does not allow moving the cursor around in macOS](https://discourse.processing.org/t/processing-ide-option-key-does-not-allow-moving-the-cursor-around-in-macos/36955)

<div class="topic-metadata">

**Author:** [@kryt](https://discourse.processing.org/u/kryt)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 5:30am UTC](https://discourse.processing.org/t/processing-ide-option-key-does-not-allow-moving-the-cursor-around-in-macos/36955 "2022-05-19T05:30:06Z")

</div>

I’m looking for a fix for macOS version of the IDE. Normally when editing text in other environments, whether it is for coding or for text, one can move the cursor around word-by-word basis by keeping option-key pressed…

---

## [Beziers with noise](https://discourse.processing.org/t/beziers-with-noise/36949)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [May 19, 2022, 12:19am UTC](https://discourse.processing.org/t/beziers-with-noise/36949 "2022-05-19T00:19:08Z")

</div>

Hi there, I am doing a loop with bezier curves and I am trying to make small variations between them, as you can see on the picture. I have read that noise function is the best way to make these kind of variations but I…

---

## [Rotate() a Texture in a PShape don't work anymore in P4](https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 0\
**Last updated:** [May 18, 2022, 12:45pm UTC](https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941 "2022-05-18T12:45:07Z")

</div>

Hi, I’m trying to use this code in P4 to rotate a Texture in a PShape void adaptTexture() { uvtr.reset(); uvtr.translate(0.5, 0.5); uvtr.rotate(rotText); uvtr.translate(-0.5, -0.5); …

---

## [Loop inside loop - find latest loop value](https://discourse.processing.org/t/loop-inside-loop-find-latest-loop-value/36945)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 2\
**Last updated:** [May 18, 2022, 8:40pm UTC](https://discourse.processing.org/t/loop-inside-loop-find-latest-loop-value/36945 "2022-05-18T20:40:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi there, I still have some issues with nested loops conceptually. Is there a way to know what would be the last value of ‘angle’ before the lo…

---

## [How to read ProcessBuilder's output stream in controlP5's console in the sketch?](https://discourse.processing.org/t/how-to-read-processbuilders-output-stream-in-controlp5s-console-in-the-sketch/36909)

<div class="topic-metadata">

**Author:** [@dattasaurabh82](https://discourse.processing.org/u/dattasaurabh82)\
**Replies:** 5\
**Last updated:** [May 18, 2022, 1:43am UTC](https://discourse.processing.org/t/how-to-read-processbuilders-output-stream-in-controlp5s-console-in-the-sketch/36909 "2022-05-18T01:43:12Z")

</div>

Intent: Run a shell command from sketch on a keyPress event and show the command’s output in Sketch window. Idea: Use controlp5 GUI library to draw a console in sketch and use println() to print output. Sketch: import…

---

## [How to move an object across a game board. Multiple Objects](https://discourse.processing.org/t/how-to-move-an-object-across-a-game-board-multiple-objects/36926)

<div class="topic-metadata">

**Author:** [@Gray](https://discourse.processing.org/u/Gray)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 4:57pm UTC](https://discourse.processing.org/t/how-to-move-an-object-across-a-game-board-multiple-objects/36926 "2022-05-17T16:57:30Z")

</div>

Hello! I am an extreme beginner in the field of P5.JS. I am way more knowledgeable in Java which will be apparent in my broken code. I have attempted a multitude of Java approaches to cycling through objects of the same …

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

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