# Latest

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

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

**Page:** 495

---

## [Trouble with gravity and ending game](https://discourse.processing.org/t/trouble-with-gravity-and-ending-game/10729)

<div class="topic-metadata">

**Author:** [@NeedHelp](https://discourse.processing.org/u/NeedHelp)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 1:57am UTC](https://discourse.processing.org/t/trouble-with-gravity-and-ending-game/10729 "2019-04-29T01:57:40Z")

</div>

I’m trying to make a game for my Processing class. It is due tomorrow morning and is almost completely finished, but I am having trouble triggering the end game screen when the ball leaves the screen. I also need the bal…

---

## [Color map from grayscale](https://discourse.processing.org/t/color-map-from-grayscale/10656)

<div class="topic-metadata">

**Author:** [@fun](https://discourse.processing.org/u/fun)\
**Replies:** 6\
**Last updated:** [April 28, 2019, 8:43pm UTC](https://discourse.processing.org/t/color-map-from-grayscale/10656 "2019-04-28T20:43:19Z")

</div>

I am looking for a way to create a heat map from a sequence of gray scale images with nice gray scale blobs. The heat map should look like these maps you know from eyetracking. Starting with black, blue, green and then …

---

## [Hwo to remove/clear a specific marker in unfolding map processing 3](https://discourse.processing.org/t/hwo-to-remove-clear-a-specific-marker-in-unfolding-map-processing-3/10669)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [April 28, 2019, 6:26pm UTC](https://discourse.processing.org/t/hwo-to-remove-clear-a-specific-marker-in-unfolding-map-processing-3/10669 "2019-04-28T18:26:09Z")

</div>

Hi. I was trying to simulate the movement of a marker in unfolding map with processing 3. Please see the following picture. Could anyone please give me any hints?

---

## [Loop section of video](https://discourse.processing.org/t/loop-section-of-video/10713)

<div class="topic-metadata">

**Author:** [@BarryLimestone](https://discourse.processing.org/u/BarryLimestone)\
**Replies:** 1\
**Last updated:** [April 28, 2019, 2:49pm UTC](https://discourse.processing.org/t/loop-section-of-video/10713 "2019-04-28T14:49:42Z")

</div>

Hello people, First of, I’m a total noob, so if anything I say is obvious or stupid, I hereby apologise. For a university project I’m trying to make an interactive (Think Bandersnatch) video that branches into differen…

---

## [quadraticVertex bezierVertex give different shape](https://discourse.processing.org/t/quadraticvertex-beziervertex-give-different-shape/10712)

<div class="topic-metadata">

**Author:** [@IanM](https://discourse.processing.org/u/IanM)\
**Replies:** 3\
**Last updated:** [April 28, 2019, 1:50pm UTC](https://discourse.processing.org/t/quadraticvertex-beziervertex-give-different-shape/10712 "2019-04-28T13:50:24Z")

</div>

Hi I was expecting these calls to give the same shape, but the curves are different. I was testing and not getting the expected results with quadraticVertex, hence this test using duplicate control points in the bezierV…

---

## [Processing beginner unable to fix NPE](https://discourse.processing.org/t/processing-beginner-unable-to-fix-npe/10679)

<div class="topic-metadata">

**Author:** [@danmarty](https://discourse.processing.org/u/danmarty)\
**Replies:** 7\
**Last updated:** [April 28, 2019, 10:35am UTC](https://discourse.processing.org/t/processing-beginner-unable-to-fix-npe/10679 "2019-04-28T10:35:08Z")

</div>

Hi everyone, As a preface, I’m a complete beginner to all forms of programming before my university unit I’m currently working taking part in. I’m working on a game design for a university project, but my progress is c…

---

## [MineSweeper game](https://discourse.processing.org/t/minesweeper-game/10686)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 2\
**Last updated:** [April 28, 2019, 7:36am UTC](https://discourse.processing.org/t/minesweeper-game/10686 "2019-04-28T07:36:54Z")

</div>

I wanted to play a good old game of MineSweeper the other day but sadly it is not available on the new version of windows. So I decided to made a quick version on processing. If you want to kill some times and go back …

---

## [Possible to stop webcam after using createCapture?](https://discourse.processing.org/t/possible-to-stop-webcam-after-using-createcapture/10557)

<div class="topic-metadata">

**Author:** [@computershawn](https://discourse.processing.org/u/computershawn)\
**Replies:** 4\
**Last updated:** [April 28, 2019, 7:08am UTC](https://discourse.processing.org/t/possible-to-stop-webcam-after-using-createcapture/10557 "2019-04-28T07:08:09Z")

</div>

Is there a way to stop my webcam from recording after I’ve started it using capture = createCapture?

---

## [Help with a "Drawing" App](https://discourse.processing.org/t/help-with-a-drawing-app/10688)

<div class="topic-metadata">

**Author:** [@l1osar](https://discourse.processing.org/u/l1osar)\
**Replies:** 2\
**Last updated:** [April 28, 2019, 1:18am UTC](https://discourse.processing.org/t/help-with-a-drawing-app/10688 "2019-04-28T01:18:16Z")

</div>

Hello! I’m learnig processing, so I had the idea of creating an app to work like paint or Ilustrator. I figured out a lot of stuff, but couldn’t realize how to “save” the current drawing. I want to create a different sc…

---

## [Aligning a text correctly with rotation](https://discourse.processing.org/t/aligning-a-text-correctly-with-rotation/10692)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 4\
**Last updated:** [April 27, 2019, 10:55pm UTC](https://discourse.processing.org/t/aligning-a-text-correctly-with-rotation/10692 "2019-04-27T22:55:01Z")

</div>

Hello, I’m working on a sketch that displays a radar chart. I am satisfied by the result but I’m struggling having the labels aligning correctly. int lineLength = 300; int\[\] values = { 10, 20, 30, 40, 50, 60, 70, 80, 90…

---

## [PixelFlow and Processing application can't run](https://discourse.processing.org/t/pixelflow-and-processing-application-cant-run/10280)

<div class="topic-metadata">

**Author:** [@mrtn](https://discourse.processing.org/u/mrtn)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 6:00pm UTC](https://discourse.processing.org/t/pixelflow-and-processing-application-cant-run/10280 "2019-04-17T18:00:24Z")

</div>

bad error. In the Setup() of my application I imported an image … in the folder of my .exe there wasn’t my image :frowning: Simply I have to take the image in the folder

---

## [=== Minim Error === === Couldn't invoke the sketchPath method: null](https://discourse.processing.org/t/minim-error-couldnt-invoke-the-sketchpath-method-null/10677)

<div class="topic-metadata">

**Author:** [@jl24](https://discourse.processing.org/u/jl24)\
**Replies:** 2\
**Last updated:** [April 27, 2019, 5:54pm UTC](https://discourse.processing.org/t/minim-error-couldnt-invoke-the-sketchpath-method-null/10677 "2019-04-27T17:54:10Z")

</div>

I’ve been using the minim library for a program that writes songs according to instructions. When I try to use AudioRecorder, I keep getting this error: === Minim Error === === Couldn't invoke the sketchPath method: nu…

---

## [Assignment / Extra credit program](https://discourse.processing.org/t/assignment-extra-credit-program/10680)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 10\
**Last updated:** [April 27, 2019, 4:53pm UTC](https://discourse.processing.org/t/assignment-extra-credit-program/10680 "2019-04-27T16:53:01Z")

</div>

I was given a task to create a digital landscape! with the following criteria Criteria: ● At least 3 different shapes used ● At least 3 different colors used ● 1 custom shape ● Minimum of 6 elements (ie tree, house,…

---

## [Animating shapes similar to an After Effects project](https://discourse.processing.org/t/animating-shapes-similar-to-an-after-effects-project/10668)

<div class="topic-metadata">

**Author:** [@fantastictobey](https://discourse.processing.org/u/fantastictobey)\
**Replies:** 5\
**Last updated:** [April 27, 2019, 8:29am UTC](https://discourse.processing.org/t/animating-shapes-similar-to-an-after-effects-project/10668 "2019-04-27T08:29:14Z")

</div>

Hello there! :smiley: I have this Processing project to make that basically consists of creating a short animation using shapes, text and music. 2 years ago I’ve done this animation in After Effects which I’d like to r…

---

## [Marlin and processing](https://discourse.processing.org/t/marlin-and-processing/10681)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 3\
**Last updated:** [April 27, 2019, 12:43pm UTC](https://discourse.processing.org/t/marlin-and-processing/10681 "2019-04-27T12:43:03Z")

</div>

How to control cnc with marlin from processing?

---

## [Memory error at 1000mb when trying to save an int variable](https://discourse.processing.org/t/memory-error-at-1000mb-when-trying-to-save-an-int-variable/10666)

<div class="topic-metadata">

**Author:** [@LHACKS](https://discourse.processing.org/u/LHACKS)\
**Replies:** 1\
**Last updated:** [April 27, 2019, 11:23am UTC](https://discourse.processing.org/t/memory-error-at-1000mb-when-trying-to-save-an-int-variable/10666 "2019-04-27T11:23:23Z")

</div>

So I was trying save the high score for my game and it says memory error even if I changed it to 1000Mb = 1 Gb. I’m only going to put the code for the saving process here. The high score variable has been on 40 and on 12…

---

## [CColor initialization](https://discourse.processing.org/t/ccolor-initialization/10632)

<div class="topic-metadata">

**Author:** [@ANDELE](https://discourse.processing.org/u/ANDELE)\
**Replies:** 1\
**Last updated:** [April 27, 2019, 8:40am UTC](https://discourse.processing.org/t/ccolor-initialization/10632 "2019-04-27T08:40:53Z")

</div>

Hi everyone, I have a problem initializing a CColor variable in ControlP5, does anybody know how to do it? On the library reference I found: CColor(int cfg, int cbg, int cactive, int ccl, int cvl) cfg color foreground …

---

## [Json: folder tree recursively: Feedback please](https://discourse.processing.org/t/json-folder-tree-recursively-feedback-please/10542)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [April 27, 2019, 8:38am UTC](https://discourse.processing.org/t/json-folder-tree-recursively-feedback-please/10542 "2019-04-27T08:38:55Z")

</div>

Hello all, I made a sketch where you can select a folder and it makes a json file with all folders recursively as children and sub-children. Could somebody have a look and tell me whether that’s the proper way to do it…

---

## [My first working project!](https://discourse.processing.org/t/my-first-working-project/10636)

<div class="topic-metadata">

**Author:** [@Jonas](https://discourse.processing.org/u/Jonas)\
**Replies:** 2\
**Last updated:** [April 27, 2019, 6:15am UTC](https://discourse.processing.org/t/my-first-working-project/10636 "2019-04-27T06:15:53Z")

</div>

This is my first working project. It’s a drawing tool that i used a little less then a week to make. It could be really nice if i could get some constructive criticism on it. Here is the code: // first tab ArrayList\<pa…

---

## [How best to use "natural frequencies"?](https://discourse.processing.org/t/how-best-to-use-natural-frequencies/10593)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 6\
**Last updated:** [April 26, 2019, 10:18pm UTC](https://discourse.processing.org/t/how-best-to-use-natural-frequencies/10593 "2019-04-26T22:18:50Z")

</div>

for learning more about sound lib MINIM ( @GoToLoop NO, the question is not about the library ) i play with sound synth, using these “natural frequencies” you can hear about in esoteric / meditation videos… but also w…

---

## [Accessing Json object](https://discourse.processing.org/t/accessing-json-object/10659)

<div class="topic-metadata">

**Author:** [@Honkitonkie](https://discourse.processing.org/u/Honkitonkie)\
**Replies:** 4\
**Last updated:** [April 26, 2019, 1:40pm UTC](https://discourse.processing.org/t/accessing-json-object/10659 "2019-04-26T13:40:44Z")

</div>

Hi all, I recently started a project where i want to do some aninmations with weather data. However i got stuck rather quickly and can’t seem to acces my JSON. I looked everywhere and tried a lot but the answer still e…

---

## [Add / display markers at specific locations / positions (Unfolding map) with processing](https://discourse.processing.org/t/add-display-markers-at-specific-locations-positions-unfolding-map-with-processing/10657)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 1\
**Last updated:** [April 26, 2019, 10:38am UTC](https://discourse.processing.org/t/add-display-markers-at-specific-locations-positions-unfolding-map-with-processing/10657 "2019-04-26T10:38:39Z")

</div>

Hi, I was wondering, how to add / display markers at specific locations / positions? I tried a specific example, and it seems that it does not work. Could anyone please let me know what might be wrong in the code?

---

## [Code organization](https://discourse.processing.org/t/code-organization/10643)

<div class="topic-metadata">

**Author:** [@jarlook](https://discourse.processing.org/u/jarlook)\
**Replies:** 11\
**Last updated:** [April 26, 2019, 4:30am UTC](https://discourse.processing.org/t/code-organization/10643 "2019-04-26T04:30:46Z")

</div>

I am about to convert a lengthy Processing sketch to p5.js. Currently the code is defined in several files (a common driver, some objects/classes, etc) and I’d like to keep them separate. This was doable with the Proce…

---

## [How to include .pde o .java file with path?](https://discourse.processing.org/t/how-to-include-pde-o-java-file-with-path/10646)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 1\
**Last updated:** [April 26, 2019, 2:59am UTC](https://discourse.processing.org/t/how-to-include-pde-o-java-file-with-path/10646 "2019-04-26T02:59:44Z")

</div>

Hi, i have a question… I work in a library for processing over 3 years ago, i named this library “gameLibZero” and this is a library for game programming in processing 3.x on Windows, linux, macosx and Android… my prob…

---

## [NullPointerException when calling save() after surface.setSize() in P2D](https://discourse.processing.org/t/nullpointerexception-when-calling-save-after-surface-setsize-in-p2d/10367)

<div class="topic-metadata">

**Author:** [@blakej](https://discourse.processing.org/u/blakej)\
**Replies:** 13\
**Last updated:** [April 25, 2019, 10:57pm UTC](https://discourse.processing.org/t/nullpointerexception-when-calling-save-after-surface-setsize-in-p2d/10367 "2019-04-25T22:57:04Z")

</div>

Hi all, I’m getting a NullPointerException when trying to use save() in conjunction with surface.setSize() and the P2D renderer. Here’s a simplified version of my code: void settings() { size(768, 512, P2D); } void…

---

## [SVG morphing animation](https://discourse.processing.org/t/svg-morphing-animation/10482)

<div class="topic-metadata">

**Author:** [@weedboy](https://discourse.processing.org/u/weedboy)\
**Replies:** 7\
**Last updated:** [April 25, 2019, 10:20pm UTC](https://discourse.processing.org/t/svg-morphing-animation/10482 "2019-04-25T22:20:47Z")

</div>

Hello Processing Forum, I’m a beginner and this is my first post. How i can morphing svg with p5.js or Processing? I have two svg files from illustrator, and i want create animation morphing one svg into another.

---

## [Can I have multiple independent random number generators with different seeds?](https://discourse.processing.org/t/can-i-have-multiple-independent-random-number-generators-with-different-seeds/10125)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 10\
**Last updated:** [April 25, 2019, 8:44pm UTC](https://discourse.processing.org/t/can-i-have-multiple-independent-random-number-generators-with-different-seeds/10125 "2019-04-25T20:44:49Z")

</div>

I’m hoping to use multiple random number generators so that I can have different random processes that don’t interfere with each other and can be seeded for some amount of consistency. Is this possible with p5.js?

---

## [Array syntax in this code does not hold y variable](https://discourse.processing.org/t/array-syntax-in-this-code-does-not-hold-y-variable/10637)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 6:29pm UTC](https://discourse.processing.org/t/array-syntax-in-this-code-does-not-hold-y-variable/10637 "2019-04-25T18:29:41Z")

</div>

Referring to Dan Shiffman book Learning Processing Ch 9 Arrays ~ex 9-12~ p.182-3 The y variable – random(height) – in the “Zoogies” constructor in setup does not maintain the random y variable assigned. (in contrast, th…

---

## [Trying to do an animation, how can I make the mushroom go from closed to open?](https://discourse.processing.org/t/trying-to-do-an-animation-how-can-i-make-the-mushroom-go-from-closed-to-open/10614)

<div class="topic-metadata">

**Author:** [@karatecake](https://discourse.processing.org/u/karatecake)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 2:18pm UTC](https://discourse.processing.org/t/trying-to-do-an-animation-how-can-i-make-the-mushroom-go-from-closed-to-open/10614 "2019-04-25T14:18:50Z")

</div>

My animation is a mushroom with a closed cap that when clicked opens like an umbrella exposing the stalk more. I have no idea where to go from here because my professor has not given us enough information. There is much …

---

## [Error message in this Array problem i don't know how to resolve](https://discourse.processing.org/t/error-message-in-this-array-problem-i-dont-know-how-to-resolve/10611)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 5\
**Last updated:** [April 25, 2019, 8:11am UTC](https://discourse.processing.org/t/error-message-in-this-array-problem-i-dont-know-how-to-resolve/10611 "2019-04-25T08:11:11Z")

</div>

In Dan Shiffman’s book Learning Processing, p. 179, example 9-10 I have typed in the code for this example, and have carefully checked to make sure no keystroking errors. However I keep getting errors in the void rollov…

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

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