# Latest

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

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

**Page:** 89

---

## [Simple Pixel Sorter - Grey Screen Only?](https://discourse.processing.org/t/simple-pixel-sorter-grey-screen-only/40581)

<div class="topic-metadata">

**Author:** [@JHPC](https://discourse.processing.org/u/JHPC)\
**Replies:** 8\
**Last updated:** [January 22, 2023, 3:54pm UTC](https://discourse.processing.org/t/simple-pixel-sorter-grey-screen-only/40581 "2023-01-22T15:54:43Z")

</div>

Dear All, I’m trying to experiment with very simple pixel sorter. My code has been sourced from The Coding Train. I plug it into Processing 4, and have adjusted the screen size for the image which is 600 x 400 pixels.…

---

## [Problem with PGraphics - pixel\[\] gives scattered pixels](https://discourse.processing.org/t/problem-with-pgraphics-pixel-gives-scattered-pixels/40664)

<div class="topic-metadata">

**Author:** [@Phil2K](https://discourse.processing.org/u/Phil2K)\
**Replies:** 3\
**Last updated:** [January 22, 2023, 3:32pm UTC](https://discourse.processing.org/t/problem-with-pgraphics-pixel-gives-scattered-pixels/40664 "2023-01-22T15:32:26Z")

</div>

Hi, I got a little test and I cant get it do act like I want to - I guess I dont fully understand how to use the PGraphics. My ultimate goal is to load a picture and replicate it with a string art. First step I thought…

---

## [Grab Midi Data from a parsed Midi File](https://discourse.processing.org/t/grab-midi-data-from-a-parsed-midi-file/40650)

<div class="topic-metadata">

**Author:** [@Chigoz](https://discourse.processing.org/u/Chigoz)\
**Replies:** 10\
**Last updated:** [January 22, 2023, 12:40pm UTC](https://discourse.processing.org/t/grab-midi-data-from-a-parsed-midi-file/40650 "2023-01-22T12:40:21Z")

</div>

Hi , I am trying to grab midi information from a parsed midi file, the code easily parses any midi file to JSON using tone.js but I don’t know how they extracted the midi information like note, velocity, time etc. I want…

---

## [Run a java Processing sketch with Python](https://discourse.processing.org/t/run-a-java-processing-sketch-with-python/40619)

<div class="topic-metadata">

**Author:** [@BBGiraffe](https://discourse.processing.org/u/BBGiraffe)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 6:38am UTC](https://discourse.processing.org/t/run-a-java-processing-sketch-with-python/40619 "2023-01-22T06:38:09Z")

</div>

Hi, I want to use a python script run a processing sketch multiple time but with different args for each run. I have processing sketch that works well if i run it manually via a cmd line eg “processing-java.exe --sketc…

---

## [KeyPressed cannot show a random position to a ellipse](https://discourse.processing.org/t/keypressed-cannot-show-a-random-position-to-a-ellipse/40665)

<div class="topic-metadata">

**Author:** [@carmavals](https://discourse.processing.org/u/carmavals)\
**Replies:** 5\
**Last updated:** [January 22, 2023, 1:22am UTC](https://discourse.processing.org/t/keypressed-cannot-show-a-random-position-to-a-ellipse/40665 "2023-01-22T01:22:20Z")

</div>

Hello! I have a question about a sketch. I am trying to draw a ellipse on a random position everytime a key is pressed in this case the key ‘a’. The situation is that it does draw the ellipse in a random position but it…

---

## [Android 13 MANAGE\_EXTERNAL\_STORAGE stops working, what can I do?](https://discourse.processing.org/t/android-13-manage-external-storage-stops-working-what-can-i-do/40362)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 8\
**Last updated:** [January 21, 2023, 8:34pm UTC](https://discourse.processing.org/t/android-13-manage-external-storage-stops-working-what-can-i-do/40362 "2023-01-21T20:34:50Z")

</div>

I’m using Processing 3.5.4. My app has been working fine on Android 12. Now my phone is updated to Android 13 and my app is no longer working, due to permission changes. My app needs the permission to generate a file i…

---

## [strokeWeight(15) reduces framerate by much](https://discourse.processing.org/t/strokeweight-15-reduces-framerate-by-much/40672)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 0\
**Last updated:** [January 21, 2023, 8:16pm UTC](https://discourse.processing.org/t/strokeweight-15-reduces-framerate-by-much/40672 "2023-01-21T20:16:42Z")

</div>

When i use strokeWeight, the framerate in my programm gets reduced from 400 to 300 fps. is this normal?

---

## [Trying to convert my platform game into a model view controller pattern](https://discourse.processing.org/t/trying-to-convert-my-platform-game-into-a-model-view-controller-pattern/40641)

<div class="topic-metadata">

**Author:** [@Berthe](https://discourse.processing.org/u/Berthe)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 7:46pm UTC](https://discourse.processing.org/t/trying-to-convert-my-platform-game-into-a-model-view-controller-pattern/40641 "2023-01-20T19:46:16Z")

</div>

so here is the main class final static float MOVE\_SPEED = 4; final static float SPRITE\_SCALE = 50.0/128; final static float SPRITE\_SIZE = 50; final static float GRAVITY = 0.6; final static float JUMP\_SPEED = 14; final…

---

## [Reference subclass method in superclass method](https://discourse.processing.org/t/reference-subclass-method-in-superclass-method/40662)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 6:00pm UTC](https://discourse.processing.org/t/reference-subclass-method-in-superclass-method/40662 "2023-01-20T18:00:51Z")

</div>

I have a Saw class that extends the Enemy class. class Enemy { int hp, atk, n; float spd; PVector pos = new PVector(random(width), random(height)); Enemy(int hp\_, float spd\_, int atk\_, int n\_) { hp = hp\_; …

---

## [OpenGL Shader Problem](https://discourse.processing.org/t/opengl-shader-problem/40617)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 7\
**Last updated:** [January 20, 2023, 5:40pm UTC](https://discourse.processing.org/t/opengl-shader-problem/40617 "2023-01-20T17:40:43Z")

</div>

This demo is exercise #2 in the book “Computer Graphics Programming” by Gordon & Clevenger, Third Edition. It uses openGL source code and is supposed to create a single point, 30 pixels in size, and shade it a blue colo…

---

## [fullScreen(P3D, SPAN) with 2 Monitors not working in Ubuntu](https://discourse.processing.org/t/fullscreen-p3d-span-with-2-monitors-not-working-in-ubuntu/40659)

<div class="topic-metadata">

**Author:** [@mischmeisterm](https://discourse.processing.org/u/mischmeisterm)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 3:28pm UTC](https://discourse.processing.org/t/fullscreen-p3d-span-with-2-monitors-not-working-in-ubuntu/40659 "2023-01-20T15:28:49Z")

</div>

Trying to get a proper fullscreen P2D/P3D sketch working on Ubuntu 22.04 with two monitors… fullScreen(SPAN); uses both monitors (but doesn’t hide dock and activities bar) uses the very slow default renderer fullScre…

---

## [What type is \`this\` in a sketch?](https://discourse.processing.org/t/what-type-is-this-in-a-sketch/39676)

<div class="topic-metadata">

**Author:** [@grough](https://discourse.processing.org/u/grough)\
**Replies:** 5\
**Last updated:** [January 20, 2023, 3:00pm UTC](https://discourse.processing.org/t/what-type-is-this-in-a-sketch/39676 "2023-01-20T15:00:41Z")

</div>

Hi, When I run this code in a sketch: println(this); I see this in the console: sketch\_221111b@31393958 What datatype or class does this belong to? I’m trying to write a function that accepts this as an argument, b…

---

## [\[Help needed\] Doclet script is broken with Processing 4](https://discourse.processing.org/t/help-needed-doclet-script-is-broken-with-processing-4/39369)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 11:42am UTC](https://discourse.processing.org/t/help-needed-doclet-script-is-broken-with-processing-4/39369 "2023-01-20T11:42:20Z")

</div>

Hi everyone, With the update from Java 11 to Java 17 the Doclet script used to generate the Processing reference stopped working. If you have Java experience and feel like looking into this, your help would be really ap…

---

## [int96:NullPointerException](https://discourse.processing.org/t/int96-nullpointerexception/40653)

<div class="topic-metadata">

**Author:** [@int96](https://discourse.processing.org/u/int96)\
**Replies:** 4\
**Last updated:** [January 20, 2023, 6:05am UTC](https://discourse.processing.org/t/int96-nullpointerexception/40653 "2023-01-20T06:05:33Z")

</div>

So here is the basic code… for the life of me I can’t see whats wrong. sketch Particle p; Particle\[\] particles = new Particle\[1\]; void setup() { size(200, 200); particles\[0\] = new Particle(); } void draw() { ba…

---

## [Goosegrid - Live WebMIDI Sequencer](https://discourse.processing.org/t/goosegrid-live-webmidi-sequencer/40651)

<div class="topic-metadata">

**Author:** [@aceslowman](https://discourse.processing.org/u/aceslowman)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 1:57am UTC](https://discourse.processing.org/t/goosegrid-live-webmidi-sequencer/40651 "2023-01-20T01:57:33Z")

</div>

I wanted to share a WebMIDI sequencer that I’ve been working on. It has a grid system where you can arrange and connect cells to make looping patterns. Right now it’s primarily meant to connect to another synth or DAW, b…

---

## [Slowing a rotation using millis() does not work](https://discourse.processing.org/t/slowing-a-rotation-using-millis-does-not-work/40649)

<div class="topic-metadata">

**Author:** [@mmuylle](https://discourse.processing.org/u/mmuylle)\
**Replies:** 6\
**Last updated:** [January 19, 2023, 8:24pm UTC](https://discourse.processing.org/t/slowing-a-rotation-using-millis-does-not-work/40649 "2023-01-19T20:24:09Z")

</div>

I apologise. I know this topic has been covered several times in various forms in this forum. Unfortunately, after several readings, I seem to miss the point. As a result, my timing in the sketch turns out to be wrong. W…

---

## [Using system time functions causes sketch to not run? ("Target VM failed to initialize")](https://discourse.processing.org/t/using-system-time-functions-causes-sketch-to-not-run-target-vm-failed-to-initialize/40597)

<div class="topic-metadata">

**Author:** [@Stetez14](https://discourse.processing.org/u/Stetez14)\
**Replies:** 4\
**Last updated:** [January 19, 2023, 6:37pm UTC](https://discourse.processing.org/t/using-system-time-functions-causes-sketch-to-not-run-target-vm-failed-to-initialize/40597 "2023-01-19T18:37:44Z")

</div>

I’m not sure if this is the correct forum, but I seem to have encountered a major issue in my project. My sketch has started fine so far but suddenly stopped working. Through some basic troubleshooting, I found the issu…

---

## [How to click on an image with data? (ControlP5 SliderList)](https://discourse.processing.org/t/how-to-click-on-an-image-with-data-controlp5-sliderlist/40647)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 0\
**Last updated:** [January 19, 2023, 12:13pm UTC](https://discourse.processing.org/t/how-to-click-on-an-image-with-data-controlp5-sliderlist/40647 "2023-01-19T12:13:45Z")

</div>

Hello, I am using the library. I took two examples from her MenuList and SliderList. One example I remade for myself I remade one example for myself and I can’t make it get the same data when clicking on the picture as…

---

## [I cannot change Sketchbook folder](https://discourse.processing.org/t/i-cannot-change-sketchbook-folder/40629)

<div class="topic-metadata">

**Author:** [@Alkis](https://discourse.processing.org/u/Alkis)\
**Replies:** 7\
**Last updated:** [January 19, 2023, 10:23am UTC](https://discourse.processing.org/t/i-cannot-change-sketchbook-folder/40629 "2023-01-19T10:23:21Z")

</div>

I change the Sketchbook folder in Preferences and the default one (C:\\Users{username}\\AppData\\Roaming\\Processing) always comes back! Can anyone tell me how to change Sketchbook folder in Processing 4? Thank you.

---

## [Color change for overlapping objects](https://discourse.processing.org/t/color-change-for-overlapping-objects/40645)

<div class="topic-metadata">

**Author:** [@Pastel](https://discourse.processing.org/u/Pastel)\
**Replies:** 1\
**Last updated:** [January 19, 2023, 9:01am UTC](https://discourse.processing.org/t/color-change-for-overlapping-objects/40645 "2023-01-19T09:01:43Z")

</div>

With two objects (circles, rectangles, …) overlapping I’d like to color them in another color on the overlapping part. For example two objects are blue and the overlapping part is orange. Could this be done by any fil…

---

## [Position algorithm problem in for loop](https://discourse.processing.org/t/position-algorithm-problem-in-for-loop/40604)

<div class="topic-metadata">

**Author:** [@niuuin](https://discourse.processing.org/u/niuuin)\
**Replies:** 5\
**Last updated:** [January 19, 2023, 8:25am UTC](https://discourse.processing.org/t/position-algorithm-problem-in-for-loop/40604 "2023-01-19T08:25:41Z")

</div>

The current state is as shown in the figure, with “a” as the axis of movement, how to move with “d” as the axis in the current cycle? Here’s the current code, thanks for your help! function setup() { createCanvas(4…

---

## [Need Help with Running Local tests](https://discourse.processing.org/t/need-help-with-running-local-tests/40637)

<div class="topic-metadata">

**Author:** [@AdityaShrivastav](https://discourse.processing.org/u/AdityaShrivastav)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 8:04am UTC](https://discourse.processing.org/t/need-help-with-running-local-tests/40637 "2023-01-19T08:04:59Z")

</div>

I need help with running tests on my computer. recently I was making changes to the project p5.js. when i read the contibuters guideline page there there were mentioned some tests which can be run through npm test or npm…

---

## [CCapture setup issue maybe chrome related?](https://discourse.processing.org/t/ccapture-setup-issue-maybe-chrome-related/40638)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 2\
**Last updated:** [January 18, 2023, 10:02pm UTC](https://discourse.processing.org/t/ccapture-setup-issue-maybe-chrome-related/40638 "2023-01-18T22:02:00Z")

</div>

Hi, today I tried many attempts to get the Ccapture library running without any luck. What makes me think it might be Chrome related is that I always get the buggy console feedback with any of my attempts. This is how t…

---

## [Movie Maker error: "Creating the QuickTime movie failed."](https://discourse.processing.org/t/movie-maker-error-creating-the-quicktime-movie-failed/40623)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 5:21pm UTC](https://discourse.processing.org/t/movie-maker-error-creating-the-quicktime-movie-failed/40623 "2023-01-18T17:21:03Z")

</div>

Hi Processing community! I am attempting to create an animation with Processing’s Movie Maker II. I am able to create the “output” folder of still images, but once I drag the “output” folder with image files into the Mo…

---

## [How can I make my bullets not follow the mouse but aim toward it?](https://discourse.processing.org/t/how-can-i-make-my-bullets-not-follow-the-mouse-but-aim-toward-it/40633)

<div class="topic-metadata">

**Author:** [@UltimateDoug](https://discourse.processing.org/u/UltimateDoug)\
**Replies:** 3\
**Last updated:** [January 18, 2023, 4:00pm UTC](https://discourse.processing.org/t/how-can-i-make-my-bullets-not-follow-the-mouse-but-aim-toward-it/40633 "2023-01-18T16:00:06Z")

</div>

Making a zombie survival game and the bullets, after they’re shot, continue to follow the mouse. The PVector “t” cant be initialized in keyReleased but it needs to only give a single value per shot. Instead it keep updat…

---

## [How to make particles fly from one word's shape to the next word? (swarm)](https://discourse.processing.org/t/how-to-make-particles-fly-from-one-words-shape-to-the-next-word-swarm/40564)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 14\
**Last updated:** [January 18, 2023, 1:36pm UTC](https://discourse.processing.org/t/how-to-make-particles-fly-from-one-words-shape-to-the-next-word-swarm/40564 "2023-01-18T13:36:34Z")

</div>

Hello, I try to move the particles from the shape of a String to the next one… I guess I should remove a part of the particles and create new ones for the new String but I don’t manage to figure out how?! Thank you ve…

---

## [Inline Shader code will not run](https://discourse.processing.org/t/inline-shader-code-will-not-run/40627)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 2\
**Last updated:** [January 18, 2023, 4:17am UTC](https://discourse.processing.org/t/inline-shader-code-will-not-run/40627 "2023-01-18T04:17:32Z")

</div>

The following Processing code using inline shaders will not run on a Mac due to this error: ERROR: 0:6: 'attribute' : syntax error: syntax error The same code using separate .glsl files in the sketch folder runs ok. T…

---

## [Need help with making a bullet that shoots towards the mouse](https://discourse.processing.org/t/need-help-with-making-a-bullet-that-shoots-towards-the-mouse/40626)

<div class="topic-metadata">

**Author:** [@UltimateDoug](https://discourse.processing.org/u/UltimateDoug)\
**Replies:** 2\
**Last updated:** [January 18, 2023, 12:26am UTC](https://discourse.processing.org/t/need-help-with-making-a-bullet-that-shoots-towards-the-mouse/40626 "2023-01-18T00:26:45Z")

</div>

I’m making a zombie survival game and I’ve come across a problem when I was making my ArrayList of bullets. The bullets show up on the screen but wont move. With some trouble shooting it looks like the variables “d” and …

---

## [Is it possible to use a string for a type like "int something+""+i = i"](https://discourse.processing.org/t/is-it-possible-to-use-a-string-for-a-type-like-int-something-i-i/40624)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 9:37pm UTC](https://discourse.processing.org/t/is-it-possible-to-use-a-string-for-a-type-like-int-something-i-i/40624 "2023-01-17T21:37:33Z")

</div>

Hello! Is it possible to do this? int something, something1, something2, something3, something4, something5; for(int i = 0; i \< 5; i++) { something+""+i = i; } \*so it uses all 5 variables and doesnt make the va…

---

## [Drawing with blend mode BURN](https://discourse.processing.org/t/drawing-with-blend-mode-burn/40622)

<div class="topic-metadata">

**Author:** [@JohnC](https://discourse.processing.org/u/JohnC)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 5:12pm UTC](https://discourse.processing.org/t/drawing-with-blend-mode-burn/40622 "2023-01-17T17:12:34Z")

</div>

So for the new Processing4 blendMode() is recommended but doesn’t support modes like BURN according to the reference. So if I wanna draw something, says a line from point (x1, y1) to point(x2, y2), with the BURN effect h…

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

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