# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=527

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

**Page:** 528

---

## [Need help with creating a quiz](https://discourse.processing.org/t/need-help-with-creating-a-quiz/8133)

<div class="topic-metadata">

**Author:** [@juriaan](https://discourse.processing.org/u/juriaan)\
**Replies:** 6\
**Last updated:** [February 5, 2019, 3:53pm UTC](https://discourse.processing.org/t/need-help-with-creating-a-quiz/8133 "2019-02-05T15:53:21Z")

</div>

Hey guys, I’m new here to the forums and processing. For school I’m trying to create a quiz that makes a shape based on your answers. I want to have around 4 questions with just two answers. Now what I can’t seem to f…

---

## [mouseWheel on g4p window](https://discourse.processing.org/t/mousewheel-on-g4p-window/8134)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 1:36pm UTC](https://discourse.processing.org/t/mousewheel-on-g4p-window/8134 "2019-02-05T13:36:59Z")

</div>

Hi guys, I would translate a g4p label on g4p further window but i can’t do it. If I use the translate(x,y) function on main window it work fine but in another g4p window it doesn’t. The function mouseWheel works only w…

---

## [Unexpected token - void](https://discourse.processing.org/t/unexpected-token-void/8099)

<div class="topic-metadata">

**Author:** [@ClashAdam](https://discourse.processing.org/u/ClashAdam)\
**Replies:** 3\
**Last updated:** [February 5, 2019, 10:12am UTC](https://discourse.processing.org/t/unexpected-token-void/8099 "2019-02-05T10:12:49Z")

</div>

This errors shows for no reason, in first tab Drop\[\] drops = new Drop\[500\] void setup() { size(640, 360) ; for (int i = 0; i \< drops.length; i++) { drops\[i\] i = new Drop() ; } } void draw() { background(23…

---

## [Processing Community Day @ Abu Dhabi](https://discourse.processing.org/t/processing-community-day-abu-dhabi/3819)

<div class="topic-metadata">

**Author:** [@sfaykrom](https://discourse.processing.org/u/sfaykrom)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 8:57am UTC](https://discourse.processing.org/t/processing-community-day-abu-dhabi/3819 "2019-02-05T08:57:28Z")

</div>

Hi! I’m Sarah Fay Krom and I am a faculty member within the Interactive Media (IM) Program at NYU Abu Dhabi (NYUAD). There are three of us co-organizing PCD @ Abu Dhabi including Craig Protzel, faculty member and head of…

---

## [Changing the size of shape based on values from Data Set](https://discourse.processing.org/t/changing-the-size-of-shape-based-on-values-from-data-set/8100)

<div class="topic-metadata">

**Author:** [@CalumDixon](https://discourse.processing.org/u/CalumDixon)\
**Replies:** 11\
**Last updated:** [February 5, 2019, 8:39am UTC](https://discourse.processing.org/t/changing-the-size-of-shape-based-on-values-from-data-set/8100 "2019-02-05T08:39:06Z")

</div>

Hey, I’m still pretty new to processing so I doubt this a very complicated issue. I’m trying to visualise a data set of earthquakes around the world, but I’m struggling to make the markers increase in size based on the …

---

## [Cannot refer to the non-final local variable ... defined in an enclosing scope](https://discourse.processing.org/t/cannot-refer-to-the-non-final-local-variable-defined-in-an-enclosing-scope/8023)

<div class="topic-metadata">

**Author:** [@Renaud](https://discourse.processing.org/u/Renaud)\
**Replies:** 4\
**Last updated:** [February 5, 2019, 7:51am UTC](https://discourse.processing.org/t/cannot-refer-to-the-non-final-local-variable-defined-in-an-enclosing-scope/8023 "2019-02-05T07:51:09Z")

</div>

Hi, I am trying a code found on the internet (below). When I run it, I obtain this message: “cannot refer to the non-final local variable startw defined in an enclosing scope” What is it supposed to mean ? What can I d…

---

## [Mic input animating something complex](https://discourse.processing.org/t/mic-input-animating-something-complex/8128)

<div class="topic-metadata">

**Author:** [@Sigsound](https://discourse.processing.org/u/Sigsound)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 5:22am UTC](https://discourse.processing.org/t/mic-input-animating-something-complex/8128 "2019-02-05T05:22:03Z")

</div>

Hi! I grabbed this Plexus effect someone made, combined with the Mic Input from the sound gallery… I’d like to animate certain properties of the balls and lines with input from the Mic. Here’s what I have so far… what …

---

## [Connect to Socket.io](https://discourse.processing.org/t/connect-to-socket-io/7660)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 6\
**Last updated:** [February 5, 2019, 5:09am UTC](https://discourse.processing.org/t/connect-to-socket-io/7660 "2019-02-05T05:09:29Z")

</div>

I was wondering if it is possible to connect a processing sketch using the websockets library to socket.io. I tried it and got an error.

---

## [p5.AudioIn using more than one audio channel](https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020)

<div class="topic-metadata">

**Author:** [@specpro](https://discourse.processing.org/u/specpro)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 10:18am UTC](https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020 "2019-02-01T10:18:51Z")

</div>

My sound card has more than one channel audio source. Is it possible to access the other audio channels? Seems that the “setSource” function always defaults to channel 1 and 2 of the sound card. Anyway to set to chann…

---

## [Basic PShader Issue](https://discourse.processing.org/t/basic-pshader-issue/8094)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 3\
**Last updated:** [February 5, 2019, 3:19am UTC](https://discourse.processing.org/t/basic-pshader-issue/8094 "2019-02-05T03:19:50Z")

</div>

Having some trouble passing an PImage to PShader. Doing something wrong, but can’t figure it out. First I’m trying to work with image before moving to video. tks in advance. basic code PShader displace; PImage moon; b…

---

## [Stacker game- game over if not properly stacked](https://discourse.processing.org/t/stacker-game-game-over-if-not-properly-stacked/8006)

<div class="topic-metadata">

**Author:** [@kjanek](https://discourse.processing.org/u/kjanek)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 3:17am UTC](https://discourse.processing.org/t/stacker-game-game-over-if-not-properly-stacked/8006 "2019-02-05T03:17:37Z")

</div>

So I’m modifying this code, and I can’t figure out how to make it so that the only way to progress through the game is for the block the player places to land exactly on top of the block placed previously. Currently, the…

---

## [Animating an object from one position to other](https://discourse.processing.org/t/animating-an-object-from-one-position-to-other/7995)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.processing.org/u/sim)\
**Replies:** 5\
**Last updated:** [February 4, 2019, 10:17pm UTC](https://discourse.processing.org/t/animating-an-object-from-one-position-to-other/7995 "2019-02-04T22:17:57Z")

</div>

Hello there, I would really appreciated some help with this question that I’m stuck on. im trying to get an object to move from one position (last mouse click) to a new position (most recent mouse click). I’m familiar…

---

## [Computing polygon normal with Newell's method](https://discourse.processing.org/t/computing-polygon-normal-with-newells-method/8116)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 9:53pm UTC](https://discourse.processing.org/t/computing-polygon-normal-with-newells-method/8116 "2019-02-04T21:53:33Z")

</div>

Hi guys, I’m having difficulties computing the normal of a polygon (more than 3 vertices) based on the Newell’s method. 𝑛𝑥=∑𝑖=0𝑛(𝑦𝑖−𝑦𝑖+1)(𝑧𝑖+𝑧𝑖+1) 𝑛𝑦=∑𝑖=0𝑛(𝑧𝑖−𝑧𝑖+1)(𝑥𝑖+𝑥𝑖+1) …

---

## [How To Make Stem Bloom Into A Leaf?](https://discourse.processing.org/t/how-to-make-stem-bloom-into-a-leaf/7950)

<div class="topic-metadata">

**Author:** [@lgdelacruz](https://discourse.processing.org/u/lgdelacruz)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 9:47pm UTC](https://discourse.processing.org/t/how-to-make-stem-bloom-into-a-leaf/7950 "2019-02-04T21:47:44Z")

</div>

I’m trying to bloom this stem: A stem is basically an elongated rectangle. Into this leaf: I’m trying to animate the blooming of this stem into this leaf. However, I struggle to make it look organic. How can I achiev…

---

## [Switching from menu to game](https://discourse.processing.org/t/switching-from-menu-to-game/8086)

<div class="topic-metadata">

**Author:** [@Corroas](https://discourse.processing.org/u/Corroas)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 9:22pm UTC](https://discourse.processing.org/t/switching-from-menu-to-game/8086 "2019-02-04T21:22:36Z")

</div>

Hi ! So, I’m trying to make a game for a school project and I’ve only made a menu so far, anyway I’d like some help on switching from the menu screen to the game screen. Right now, when I click on my button, nothing real…

---

## [Problem with java](https://discourse.processing.org/t/problem-with-java/8084)

<div class="topic-metadata">

**Author:** [@franck](https://discourse.processing.org/u/franck)\
**Replies:** 4\
**Last updated:** [February 4, 2019, 9:22pm UTC](https://discourse.processing.org/t/problem-with-java/8084 "2019-02-04T21:22:31Z")

</div>

Hello, I have a problem with the executable file after the export. The executable does not work. When launching the executable my program stops at the line “cp5 = new ControlP5 (this);”. When I compile the program (run…

---

## [VISA support in Processing](https://discourse.processing.org/t/visa-support-in-processing/7728)

<div class="topic-metadata">

**Author:** [@parham](https://discourse.processing.org/u/parham)\
**Replies:** 6\
**Last updated:** [February 4, 2019, 8:47pm UTC](https://discourse.processing.org/t/visa-support-in-processing/7728 "2019-02-04T20:47:09Z")

</div>

Hi everyone I am using Visual Basic as RAD tool for writing code to control electronic measurement devices such as Digital Multi-meters, Programmable Power Supply, Signal Generators and Oscilloscopes. I am new to Proces…

---

## [Spaces between objects within an array and between arrays](https://discourse.processing.org/t/spaces-between-objects-within-an-array-and-between-arrays/8107)

<div class="topic-metadata">

**Author:** [@german\_guy](https://discourse.processing.org/u/german_guy)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 8:43pm UTC](https://discourse.processing.org/t/spaces-between-objects-within-an-array-and-between-arrays/8107 "2019-02-04T20:43:32Z")

</div>

Guys, I got a question. I am a beginner at coding. I am trying to program a little game but I’m already stuck. Basically, I have set up two arrays with a number of objects within both of them. Now I’ve encountered a li…

---

## [Message "Could not parse -1 for --display"](https://discourse.processing.org/t/message-could-not-parse-1-for-display/8025)

<div class="topic-metadata">

**Author:** [@beckerc](https://discourse.processing.org/u/beckerc)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 8:18pm UTC](https://discourse.processing.org/t/message-could-not-parse-1-for-display/8025 "2019-02-04T20:18:06Z")

</div>

From the simplest code (drawing a line) to my most complex projects, I am getting the console message “Could not parse -1 for --display” when I run a sketch. Sketches run fine but I am curious what this refers to. This o…

---

## [Mechanical Garden after Tytus Czyżewski](https://discourse.processing.org/t/mechanical-garden-after-tytus-czyzewski/8106)

<div class="topic-metadata">

**Author:** [@yaniki](https://discourse.processing.org/u/yaniki)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 4:22pm UTC](https://discourse.processing.org/t/mechanical-garden-after-tytus-czyzewski/8106 "2019-02-04T16:22:59Z")

</div>

Hello Friends. “Mechanical Garden after Tytus Czyżewski” is an interactive miniature based on the classic “visual poetry” artwork, re-created in a contemporary medium (p5js). The work touch issues of conditional arts, s…

---

## [Image tracking similar](https://discourse.processing.org/t/image-tracking-similar/8018)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 3:28pm UTC](https://discourse.processing.org/t/image-tracking-similar/8018 "2019-02-04T15:28:49Z")

</div>

Hi, I would like to see in this computer vision one image with red pixels and the other normal but here the both are with red pixels. void draw() { image(ps3eye.getFrame(), 0, 0); tracking = ps3eye.getFrame(); tr…

---

## [Processing Community Day @ Chicago](https://discourse.processing.org/t/processing-community-day-chicago/3326)

<div class="topic-metadata">

**Author:** [@aljabear](https://discourse.processing.org/u/aljabear)\
**Replies:** 126\
**Last updated:** [February 4, 2019, 3:14pm UTC](https://discourse.processing.org/t/processing-community-day-chicago/3326 "2019-02-04T15:14:00Z")

</div>

Lets collect discussion regarding Processing Community Day in Chicago.

---

## [Gradle install fails](https://discourse.processing.org/t/gradle-install-fails/7841)

<div class="topic-metadata">

**Author:** [@parham](https://discourse.processing.org/u/parham)\
**Replies:** 4\
**Last updated:** [February 4, 2019, 1:09pm UTC](https://discourse.processing.org/t/gradle-install-fails/7841 "2019-02-04T13:09:09Z")

</div>

I installed AM and then automatically SDK is download. I choose to run an example on emulator and then automatically the phone system images is downloaded and installed as well as Intel HAXM. The Gradle build system star…

---

## [Run causes software to freeze](https://discourse.processing.org/t/run-causes-software-to-freeze/7832)

<div class="topic-metadata">

**Author:** [@AM369](https://discourse.processing.org/u/AM369)\
**Replies:** 3\
**Last updated:** [February 4, 2019, 9:52am UTC](https://discourse.processing.org/t/run-causes-software-to-freeze/7832 "2019-02-04T09:52:34Z")

</div>

Hi all, We have added this software to our school environment for student and staff to access on Windows 10. This is for guests to introduce coding to some of our students. They’ve advised that opening the software an…

---

## [Change the system time](https://discourse.processing.org/t/change-the-system-time/8066)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 3\
**Last updated:** [February 4, 2019, 9:39am UTC](https://discourse.processing.org/t/change-the-system-time/8066 "2019-02-04T09:39:38Z")

</div>

Hello, I would like to know if it is possible to change the system time. If yes, how to do it ? Thank.

---

## [Mac OS download currently leads to 'Not found'](https://discourse.processing.org/t/mac-os-download-currently-leads-to-not-found/8092)

<div class="topic-metadata">

**Author:** [@rherrema](https://discourse.processing.org/u/rherrema)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 3:47am UTC](https://discourse.processing.org/t/mac-os-download-currently-leads-to-not-found/8092 "2019-02-04T03:47:00Z")

</div>

I have tried to download the Mac OS version from both Chrome and Safari and get the same ‘Not found’ result when clicking this link: https://github.com/processing/processing/releases/download/processing-0266-3.5/process…

---

## [Compile .pde file in git bash](https://discourse.processing.org/t/compile-pde-file-in-git-bash/8047)

<div class="topic-metadata">

**Author:** [@sumaghos](https://discourse.processing.org/u/sumaghos)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 7:21am UTC](https://discourse.processing.org/t/compile-pde-file-in-git-bash/8047 "2019-02-04T07:21:17Z")

</div>

Is there any way to compile .pde file in git bash?

---

## [How to made an object appear after a delay in p5.js](https://discourse.processing.org/t/how-to-made-an-object-appear-after-a-delay-in-p5-js/8074)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 4:10am UTC](https://discourse.processing.org/t/how-to-made-an-object-appear-after-a-delay-in-p5-js/8074 "2019-02-04T04:10:28Z")

</div>

I intend to draw dilating circles. First a small circle appears on the center of the screen then radius increases and the circle enlarges, 2 seconds later another circle appears and also enlarges. At the same time there …

---

## [Pixelating Sketch](https://discourse.processing.org/t/pixelating-sketch/7791)

<div class="topic-metadata">

**Author:** [@henri](https://discourse.processing.org/u/henri)\
**Replies:** 7\
**Last updated:** [February 3, 2019, 6:58pm UTC](https://discourse.processing.org/t/pixelating-sketch/7791 "2019-02-03T18:58:01Z")

</div>

Hello, I would really appreciate any advice on how to approach this project I want to start. The basic notion is that I want to create a pixelation algorithm. The slightly odd thing I would like to do is pixelate the i…

---

## [\[SOLVED\] PGraphics.image gives NullPointerException](https://discourse.processing.org/t/solved-pgraphics-image-gives-nullpointerexception/8076)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 6:36pm UTC](https://discourse.processing.org/t/solved-pgraphics-image-gives-nullpointerexception/8076 "2019-02-03T18:36:22Z")

</div>

I created a sketch with a PImage that I was then going to draw into a PGraphics using PGraphics.image() – but I got a NullPointerException. Why is this happening? I have created an MCVE below to demonstrate the problem…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=526)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=528)
