# Processing

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

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

**Page:** 305

---

## [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…

---

## [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…

---

## [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?

---

## [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…

---

## [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…

---

## [CLOSED - user types "Codes" - special strings, if correct something happens!](https://discourse.processing.org/t/closed-user-types-codes-special-strings-if-correct-something-happens/9605)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 19\
**Last updated:** [April 25, 2019, 7:44am UTC](https://discourse.processing.org/t/closed-user-types-codes-special-strings-if-correct-something-happens/9605 "2019-04-25T07:44:26Z")

</div>

Hey! What do i need to change to get it working? And make it so i can have multiple codes! (i know its just string list, but if u can do it for me :slight\_smile: ) int chr = 0; String code = "a"; String input = ""; in…

---

## [OutOfMemory Error when animating with PGraphic images](https://discourse.processing.org/t/outofmemory-error-when-animating-with-pgraphic-images/10591)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 12\
**Last updated:** [April 25, 2019, 4:09am UTC](https://discourse.processing.org/t/outofmemory-error-when-animating-with-pgraphic-images/10591 "2019-04-25T04:09:30Z")

</div>

So I’m creating 1000 PGraphic images and want to animate through them. I’m keeping them empty for this example. The problem is I run out of memory before animating through all of them once (as in it stops around the 800 …

---

## [Create your own adventure game -- adding images](https://discourse.processing.org/t/create-your-own-adventure-game-adding-images/10149)

<div class="topic-metadata">

**Author:** [@itejeji21](https://discourse.processing.org/u/itejeji21)\
**Replies:** 12\
**Last updated:** [April 24, 2019, 10:16pm UTC](https://discourse.processing.org/t/create-your-own-adventure-game-adding-images/10149 "2019-04-24T22:16:44Z")

</div>

I was making this choose your own adventure game and couldn’t figure out how to add images correlating to each situation (NOT options). I’m not done with the code, but could someone please help me out. class Pair { St…

---

## [Are methods declared in .pde files implicitly public?](https://discourse.processing.org/t/are-methods-declared-in-pde-files-implicitly-public/10604)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 1\
**Last updated:** [April 24, 2019, 8:46pm UTC](https://discourse.processing.org/t/are-methods-declared-in-pde-files-implicitly-public/10604 "2019-04-24T20:46:29Z")

</div>

Was typing a toString method without public modifier, didn’t get an error. That made me wonder if all methods were implicitly public or only the classic override methods of Object for convenience.

---

## [PR Review Request](https://discourse.processing.org/t/pr-review-request/10597)

<div class="topic-metadata">

**Author:** [@deerajtheepshi](https://discourse.processing.org/u/deerajtheepshi)\
**Replies:** 0\
**Last updated:** [April 24, 2019, 3:52pm UTC](https://discourse.processing.org/t/pr-review-request/10597 "2019-04-24T15:52:57Z")

</div>

Hi everyone. So I recently made a PR to the PDE (processing/processing) , regarding an old issue which does not list libraries as installed due to linux’s case sensitive file system. Any review/suggestions on the PR wou…

---

## [Fill color not working](https://discourse.processing.org/t/fill-color-not-working/10600)

<div class="topic-metadata">

**Author:** [@nhurst](https://discourse.processing.org/u/nhurst)\
**Replies:** 2\
**Last updated:** [April 24, 2019, 5:25pm UTC](https://discourse.processing.org/t/fill-color-not-working/10600 "2019-04-24T17:25:14Z")

</div>

Not sure what I expected isn’t happening? The following draws a square, loops, reduces size of square and rotates slightly. Each square should be filled with a color that changes. However, at the end of the program, a…

---

## [Apply color filter to PGraphics](https://discourse.processing.org/t/apply-color-filter-to-pgraphics/10533)

<div class="topic-metadata">

**Author:** [@lu4425](https://discourse.processing.org/u/lu4425)\
**Replies:** 1\
**Last updated:** [April 24, 2019, 4:10pm UTC](https://discourse.processing.org/t/apply-color-filter-to-pgraphics/10533 "2019-04-24T16:10:25Z")

</div>

Help!! I need to assign at least two colors to the “walker” class. Try to draw a PGraphics in grayscale to then assign the colors but I do not know how to continue. How do I draw 2 PGraphics to then assign different col…

---

## [How to make a button have sound](https://discourse.processing.org/t/how-to-make-a-button-have-sound/10576)

<div class="topic-metadata">

**Author:** [@lillexi2u](https://discourse.processing.org/u/lillexi2u)\
**Replies:** 4\
**Last updated:** [April 24, 2019, 12:35pm UTC](https://discourse.processing.org/t/how-to-make-a-button-have-sound/10576 "2019-04-24T12:35:23Z")

</div>

Hi, I’m working on a video game project where I have to incorporate sound, so far I have both of the buttons but cannot figure out how to make each buttons have 3 sets of sounds when clicked on. so far this is all I have…

---

## [Audio Signal still going after AudioSample loop stopped](https://discourse.processing.org/t/audio-signal-still-going-after-audiosample-loop-stopped/10589)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 2\
**Last updated:** [April 24, 2019, 7:10am UTC](https://discourse.processing.org/t/audio-signal-still-going-after-audiosample-loop-stopped/10589 "2019-04-24T07:10:06Z")

</div>

Here I’m playing a 440Hz sine wave in an audio sample on loop. import processing.sound.\*; AudioSample sample; void setup() { int resolution = 1000; float\[\] sinewave = new float\[resolution\]; for (int i = 0; i \< re…

---

## [Can't seem a way to make game menu for simple gun game](https://discourse.processing.org/t/cant-seem-a-way-to-make-game-menu-for-simple-gun-game/10588)

<div class="topic-metadata">

**Author:** [@Icecrem](https://discourse.processing.org/u/Icecrem)\
**Replies:** 2\
**Last updated:** [April 24, 2019, 5:05am UTC](https://discourse.processing.org/t/cant-seem-a-way-to-make-game-menu-for-simple-gun-game/10588 "2019-04-24T05:05:30Z")

</div>

boolean down=true; boolean up=true; boolean bullet=true; float gunposition=350;//gun position float bulletY=650;//bullet position float bulletX=355;//bullet position float alienX=350;//alien positon float alienY=0;//alie…

---

## [Sprite on pokemon game](https://discourse.processing.org/t/sprite-on-pokemon-game/10369)

<div class="topic-metadata">

**Author:** [@Icecrem](https://discourse.processing.org/u/Icecrem)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 2:50am UTC](https://discourse.processing.org/t/sprite-on-pokemon-game/10369 "2019-04-17T02:50:19Z")

</div>

Hey I am fairly new to processing, and am trying to make a Pokemon game by the things I have learned so far. I am trying to add a sprite to it, so my character gets an animation when walking. Is there any simple possibil…

---

## [Code with lots of images makes sketch slow to load](https://discourse.processing.org/t/code-with-lots-of-images-makes-sketch-slow-to-load/10580)

<div class="topic-metadata">

**Author:** [@l.wright](https://discourse.processing.org/u/l.wright)\
**Replies:** 2\
**Last updated:** [April 24, 2019, 1:11am UTC](https://discourse.processing.org/t/code-with-lots-of-images-makes-sketch-slow-to-load/10580 "2019-04-24T01:11:13Z")

</div>

Hi! I have created a sketch that makes a random image appear upon clicking but it is very slow to load the images. I have decreased the file size on all the images so none of them are particularly large. I have never don…

---

## [Enemy Detection](https://discourse.processing.org/t/enemy-detection/10509)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 9\
**Last updated:** [April 23, 2019, 7:01pm UTC](https://discourse.processing.org/t/enemy-detection/10509 "2019-04-23T19:01:32Z")

</div>

Hey I’m trying to make my first AI game. Is there a way to check to see if any item is within a certain range? I want my AI to only see 8 directions and whatever is in the radius of its x point and the furthest it can se…

---

## [Customizable Multi-sketch processing program?](https://discourse.processing.org/t/customizable-multi-sketch-processing-program/10260)

<div class="topic-metadata">

**Author:** [@stan\_11](https://discourse.processing.org/u/stan_11)\
**Replies:** 9\
**Last updated:** [April 23, 2019, 4:39pm UTC](https://discourse.processing.org/t/customizable-multi-sketch-processing-program/10260 "2019-04-23T16:39:31Z")

</div>

Hi Nice to see you here, it would be great that if you can spare some of your time to help me go through this. I have trouble implementing multiple window application on Processing. Basic Background: I am developing a s…

---

## [Constructors given in Sound Library documentation not working](https://discourse.processing.org/t/constructors-given-in-sound-library-documentation-not-working/10563)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 7\
**Last updated:** [April 23, 2019, 2:21pm UTC](https://discourse.processing.org/t/constructors-given-in-sound-library-documentation-not-working/10563 "2019-04-23T14:21:46Z")

</div>

Trying to use AudioSample, but I get an error on the constructor from the example given in the documentation. import processing.sound.\*; AudioSample sample; void setup() { size(640, 360); background(255); // C…

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

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