# Processing

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

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

**Page:** 180

---

## [PImage and renderer](https://discourse.processing.org/t/pimage-and-renderer/24355)

<div class="topic-metadata">

**Author:** [@MiguelSanches](https://discourse.processing.org/u/MiguelSanches)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 12:04pm UTC](https://discourse.processing.org/t/pimage-and-renderer/24355 "2020-10-05T12:04:22Z")

</div>

Hi all, I am designing a GUI and I have some images that I use (all in .png) I am using the default renderer in processing because I have designed some buttons and their quality looks good (below). However, the images …

---

## [Can't figure out how to get a value stored/used after clicking (calculator)](https://discourse.processing.org/t/cant-figure-out-how-to-get-a-value-stored-used-after-clicking-calculator/24322)

<div class="topic-metadata">

**Author:** [@yaboi999](https://discourse.processing.org/u/yaboi999)\
**Replies:** 12\
**Last updated:** [October 5, 2020, 1:58am UTC](https://discourse.processing.org/t/cant-figure-out-how-to-get-a-value-stored-used-after-clicking-calculator/24322 "2020-10-05T01:58:18Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, Below I am attaching the code for a project I am working on. The goal is to create a calculator (GUI doesn’t matter as long as it has cl…

---

## [Passing Custom Vertex Attributes to Vertex Shader](https://discourse.processing.org/t/passing-custom-vertex-attributes-to-vertex-shader/24342)

<div class="topic-metadata">

**Author:** [@michaelnighttime](https://discourse.processing.org/u/michaelnighttime)\
**Replies:** 0\
**Last updated:** [October 4, 2020, 9:01pm UTC](https://discourse.processing.org/t/passing-custom-vertex-attributes-to-vertex-shader/24342 "2020-10-04T21:01:19Z")

</div>

Trying to understand how to pass custom per-vertex Attributes along to be used in the shaders in processing 3, but seem to be missing something. In processing s = createShape(); s.beginShape(POINTS); for(int i …

---

## [Passing through object when clicking](https://discourse.processing.org/t/passing-through-object-when-clicking/24338)

<div class="topic-metadata">

**Author:** [@hugoromo](https://discourse.processing.org/u/hugoromo)\
**Replies:** 1\
**Last updated:** [October 4, 2020, 7:19pm UTC](https://discourse.processing.org/t/passing-through-object-when-clicking/24338 "2020-10-04T19:19:28Z")

</div>

Hello, So I was wondering if there is any way of making a click pass through from an object at front to an object behind, I’m using the the Picking library in a 3D canvas I have a cube made of boxes, and would like to …

---

## [Saving a PDF with P3D or P2D renderer](https://discourse.processing.org/t/saving-a-pdf-with-p3d-or-p2d-renderer/24267)

<div class="topic-metadata">

**Author:** [@Jochem](https://discourse.processing.org/u/Jochem)\
**Replies:** 2\
**Last updated:** [October 4, 2020, 6:11pm UTC](https://discourse.processing.org/t/saving-a-pdf-with-p3d-or-p2d-renderer/24267 "2020-10-04T18:11:55Z")

</div>

Hello everyone, So basically, I’m trying to draw Mars in a 3D space, which I have to save to a PDF file. In order to do that more easily, I made a second project where I only make the texture which will overlay the sphe…

---

## [Creating/using/deleting a con folder in Processing](https://discourse.processing.org/t/creating-using-deleting-a-con-folder-in-processing/24330)

<div class="topic-metadata">

**Author:** [@Optyfen\_met\_Eenden](https://discourse.processing.org/u/Optyfen_met_Eenden)\
**Replies:** 8\
**Last updated:** [October 4, 2020, 4:18pm UTC](https://discourse.processing.org/t/creating-using-deleting-a-con-folder-in-processing/24330 "2020-10-04T16:18:27Z")

</div>

Dear ladies and gentlepeople, I’m using Processing in Java Mode, and my question is about to create a con folder in Processing. I’ve used this technique in Batch before, using the commands in cmd.exe, you can see the c…

---

## [Combining multiple PShapes](https://discourse.processing.org/t/combining-multiple-pshapes/24326)

<div class="topic-metadata">

**Author:** [@tea](https://discourse.processing.org/u/tea)\
**Replies:** 2\
**Last updated:** [October 4, 2020, 11:08am UTC](https://discourse.processing.org/t/combining-multiple-pshapes/24326 "2020-10-04T11:08:53Z")

</div>

Sorry in advance if I’m asking in the wrong forum or doing anything wrong, I’ve only been at this for a couple weeks. It’s for a school assignment I’m stuck on for days already so I thought it’s time to ask for help. I’…

---

## [Side Scrolling Action Game](https://discourse.processing.org/t/side-scrolling-action-game/24323)

<div class="topic-metadata">

**Author:** [@Bob\_With\_A\_X](https://discourse.processing.org/u/Bob_With_A_X)\
**Replies:** 3\
**Last updated:** [October 4, 2020, 10:15am UTC](https://discourse.processing.org/t/side-scrolling-action-game/24323 "2020-10-04T10:15:57Z")

</div>

Hello, I am trying to make a 2D side scrolling action game similar to “Dan The Man”. However, I am stuck as to how to manage the level physics. Initially I though to create the ground terrain as an image for each level…

---

## [How to slow down audio with minim?](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212)

<div class="topic-metadata">

**Author:** [@RienziDeal](https://discourse.processing.org/u/RienziDeal)\
**Replies:** 3\
**Last updated:** [October 4, 2020, 7:36am UTC](https://discourse.processing.org/t/how-to-slow-down-audio-with-minim/11212 "2020-10-04T07:36:33Z")

</div>

Hi, I’m using a song and I want it to slow down but continue playing slower from the same point when clicked when I click on an alcohol bottle (which will imply that the character is drunk) Any help?

---

## [Balls bouncing off each other, without using Box2D or other libraries](https://discourse.processing.org/t/balls-bouncing-off-each-other-without-using-box2d-or-other-libraries/24286)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 11\
**Last updated:** [October 4, 2020, 2:18am UTC](https://discourse.processing.org/t/balls-bouncing-off-each-other-without-using-box2d-or-other-libraries/24286 "2020-10-04T02:18:03Z")

</div>

This is my code: Circle\[\] circles = { new Circle(40,color(0),color(255,0,0),0,2,0,0.5,new PVector(250,300),new PVector(0,0)), new Circle(200,color(0),color(255,0,0),0,10,0,0.5,new PVector(500,300),new PVector(0,0)),…

---

## [Help needed to code videos play with processing by receiving data from Arduino](https://discourse.processing.org/t/help-needed-to-code-videos-play-with-processing-by-receiving-data-from-arduino/24237)

<div class="topic-metadata">

**Author:** [@Annak](https://discourse.processing.org/u/Annak)\
**Replies:** 7\
**Last updated:** [October 3, 2020, 7:21pm UTC](https://discourse.processing.org/t/help-needed-to-code-videos-play-with-processing-by-receiving-data-from-arduino/24237 "2020-10-03T19:21:06Z")

</div>

Hello everyone! I am an artist and I am trying to make an interactive artwork using Arduino and Processing. I am really new at all this,.I know very little about programming but I have to complete this artwork as it is …

---

## [Keyboard shortcuts](https://discourse.processing.org/t/keyboard-shortcuts/24291)

<div class="topic-metadata">

**Author:** [@moms\_spaghetti](https://discourse.processing.org/u/moms_spaghetti)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 12:10pm UTC](https://discourse.processing.org/t/keyboard-shortcuts/24291 "2020-10-03T12:10:16Z")

</div>

Hello Can somebody give me a list or say where I can find them , of all or at least the most important keyboard shortcuts as this would be very helpfull ? Thanks in advance

---

## [Idk why but I get this error message: Expected an assignment or function call and instead saw an expression](https://discourse.processing.org/t/idk-why-but-i-get-this-error-message-expected-an-assignment-or-function-call-and-instead-saw-an-expression/24311)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 5:01pm UTC](https://discourse.processing.org/t/idk-why-but-i-get-this-error-message-expected-an-assignment-or-function-call-and-instead-saw-an-expression/24311 "2020-10-03T17:01:51Z")

</div>

if (timer = 98){ xd1 == xd1 \* -1; yd1 == yd1 \* -1; }

---

## [Why directionallight cannot show anything](https://discourse.processing.org/t/why-directionallight-cannot-show-anything/24305)

<div class="topic-metadata">

**Author:** [@yyf](https://discourse.processing.org/u/yyf)\
**Replies:** 5\
**Last updated:** [October 3, 2020, 2:33pm UTC](https://discourse.processing.org/t/why-directionallight-cannot-show-anything/24305 "2020-10-03T14:33:15Z")

</div>

void draw() { background(0,0,0); translate(400,400,-mouseY); fill(0,255,0); directionalLight(255,0,0,10,0,0); noStroke(); sphere(100.0); }

---

## [Petit problème d'animation](https://discourse.processing.org/t/petit-probleme-danimation/24295)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.processing.org/u/nina)\
**Replies:** 4\
**Last updated:** [October 3, 2020, 8:14am UTC](https://discourse.processing.org/t/petit-probleme-danimation/24295 "2020-10-03T08:14:57Z")

</div>

Bonjour , j’ai un petit souci je voudrais faire une animation sur processing. Le concept est la suivante , je voudrais faire de la pluie mais, je n’y arrive pas s’il vous plait aidez-moi . voici le programme que j’ai fa…

---

## [Constrain() function / mouse click on button](https://discourse.processing.org/t/constrain-function-mouse-click-on-button/24299)

<div class="topic-metadata">

**Author:** [@bigjoebob](https://discourse.processing.org/u/bigjoebob)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 11:32pm UTC](https://discourse.processing.org/t/constrain-function-mouse-click-on-button/24299 "2020-10-02T23:32:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi!! I need help in understanding how to use the constrain() function. I want to be able to click on a rectangle and have it change colors, howe…

---

## [keyPressed and keyReleased](https://discourse.processing.org/t/keypressed-and-keyreleased/24296)

<div class="topic-metadata">

**Author:** [@jaspervb](https://discourse.processing.org/u/jaspervb)\
**Replies:** 3\
**Last updated:** [October 2, 2020, 11:23pm UTC](https://discourse.processing.org/t/keypressed-and-keyreleased/24296 "2020-10-02T23:23:59Z")

</div>

Hello there, I need some help with processing. I am using the following code to lock and unlock rectangles with keycode. This works perfectly… In this case i want to add the following posibility: when you press a key …

---

## [Processing-style documentation for other projects](https://discourse.processing.org/t/processing-style-documentation-for-other-projects/24268)

<div class="topic-metadata">

**Author:** [@22samurai](https://discourse.processing.org/u/22samurai)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 8:40pm UTC](https://discourse.processing.org/t/processing-style-documentation-for-other-projects/24268 "2020-10-02T20:40:47Z")

</div>

I used Processing several years ago and really appreciated the documentation website with the interactive examples as a way to learn quickly about the language. pico8 is a lua-based “fantasy console” and the first thing…

---

## [Contents Of The Folder Not Being Copied With It](https://discourse.processing.org/t/contents-of-the-folder-not-being-copied-with-it/24293)

<div class="topic-metadata">

**Author:** [@Charlie\_Dev](https://discourse.processing.org/u/Charlie_Dev)\
**Replies:** 0\
**Last updated:** [October 2, 2020, 7:56pm UTC](https://discourse.processing.org/t/contents-of-the-folder-not-being-copied-with-it/24293 "2020-10-02T19:56:26Z")

</div>

I am copying files, but I need to copy folders. When I try to copy a folder the folder gets duplicated but there is nothing inside of it. I think there are 2 solutions but I don’t know how to do either. I could either fi…

---

## [Why Can't Processing Do Basic Math lol](https://discourse.processing.org/t/why-cant-processing-do-basic-math-lol/24277)

<div class="topic-metadata">

**Author:** [@wyattsworlddd](https://discourse.processing.org/u/wyattsworlddd)\
**Replies:** 8\
**Last updated:** [October 2, 2020, 4:32pm UTC](https://discourse.processing.org/t/why-cant-processing-do-basic-math-lol/24277 "2020-10-02T16:32:36Z")

</div>

Hey yall! I’m building a model that can simulate the trading that occurs across a liquidity pool and to experiment with how I can use a balancer contract account to tend the pool and keep a stable currency ratio. The iss…

---

## [Processing video library can't display human figure in a video with green background(solved)](https://discourse.processing.org/t/processing-video-library-cant-display-human-figure-in-a-video-with-green-background-solved/24270)

<div class="topic-metadata">

**Author:** [@Kenny](https://discourse.processing.org/u/Kenny)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 2:03pm UTC](https://discourse.processing.org/t/processing-video-library-cant-display-human-figure-in-a-video-with-green-background-solved/24270 "2020-10-02T14:03:43Z")

</div>

Hi everyone, I am using the following code to play the welcoming p5js video which is green background with human figures talking. The problem is that I can only see green canvas (and hear voices) without human figures. …

---

## [Kinect PV2 record color point cloud](https://discourse.processing.org/t/kinect-pv2-record-color-point-cloud/10939)

<div class="topic-metadata">

**Author:** [@phaidon](https://discourse.processing.org/u/phaidon)\
**Replies:** 8\
**Last updated:** [October 1, 2020, 6:32pm UTC](https://discourse.processing.org/t/kinect-pv2-record-color-point-cloud/10939 "2020-10-01T18:32:13Z")

</div>

Hello, i am trying to record the point cloud with color using this Kinect PV2 library, apparenty the getPointCloudColorPos() returns - INFINITY values, so i used 3 buffers two for the represantation in the processing s…

---

## [Why? My class exists!](https://discourse.processing.org/t/why-my-class-exists/24269)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 9\
**Last updated:** [October 1, 2020, 1:55pm UTC](https://discourse.processing.org/t/why-my-class-exists/24269 "2020-10-01T13:55:00Z")

</div>

The compiler says… the class “Circle” does not exist …but it does. Code: Circle circle = new Circle(10,color(0),color(255,0,0),0,new PVector(400,400),new PVector(0,0),new PVector(0,0)); class Circle{ float diamete…

---

## [Item Generator for D&D](https://discourse.processing.org/t/item-generator-for-d-d/24250)

<div class="topic-metadata">

**Author:** [@Artra97](https://discourse.processing.org/u/Artra97)\
**Replies:** 3\
**Last updated:** [September 30, 2020, 9:17pm UTC](https://discourse.processing.org/t/item-generator-for-d-d/24250 "2020-09-30T21:17:33Z")

</div>

Hello! Since I would like to start playing D&D, and also want to make things easier for me in the long run, I’m planning on making an item creator. The code I have so far allows me to write out an item, and save the da…

---

## [How to create infinite zoom with image mosaic](https://discourse.processing.org/t/how-to-create-infinite-zoom-with-image-mosaic/24264)

<div class="topic-metadata">

**Author:** [@newbie](https://discourse.processing.org/u/newbie)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 11:29am UTC](https://discourse.processing.org/t/how-to-create-infinite-zoom-with-image-mosaic/24264 "2020-10-01T11:29:23Z")

</div>

Hello everyone, I am new with the Processing language. I am trying to make processing animation with infinite zoom of image mosaic. I saw a discussion about this in the discourse processing foundation titled as “2001 A S…

---

## [Creating vertical lines](https://discourse.processing.org/t/creating-vertical-lines/24251)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 6\
**Last updated:** [October 1, 2020, 8:04am UTC](https://discourse.processing.org/t/creating-vertical-lines/24251 "2020-10-01T08:04:17Z")

</div>

Create a user defined function called drawLines() that has a strokeWeight(3) and a random r, g, b value with lower red, medium green and higher blue values. \*\*\*\*What is it telling me to do with the colors? This is what…

---

## [BufferedAudio does not exist Minim](https://discourse.processing.org/t/bufferedaudio-does-not-exist-minim/24239)

<div class="topic-metadata">

**Author:** [@rookieCookie](https://discourse.processing.org/u/rookieCookie)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 5:24am UTC](https://discourse.processing.org/t/bufferedaudio-does-not-exist-minim/24239 "2020-10-01T05:24:01Z")

</div>

Hello, I have an Arduino project for which I’m trying to downsample an mp3 track. To do so, I came across Processing and similar project. However, this is the error that I’m stuck with “The variable “BufferedAudio” does…

---

## [Drawing circles at the top](https://discourse.processing.org/t/drawing-circles-at-the-top/24258)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 2:16am UTC](https://discourse.processing.org/t/drawing-circles-at-the-top/24258 "2020-10-01T02:16:38Z")

</div>

I have to create these circles at the top and for some reason I can’t get them centered…at the beginning, it starts with half a circle. What am i doing wrong? here is my code public void drawCircles() { fill(255); …

---

## [Making a Display Screen](https://discourse.processing.org/t/making-a-display-screen/24108)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 5\
**Last updated:** [September 30, 2020, 8:38pm UTC](https://discourse.processing.org/t/making-a-display-screen/24108 "2020-09-30T20:38:03Z")

</div>

Hi, I wanted to make a title screen with a play button and a directions button. I know the logic behind it but I am not quite sure how to make it within classes. bubble b1; bubble b2; bubble b3; bubble b4; bubble b5; in…

---

## [Help me with collision detection with screen walls](https://discourse.processing.org/t/help-me-with-collision-detection-with-screen-walls/24248)

<div class="topic-metadata">

**Author:** [@Cal\_codes](https://discourse.processing.org/u/Cal_codes)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 7:30pm UTC](https://discourse.processing.org/t/help-me-with-collision-detection-with-screen-walls/24248 "2020-09-30T19:30:55Z")

</div>

//defining classes Player player1; void setup() { size(1200, 800); player1 = new Player(width/2, 100, 60); } void draw() { background(0); stroke(255); strokeWeight(3); // draw players fill(255); noStroke(); …

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

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