# Latest

**URL:** https://discourse.processing.org/latest.md?page=363

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

**Page:** 364

---

## [setSwitch(true) Error](https://discourse.processing.org/t/setswitch-true-error/19927)

<div class="topic-metadata">

**Author:** [@shoaibmirza](https://discourse.processing.org/u/shoaibmirza)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 11:20am UTC](https://discourse.processing.org/t/setswitch-true-error/19927 "2020-04-19T11:20:06Z")

</div>

Hi, I’m having an issue with the controlP5 Library in processing. setSwitch(true) I’m using this line of code to make the button toggle. it works but I’m getting this error message. controlP5.ControlBroadcaster in…

---

## [What are PConstants](https://discourse.processing.org/t/what-are-pconstants/19923)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 1\
**Last updated:** [April 19, 2020, 8:56am UTC](https://discourse.processing.org/t/what-are-pconstants/19923 "2020-04-19T08:56:39Z")

</div>

I am sorry if this is very trivial to ask. I couldn’t find a satisfactory definition on java sites.What are they & why are they used in begin shapes for eg beginShape(PConstants.TRIANGLES).?

---

## [Need help rotating flags every 2 seconds](https://discourse.processing.org/t/need-help-rotating-flags-every-2-seconds/19776)

<div class="topic-metadata">

**Author:** [@Hypercube](https://discourse.processing.org/u/Hypercube)\
**Replies:** 4\
**Last updated:** [April 19, 2020, 8:13am UTC](https://discourse.processing.org/t/need-help-rotating-flags-every-2-seconds/19776 "2020-04-19T08:13:46Z")

</div>

I’m trying to write a program that draws 4 flags of different countries and rotates them every 2 seconds. For example it starts out as: Iceland Italy Russia Sweden After two seconds it should be: Italy Russia Swede…

---

## [Artificial Life](https://discourse.processing.org/t/artificial-life/19741)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 4\
**Last updated:** [April 19, 2020, 3:34am UTC](https://discourse.processing.org/t/artificial-life/19741 "2020-04-19T03:34:59Z")

</div>

The white dot chases the yellow dots for food. Also the white dot get hurt if it bumps into the red blocks but it doesn’t know where they are. However it has memory so in time it might figure out a strategy. The white…

---

## [Print() Causes Animation Lagging - Are there fixes? What else causes lags?](https://discourse.processing.org/t/print-causes-animation-lagging-are-there-fixes-what-else-causes-lags/19702)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 3\
**Last updated:** [April 18, 2020, 10:46pm UTC](https://discourse.processing.org/t/print-causes-animation-lagging-are-there-fixes-what-else-causes-lags/19702 "2020-04-18T22:46:58Z")

</div>

Hello Forum, I am in the processing of shifting from Processing to p5Js for my high school class that is now online starting Monday. We love to use print() to learn but I noticed that it causes severe lag for animations…

---

## [Inherit/Use p5.Vector methods in NodeJS](https://discourse.processing.org/t/inherit-use-p5-vector-methods-in-nodejs/19909)

<div class="topic-metadata">

**Author:** [@cake](https://discourse.processing.org/u/cake)\
**Replies:** 4\
**Last updated:** [April 18, 2020, 10:34pm UTC](https://discourse.processing.org/t/inherit-use-p5-vector-methods-in-nodejs/19909 "2020-04-18T22:34:38Z")

</div>

Hello! I’d like to inherit & use p5.Vector & its methods in a class I’m writing. / Use p5.Vector without a window. This is backend code, I’ve seen that p5 cannot ‘run’ without a ‘window’ object. As it gives me ‘window’ …

---

## [Sending an exit (return) code](https://discourse.processing.org/t/sending-an-exit-return-code/19879)

<div class="topic-metadata">

**Author:** [@rhole](https://discourse.processing.org/u/rhole)\
**Replies:** 8\
**Last updated:** [April 18, 2020, 10:04pm UTC](https://discourse.processing.org/t/sending-an-exit-return-code/19879 "2020-04-18T22:04:30Z")

</div>

I have a need for my sketch to exit and provide a return code to the program which invoked it. I envision something like: // program is ready to end if( errorDetected ) exit(1); // for an error exit else exit(0); I…

---

## [Multiple Cursors](https://discourse.processing.org/t/multiple-cursors/19481)

<div class="topic-metadata">

**Author:** [@JGSalgueiro](https://discourse.processing.org/u/JGSalgueiro)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 10:00pm UTC](https://discourse.processing.org/t/multiple-cursors/19481 "2020-04-18T22:00:37Z")

</div>

Hi guys! Its my first post here and i hope it wont be my last. I ve been coding for a couple years but im still new to java and Processing. My question is: Is it possible to have multiple cursors all comanded by your m…

---

## [Cannot make static reference to non static method](https://discourse.processing.org/t/cannot-make-static-reference-to-non-static-method/19504)

<div class="topic-metadata">

**Author:** [@smep](https://discourse.processing.org/u/smep)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 9:43pm UTC](https://discourse.processing.org/t/cannot-make-static-reference-to-non-static-method/19504 "2020-04-18T21:43:57Z")

</div>

creating a virtual stock market having been given a data list of 1000 daily stock prices which has been loaded in separately. my problem is when I try to do Graph.draw(); in my main class it gives me an error of cannot m…

---

## [Bouncing of an immovable large circle, a moving small circle and a gravity and right force vector](https://discourse.processing.org/t/bouncing-of-an-immovable-large-circle-a-moving-small-circle-and-a-gravity-and-right-force-vector/19443)

<div class="topic-metadata">

**Author:** [@worm888](https://discourse.processing.org/u/worm888)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 9:26pm UTC](https://discourse.processing.org/t/bouncing-of-an-immovable-large-circle-a-moving-small-circle-and-a-gravity-and-right-force-vector/19443 "2020-04-18T21:26:16Z")

</div>

planangle = new PVector(location.x-plan.location.x, location.y-plan.location.y); // if (-90\<velocity.heading() && velocity.heading()\<90) { // planangle.rotate(PI); //} if (dist(location.x, location.y, pla…

---

## [Android mode hangs on Android SDK notification](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716)

<div class="topic-metadata">

**Author:** [@UnaLuz](https://discourse.processing.org/u/UnaLuz)\
**Replies:** 24\
**Last updated:** [April 18, 2020, 9:02pm UTC](https://discourse.processing.org/t/android-mode-hangs-on-android-sdk-notification/18716 "2020-04-18T21:02:02Z")

</div>

Well, I tried following the Get started tutorial on the Processing for Android page but after downloading the Android mode, I tried to switch to it and all I got was a “Cannot find an Android SDK…” message box with nothi…

---

## [How Can I Control Vectors via Grayscale Values of An Image?](https://discourse.processing.org/t/how-can-i-control-vectors-via-grayscale-values-of-an-image/19905)

<div class="topic-metadata">

**Author:** [@Peyton](https://discourse.processing.org/u/Peyton)\
**Replies:** 0\
**Last updated:** [April 18, 2020, 8:55pm UTC](https://discourse.processing.org/t/how-can-i-control-vectors-via-grayscale-values-of-an-image/19905 "2020-04-18T20:55:35Z")

</div>

Hi! I am obsessed with the look of Perlin noise, and decided to try to use it (and Processing) for the first time, to design a piece for a design project. At the moment, I have a flowfield that creates some awesome looki…

---

## [Problems with video library instalation](https://discourse.processing.org/t/problems-with-video-library-instalation/19592)

<div class="topic-metadata">

**Author:** [@Ferz](https://discourse.processing.org/u/Ferz)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 8:16pm UTC](https://discourse.processing.org/t/problems-with-video-library-instalation/19592 "2020-04-18T20:16:53Z")

</div>

Excuse me if I have bad grammar, I am russian. I downloaded video library from contribution manager. When I try to use it, it shows the message: A library relies on native code that’s not available. Or only works prop…

---

## [WebSocket Pro library for processing](https://discourse.processing.org/t/websocket-pro-library-for-processing/19697)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 8:12pm UTC](https://discourse.processing.org/t/websocket-pro-library-for-processing/19697 "2020-04-18T20:12:20Z")

</div>

Hello community, how are you all? I want to share my work with all of you, it is a very high-level WebSocket library with all the built-in and serial abstraction mechanisms to be able to create concurrent servers with a…

---

## [Rosetta Examples for P5](https://discourse.processing.org/t/rosetta-examples-for-p5/16442)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 7\
**Last updated:** [April 18, 2020, 1:11am UTC](https://discourse.processing.org/t/rosetta-examples-for-p5/16442 "2020-04-18T01:11:50Z")

</div>

Rosetta Examples for P5 is now available! It features sketches drawn from RosettaCode.org demonstrating the completion of a variety of common computing tasks in Processing (Java Mode). You can install it in Processing PD…

---

## [Unable to append to an array of G4P objects](https://discourse.processing.org/t/unable-to-append-to-an-array-of-g4p-objects/19898)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 6\
**Last updated:** [April 18, 2020, 7:50pm UTC](https://discourse.processing.org/t/unable-to-append-to-an-array-of-g4p-objects/19898 "2020-04-18T19:50:05Z")

</div>

I can create arrays of G4P objects and access them using an index or subscript, but I don’t seem to be able to append to an array of G4P objects. I get an error message “cannot convert from Object to GPanel\[\]” on the lin…

---

## [Altering Magnitude of Noise Value at Specific Coordinate](https://discourse.processing.org/t/altering-magnitude-of-noise-value-at-specific-coordinate/19718)

<div class="topic-metadata">

**Author:** [@heatmiser](https://discourse.processing.org/u/heatmiser)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 6:59pm UTC](https://discourse.processing.org/t/altering-magnitude-of-noise-value-at-specific-coordinate/19718 "2020-04-18T18:59:54Z")

</div>

Hi, I’m wondering if there is a way to increase the magnitude of noise at specific coordinates. The code below allows me to create topography based on perlin noise. As one can see, I get a noise value for every i and j. …

---

## [Text appears in different positions](https://discourse.processing.org/t/text-appears-in-different-positions/19720)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 6:51pm UTC](https://discourse.processing.org/t/text-appears-in-different-positions/19720 "2020-04-18T18:51:27Z")

</div>

I had an earlier problem where buttons didn’t stay where I wanted on the canvas. I managed to resolve that problem. I should say resolved somewhat because the position is slightly different in Chrome compared to Mozilla. …

---

## [Regarding using libraries for Computer vision](https://discourse.processing.org/t/regarding-using-libraries-for-computer-vision/19814)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 6:40pm UTC](https://discourse.processing.org/t/regarding-using-libraries-for-computer-vision/19814 "2020-04-18T18:40:58Z")

</div>

Are thr any libraries other than opencv that is compatible with Processing for computer vision I f any please suggest thanks

---

## [Quadrifolium curve](https://discourse.processing.org/t/quadrifolium-curve/19887)

<div class="topic-metadata">

**Author:** [@ElMatematico53](https://discourse.processing.org/u/ElMatematico53)\
**Replies:** 5\
**Last updated:** [April 18, 2020, 6:30pm UTC](https://discourse.processing.org/t/quadrifolium-curve/19887 "2020-04-18T18:30:06Z")

</div>

We have created a quadrifolium function, and we may need help to write its tangent. We would like to see the tangent line every time the mouse is on the function, for each point of it The equation and the parameterizati…

---

## [How to disable ESC key functionality in G4P child window](https://discourse.processing.org/t/how-to-disable-esc-key-functionality-in-g4p-child-window/19891)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 3\
**Last updated:** [April 18, 2020, 5:27pm UTC](https://discourse.processing.org/t/how-to-disable-esc-key-functionality-in-g4p-child-window/19891 "2020-04-18T17:27:22Z")

</div>

Problem: I want to disable the default functionality of the ESC key in a Processing sketch that creates a G4P child window. The standard method of doing this is: void keyPressed() { if (key == ESC) { key = 0; } …

---

## [Cambiar el color de la interfaz de Processing](https://discourse.processing.org/t/cambiar-el-color-de-la-interfaz-de-processing/19560)

<div class="topic-metadata">

**Author:** [@jotajotacv](https://discourse.processing.org/u/jotajotacv)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 4:21pm UTC](https://discourse.processing.org/t/cambiar-el-color-de-la-interfaz-de-processing/19560 "2020-04-18T16:21:13Z")

</div>

Hola a todos, buenas tardes. Mi pregunta es la siguiente: ¿Es posible cambiar el color de los bordes de la interfaz de Processing, del color azul oscuro a por ejemplo un color verde claro? Cuando modifico los colores …

---

## [Help about a code with Processing as a library (IJ IDE)](https://discourse.processing.org/t/help-about-a-code-with-processing-as-a-library-ij-ide/19319)

<div class="topic-metadata">

**Author:** [@Helron](https://discourse.processing.org/u/Helron)\
**Replies:** 7\
**Last updated:** [April 18, 2020, 2:41pm UTC](https://discourse.processing.org/t/help-about-a-code-with-processing-as-a-library-ij-ide/19319 "2020-04-18T14:41:15Z")

</div>

Hello everybody ! Let 's start by a quick présentation because this is my first post. I am learning slowly Java and i have start by processing there is a month and a half. I achieved a game with 2 balls, each jumping…

---

## [FFT lacking high frequency action](https://discourse.processing.org/t/fft-lacking-high-frequency-action/19845)

<div class="topic-metadata">

**Author:** [@EKM](https://discourse.processing.org/u/EKM)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 9:31am UTC](https://discourse.processing.org/t/fft-lacking-high-frequency-action/19845 "2020-04-18T09:31:42Z")

</div>

Hey there, I’m new to Processing! I’m sending FFT analysis info to Grasshopper (a parametric tool for 3D software Rhino for anyone who isn’t familiar!) - I’m using my laptop microphone / system audio using a virtual aud…

---

## [How to move something diagonally?](https://discourse.processing.org/t/how-to-move-something-diagonally/19884)

<div class="topic-metadata">

**Author:** [@iJermo](https://discourse.processing.org/u/iJermo)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 9:24am UTC](https://discourse.processing.org/t/how-to-move-something-diagonally/19884 "2020-04-18T09:24:35Z")

</div>

That’s where I am at. I’ve looked everywhere but I couldn’t convert java solutions into my python code class car(): def \_\_init\_\_(self): self.c1 = 95 self.c2 = 18 self.c3 = 132 self.wi…

---

## [Transferring files with p5 js, node js, socket io](https://discourse.processing.org/t/transferring-files-with-p5-js-node-js-socket-io/19881)

<div class="topic-metadata">

**Author:** [@CodingIsLife](https://discourse.processing.org/u/CodingIsLife)\
**Replies:** 0\
**Last updated:** [April 18, 2020, 7:04am UTC](https://discourse.processing.org/t/transferring-files-with-p5-js-node-js-socket-io/19881 "2020-04-18T07:04:05Z")

</div>

Hello! I am using p5 js for developing a very simple chat platform. I am also using node and socket. The video series I am following created by Coding Train I implemented the chatting concept successfully. But now I wa…

---

## [Can anyone read and help with a lab?](https://discourse.processing.org/t/can-anyone-read-and-help-with-a-lab/19759)

<div class="topic-metadata">

**Author:** [@rachellinden24](https://discourse.processing.org/u/rachellinden24)\
**Replies:** 6\
**Last updated:** [April 18, 2020, 3:51am UTC](https://discourse.processing.org/t/can-anyone-read-and-help-with-a-lab/19759 "2020-04-18T03:51:32Z")

</div>

Perform data analysis of numeric values enter by user via keyboard: -use a list of stores values -read in five single digit positive numbers from user via keyboard -create console outputs with text labels and values …

---

## [I tried implementing a simple pathfinding algorithm by following along with wikipedia](https://discourse.processing.org/t/i-tried-implementing-a-simple-pathfinding-algorithm-by-following-along-with-wikipedia/19851)

<div class="topic-metadata">

**Author:** [@jimather](https://discourse.processing.org/u/jimather)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 3:49am UTC](https://discourse.processing.org/t/i-tried-implementing-a-simple-pathfinding-algorithm-by-following-along-with-wikipedia/19851 "2020-04-18T03:49:21Z")

</div>

So not really sure how to phrase this. It’s not really a specific question as such just more like: “Hey look at this, where is it obviously pants?” So with all the free time recently I thought I’d try to make a tower de…

---

## [MPR121sensor attached to Arduino and serial communication to Processing](https://discourse.processing.org/t/mpr121sensor-attached-to-arduino-and-serial-communication-to-processing/19830)

<div class="topic-metadata">

**Author:** [@Thecrazytechgirl](https://discourse.processing.org/u/Thecrazytechgirl)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 1:12am UTC](https://discourse.processing.org/t/mpr121sensor-attached-to-arduino-and-serial-communication-to-processing/19830 "2020-04-18T01:12:07Z")

</div>

Hi there, I’m new to processing but I’m working on a project with a MPR121 sensor with 12 channels. I am done with my processing code and i have a sketch from the Arduino Adafruit MPR121 and it works on my project. Now …

---

## [Privacy Policy for the p5 web editor](https://discourse.processing.org/t/privacy-policy-for-the-p5-web-editor/19809)

<div class="topic-metadata">

**Author:** [@fullerr](https://discourse.processing.org/u/fullerr)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 10:47pm UTC](https://discourse.processing.org/t/privacy-policy-for-the-p5-web-editor/19809 "2020-04-17T22:47:20Z")

</div>

I will be having my students use the p5 web editor. Before I can ask them to make an account, my school must review the privacy policy. Is there a privacy policy for the p5 web editor or should I reference the privacy po…

[Previous page](https://discourse.processing.org/latest.md?page=362)

[Next page](https://discourse.processing.org/latest.md?page=364)
