# Processing

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

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

**Page:** 131

---

## [Missing colors on openprocessing.org](https://discourse.processing.org/t/missing-colors-on-openprocessing-org/30153)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 3\
**Last updated:** [May 22, 2021, 1:42am UTC](https://discourse.processing.org/t/missing-colors-on-openprocessing-org/30153 "2021-05-22T01:42:19Z")

</div>

Hi please check https://openprocessing.org/sketch/1197450 Colors are missing, why? Is something missing on openprocessing.org? Code works fine on my machine. I am sure it is something silly, but I don’t see what. …

---

## [How to text array](https://discourse.processing.org/t/how-to-text-array/30192)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 22\
**Last updated:** [May 21, 2021, 6:23pm UTC](https://discourse.processing.org/t/how-to-text-array/30192 "2021-05-21T18:23:41Z")

</div>

hi all how to text array elements i have try but i could not do it looks random and wrong code any help thanks in advance void setup () { size ( 800 , 800 ); } void draw () { fill(0); int\[\] x = { 50,…

---

## [Object-oriented programming for the GAME](https://discourse.processing.org/t/object-oriented-programming-for-the-game/30203)

<div class="topic-metadata">

**Author:** [@UnderHok](https://discourse.processing.org/u/UnderHok)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 7:43am UTC](https://discourse.processing.org/t/object-oriented-programming-for-the-game/30203 "2021-05-21T07:43:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions help. How do I get the text input code to choose one of the two options and show the game board import java.util.Random; import java.util.Arra…

---

## [Lock app screen, home](https://discourse.processing.org/t/lock-app-screen-home/30191)

<div class="topic-metadata">

**Author:** [@Ezikaalex](https://discourse.processing.org/u/Ezikaalex)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 1:02pm UTC](https://discourse.processing.org/t/lock-app-screen-home/30191 "2021-05-20T13:02:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions yes

---

## [How can I make an object remain in the x position it was fired from?](https://discourse.processing.org/t/how-can-i-make-an-object-remain-in-the-x-position-it-was-fired-from/30187)

<div class="topic-metadata">

**Author:** [@burritonacho](https://discourse.processing.org/u/burritonacho)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 11:57am UTC](https://discourse.processing.org/t/how-can-i-make-an-object-remain-in-the-x-position-it-was-fired-from/30187 "2021-05-20T11:57:25Z")

</div>

I have a character moving back and forth across the screen that fires a projectile, and I want the projectile to stay on screen. The Y position part of my code is working, but I cannot get my projectiles to stay in the …

---

## [I am stuck with one small invisible error](https://discourse.processing.org/t/i-am-stuck-with-one-small-invisible-error/30170)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 5\
**Last updated:** [May 20, 2021, 11:39am UTC](https://discourse.processing.org/t/i-am-stuck-with-one-small-invisible-error/30170 "2021-05-20T11:39:32Z")

</div>

what i want to do is that when i click and mouse inside the quadrilateral，it will be divided to four pieces. there will be four mouse position for each piece .the four mouse position will move to four different position. …

---

## [\[bezier.data.sql library\] SHOW TABLE STATUS / It doesn't work. / help me](https://discourse.processing.org/t/bezier-data-sql-library-show-table-status-it-doesnt-work-help-me/30179)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 12:11am UTC](https://discourse.processing.org/t/bezier-data-sql-library-show-table-status-it-doesnt-work-help-me/30179 "2021-05-20T00:11:18Z")

</div>

please format code with \</\> button \* homework policy \* asking questions import de.bezier.data.sql.\*; SQLite db; String SHOW\_TABLE\_STATUS = "SHOW TABLE STATUS"; String SHOW\_TABLE\_STATUS2 = "SHOW TABLES"; void setup(…

---

## [P3D not working on Big Siur](https://discourse.processing.org/t/p3d-not-working-on-big-siur/29745)

<div class="topic-metadata">

**Author:** [@jackeddielove](https://discourse.processing.org/u/jackeddielove)\
**Replies:** 11\
**Last updated:** [May 19, 2021, 10:02pm UTC](https://discourse.processing.org/t/p3d-not-working-on-big-siur/29745 "2021-05-19T22:02:42Z")

</div>

Even this basic code, cut and pasted from the P3D tutorial, won’t run. Any ideas? float x,y,z; void setup() { size(200,200,P3D); x = width/2; y = height/2; z = 0; } void draw() { translate(x,y,z); rectMode…

---

## [How to make squares bounce off of each other?](https://discourse.processing.org/t/how-to-make-squares-bounce-off-of-each-other/30159)

<div class="topic-metadata">

**Author:** [@cannonman](https://discourse.processing.org/u/cannonman)\
**Replies:** 3\
**Last updated:** [May 19, 2021, 9:10pm UTC](https://discourse.processing.org/t/how-to-make-squares-bounce-off-of-each-other/30159 "2021-05-19T21:10:55Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int \[\]xspeed; int \[\]yspeed; int \[\]xcor; int \[\]ycor; int \[\]direction; int \[\]steps; boolean movin\[\]; boolean gamemode; float r\[\]; float b\[\]; float…

---

## [Kinect on windows 10](https://discourse.processing.org/t/kinect-on-windows-10/20443)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 2\
**Last updated:** [May 19, 2021, 7:57pm UTC](https://discourse.processing.org/t/kinect-on-windows-10/20443 "2021-05-19T19:57:09Z")

</div>

Hey, I have an error “No kinect devices found”. Im using windows 10 and the library ‘open kinect’. I tried to look up for an answer but didnt find one, so what can I do? Thanks (:

---

## [How to play a video and add a live webcam overlay?](https://discourse.processing.org/t/how-to-play-a-video-and-add-a-live-webcam-overlay/30167)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 1\
**Last updated:** [May 19, 2021, 7:51pm UTC](https://discourse.processing.org/t/how-to-play-a-video-and-add-a-live-webcam-overlay/30167 "2021-05-19T19:51:42Z")

</div>

Hi, I am making a film that will be shown at an exhibition in about a month. The visitor can sit in front of a monitor and experience the film like this with headphones. At a certain point in the film I want to incorpor…

---

## [Making an object react to sound amplitude of live audio feed using minim library or sound library](https://discourse.processing.org/t/making-an-object-react-to-sound-amplitude-of-live-audio-feed-using-minim-library-or-sound-library/30169)

<div class="topic-metadata">

**Author:** [@codestruggles](https://discourse.processing.org/u/codestruggles)\
**Replies:** 2\
**Last updated:** [May 19, 2021, 2:01pm UTC](https://discourse.processing.org/t/making-an-object-react-to-sound-amplitude-of-live-audio-feed-using-minim-library-or-sound-library/30169 "2021-05-19T14:01:58Z")

</div>

Hello! I’m currently working on something i feel should be pretty simple but i’m really struggling to do it :sweat: Basically, i have a png image and i would like to make it move position on the canvas by reacting to l…

---

## [AudioIn not working on mac](https://discourse.processing.org/t/audioin-not-working-on-mac/29886)

<div class="topic-metadata">

**Author:** [@LuckyDots](https://discourse.processing.org/u/LuckyDots)\
**Replies:** 3\
**Last updated:** [May 19, 2021, 7:16am UTC](https://discourse.processing.org/t/audioin-not-working-on-mac/29886 "2021-05-19T07:16:21Z")

</div>

Hello, I’m having some trouble with getting the minim audio input to work. first i tried following this youtube tutorial then i tried using the example code on http://code.compartmental.net/minim/audioinp…

---

## [Updating Digital Clock Reading to Always Match Current Time](https://discourse.processing.org/t/updating-digital-clock-reading-to-always-match-current-time/12363)

<div class="topic-metadata">

**Author:** [@per0\_22](https://discourse.processing.org/u/per0_22)\
**Replies:** 4\
**Last updated:** [May 18, 2021, 9:35pm UTC](https://discourse.processing.org/t/updating-digital-clock-reading-to-always-match-current-time/12363 "2021-05-18T21:35:33Z")

</div>

Hello. This is my first post so please correct me if my formatting is awful. I am trying to have a simple date and time print onto the monitor. I am able to print the values using their corresponding functions from proc…

---

## [Saving every frame in SVG](https://discourse.processing.org/t/saving-every-frame-in-svg/30152)

<div class="topic-metadata">

**Author:** [@ecce13](https://discourse.processing.org/u/ecce13)\
**Replies:** 1\
**Last updated:** [May 18, 2021, 12:01pm UTC](https://discourse.processing.org/t/saving-every-frame-in-svg/30152 "2021-05-18T12:01:26Z")

</div>

Hey, I’m completely new to this, and this is an assignment for me, so pardon if there’s any errors in the code. I’ve been trying to implement SVG saving so I can edit the file in Illustrator, but I can’t seem to save the…

---

## [Find direction vector is in](https://discourse.processing.org/t/find-direction-vector-is-in/30161)

<div class="topic-metadata">

**Author:** [@fede4961](https://discourse.processing.org/u/fede4961)\
**Replies:** 2\
**Last updated:** [May 18, 2021, 9:12pm UTC](https://discourse.processing.org/t/find-direction-vector-is-in/30161 "2021-05-18T21:12:48Z")

</div>

I currently have 2 vectors: PVector a = new PVector ( 100, 100 ); PVector b = new PVector ( 500, 500 ); I need to set a’s heading so that it lines up with b. I’ve been struggling with this for a few days: I tried using…

---

## [Gradients with different colors](https://discourse.processing.org/t/gradients-with-different-colors/30143)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 5\
**Last updated:** [May 18, 2021, 4:08pm UTC](https://discourse.processing.org/t/gradients-with-different-colors/30143 "2021-05-18T16:08:54Z")

</div>

Hi there I want to make a picture as the picture attached. I have found a Code about gradients that I wanted to use, but I dont understand anything :sweat\_smile: I would like to know what I need to change to use an…

---

## [Drawing Line with Bouncing Ball](https://discourse.processing.org/t/drawing-line-with-bouncing-ball/30130)

<div class="topic-metadata">

**Author:** [@SodaPopPop](https://discourse.processing.org/u/SodaPopPop)\
**Replies:** 8\
**Last updated:** [May 18, 2021, 3:23am UTC](https://discourse.processing.org/t/drawing-line-with-bouncing-ball/30130 "2021-05-18T03:23:32Z")

</div>

Hello! I am a beginner, and I’m very new to processing! I have a project in mind that I have no idea how to execute. I want to create something from the bouncing ball example. Supposedly, the code will draw a line from …

---

## [Debugger crashing](https://discourse.processing.org/t/debugger-crashing/30053)

<div class="topic-metadata">

**Author:** [@LuisGranados](https://discourse.processing.org/u/LuisGranados)\
**Replies:** 8\
**Last updated:** [May 17, 2021, 4:29pm UTC](https://discourse.processing.org/t/debugger-crashing/30053 "2021-05-17T16:29:13Z")

</div>

I am a newbie, attempting to use the debugger to figure out why my sketch isn’t doing what I want. But it never shows anything in the variables window, and simply shows a massive red error message in the console instead.…

---

## [Objects in P3D look weird (clipping)](https://discourse.processing.org/t/objects-in-p3d-look-weird-clipping/30094)

<div class="topic-metadata">

**Author:** [@Eastern](https://discourse.processing.org/u/Eastern)\
**Replies:** 4\
**Last updated:** [May 17, 2021, 6:59am UTC](https://discourse.processing.org/t/objects-in-p3d-look-weird-clipping/30094 "2021-05-17T06:59:14Z")

</div>

Demonstration video: HERE I was making a first person maze game in P3D and encountered this problem. It seems like when I get too close to an object, I see through it. The camera haven’t even reached the surface of the …

---

## [Drag and Drop audio file into Minim](https://discourse.processing.org/t/drag-and-drop-audio-file-into-minim/15123)

<div class="topic-metadata">

**Author:** [@ozman](https://discourse.processing.org/u/ozman)\
**Replies:** 6\
**Last updated:** [May 16, 2021, 8:49pm UTC](https://discourse.processing.org/t/drag-and-drop-audio-file-into-minim/15123 "2021-05-16T20:49:11Z")

</div>

Hi! I am trying to implement a drag and drop function into a processing visualizer. At the moment i am able to play song through my data folder with minim, but i would like to use the Drop library to upload any song an…

---

## [Libp5x examples - Processing, LWJGL, Gradle and Java 11+ modules](https://discourse.processing.org/t/libp5x-examples-processing-lwjgl-gradle-and-java-11-modules/30110)

<div class="topic-metadata">

**Author:** [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Replies:** 6\
**Last updated:** [May 16, 2021, 2:54pm UTC](https://discourse.processing.org/t/libp5x-examples-processing-lwjgl-gradle-and-java-11-modules/30110 "2021-05-16T14:54:27Z")

</div>

I’ve just started putting together a few Gradle-based examples for using libp5x (as published on Maven Central). This is the fork of Processing 3.5.3 used inside PraxisLIVE v5+. It’s adapted to use LWJGL for OpenGL rende…

---

## [Calling functions with variables](https://discourse.processing.org/t/calling-functions-with-variables/30001)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 7\
**Last updated:** [May 16, 2021, 12:08pm UTC](https://discourse.processing.org/t/calling-functions-with-variables/30001 "2021-05-16T12:08:27Z")

</div>

Say I had 3 functions; scene1(), scene2(), scene3(), and wanted to switch between these functions by changing an int variable ‘scene’. Is there any possible solution to this without the use of if/switch statements?

---

## [Moving boundaries in box2D](https://discourse.processing.org/t/moving-boundaries-in-box2d/23844)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 3:27am UTC](https://discourse.processing.org/t/moving-boundaries-in-box2d/23844 "2021-05-16T03:27:10Z")

</div>

Hi, I’m looking for some kind of ChainShape or similar that I can update the position of manually to act as a moving boundary for dynamic objects. They should collide but not respond to forces. I’m trying to make a sim…

---

## [Initialize subclass of PGraphics](https://discourse.processing.org/t/initialize-subclass-of-pgraphics/30113)

<div class="topic-metadata">

**Author:** [@Tomfoolery](https://discourse.processing.org/u/Tomfoolery)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 12:26am UTC](https://discourse.processing.org/t/initialize-subclass-of-pgraphics/30113 "2021-05-16T00:26:10Z")

</div>

I’m working in the Eclipse environment and am looking to create a new class (TGraphics) that extends PGraphics. I want to do this so that I can polymorph the beginDraw() method to send an message to my event bus every t…

---

## [Export sketch as audio?](https://discourse.processing.org/t/export-sketch-as-audio/30111)

<div class="topic-metadata">

**Author:** [@TheZipCreator](https://discourse.processing.org/u/TheZipCreator)\
**Replies:** 1\
**Last updated:** [May 15, 2021, 10:52pm UTC](https://discourse.processing.org/t/export-sketch-as-audio/30111 "2021-05-15T22:52:16Z")

</div>

so I made the following sketch to scramble audio, and I’m wondering how to export the audio I get from it. Currently I’m just using audacity to record desktop audio while the sketch is running, but that takes long as I m…

---

## [Help with pixels\[\] loadPixels(), etc](https://discourse.processing.org/t/help-with-pixels-loadpixels-etc/30109)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 6\
**Last updated:** [May 15, 2021, 7:49pm UTC](https://discourse.processing.org/t/help-with-pixels-loadpixels-etc/30109 "2021-05-15T19:49:10Z")

</div>

Hi all, I’ve been building some code from scratch to compare the pixels of a reference image to the pixels of each new frame of video being captured by the webcam. I was able to get it to work the way that I wanted (I …

---

## [Is there a way to stop the register method?](https://discourse.processing.org/t/is-there-a-way-to-stop-the-register-method/30107)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 1\
**Last updated:** [May 15, 2021, 12:50pm UTC](https://discourse.processing.org/t/is-there-a-way-to-stop-the-register-method/30107 "2021-05-15T12:50:23Z")

</div>

Hey it’s me again i wanted to ask how to remove the register method. Because it now calls for every object created in the background and I don’t want that. Here is a small example that I made. The function destroy () …

---

## [Drawing a spectogram 2D (or 3D) from a recorded audio](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 25\
**Last updated:** [May 11, 2021, 2:39pm UTC](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708 "2021-05-11T14:39:22Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi Everybody, is there any code to do what in the object of the discussion? Thanks Best regards Roberto

---

## [Making a keyPressed do a launch and launch sequence?](https://discourse.processing.org/t/making-a-keypressed-do-a-launch-and-launch-sequence/30077)

<div class="topic-metadata">

**Author:** [@yagirl\_belle](https://discourse.processing.org/u/yagirl_belle)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 2:48pm UTC](https://discourse.processing.org/t/making-a-keypressed-do-a-launch-and-launch-sequence/30077 "2021-05-14T14:48:03Z")

</div>

Hey everyone, I’m trying to do a launch sequence by pressing the same key twice. 1st press = start launch, 2nd press = launch object I’m not certain how to do this and what I need to use. I’m using booleans to run the …

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

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