# Processing

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

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

**Page:** 54

---

## [Speed up Application](https://discourse.processing.org/t/speed-up-application/40349)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 11:57pm UTC](https://discourse.processing.org/t/speed-up-application/40349 "2022-12-28T23:57:57Z")

</div>

Hey Processing Forum! Lately I’ve been working on a simple Photoshop clone in Processing - appropriately named PictureStore. One of its main features is importing a premade image and drawing overtop of it, but I’ve noti…

---

## [Player movement is snappy](https://discourse.processing.org/t/player-movement-is-snappy/40331)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 4\
**Last updated:** [December 28, 2022, 2:41pm UTC](https://discourse.processing.org/t/player-movement-is-snappy/40331 "2022-12-28T14:41:27Z")

</div>

for example, when W A S D are pressed in quick succession and repeatedly, it sometimes lags opposite to the direction it’s going. Vini vini; void setup() { fullScreen(); vini = new Vini(); } void draw() { backgrou…

---

## [Draw rectangles in Processing from data in serial monitor](https://discourse.processing.org/t/draw-rectangles-in-processing-from-data-in-serial-monitor/40273)

<div class="topic-metadata">

**Author:** [@axeltheodorus](https://discourse.processing.org/u/axeltheodorus)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 12:53pm UTC](https://discourse.processing.org/t/draw-rectangles-in-processing-from-data-in-serial-monitor/40273 "2022-12-28T12:53:48Z")

</div>

I have 2 ultrasonic sensors that i have already programmed to print out 2 values of distance in one string seperated by a coma. The values will then be read by processing and it should display 2 seperate rectangles that …

---

## [STL 3D Model exported into OBJ file](https://discourse.processing.org/t/stl-3d-model-exported-into-obj-file/40293)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 37\
**Last updated:** [December 28, 2022, 3:44am UTC](https://discourse.processing.org/t/stl-3d-model-exported-into-obj-file/40293 "2022-12-28T03:44:36Z")

</div>

Today I exported a .STL 3D model in blender to an .OBJ file. When I loaded the model into Processing.js it was black. I added lighting but it didn’t illuminate the model. Is there an alternative file to export that is be…

---

## [Pictures, pixelated, grids, flow.](https://discourse.processing.org/t/pictures-pixelated-grids-flow/40194)

<div class="topic-metadata">

**Author:** [@Jiang](https://discourse.processing.org/u/Jiang)\
**Replies:** 2\
**Last updated:** [December 28, 2022, 6:04am UTC](https://discourse.processing.org/t/pictures-pixelated-grids-flow/40194 "2022-12-28T06:04:20Z")

</div>

I have seen an interesting effect and would like to ask you what it is called and what code is used. Thank you very much.

---

## [8 directional movement in object](https://discourse.processing.org/t/8-directional-movement-in-object/40317)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 5\
**Last updated:** [December 27, 2022, 7:05pm UTC](https://discourse.processing.org/t/8-directional-movement-in-object/40317 "2022-12-27T19:05:03Z")

</div>

I need to make my player move in all of 8 directions using W A S D and my code makes some weird stuff when I press more than one key and I don’t know why class Vini { float x = width/2; float y = height/2; float …

---

## [The constructor Capture is undefined](https://discourse.processing.org/t/the-constructor-capture-is-undefined/40327)

<div class="topic-metadata">

**Author:** [@Danii](https://discourse.processing.org/u/Danii)\
**Replies:** 6\
**Last updated:** [December 27, 2022, 6:49pm UTC](https://discourse.processing.org/t/the-constructor-capture-is-undefined/40327 "2022-12-27T18:49:28Z")

</div>

Hi, I’ve been looking for a reason why my code is not working. It does not matter what arguments I put in between parenthesis. The error message is always similar. Please help :frowning: import processing.video.\*; Capt…

---

## [A\* Algorithm Path Finding running terribly slow on Processing](https://discourse.processing.org/t/a-algorithm-path-finding-running-terribly-slow-on-processing/40314)

<div class="topic-metadata">

**Author:** [@tantrapt](https://discourse.processing.org/u/tantrapt)\
**Replies:** 2\
**Last updated:** [December 26, 2022, 8:39pm UTC](https://discourse.processing.org/t/a-algorithm-path-finding-running-terribly-slow-on-processing/40314 "2022-12-26T20:39:05Z")

</div>

Hi! I’m trying to implement a A\* Path Finding Alghoritm. It’s supposed to iterate over hundreds of Objects to see which one is closest to the target. This implementation works but it takes around 15 seconds for each obje…

---

## [Referencing colour value I defined in the main project again in class after redefining it in class?](https://discourse.processing.org/t/referencing-colour-value-i-defined-in-the-main-project-again-in-class-after-redefining-it-in-class/40308)

<div class="topic-metadata">

**Author:** [@MarkusWiesinger](https://discourse.processing.org/u/MarkusWiesinger)\
**Replies:** 5\
**Last updated:** [December 26, 2022, 6:03pm UTC](https://discourse.processing.org/t/referencing-colour-value-i-defined-in-the-main-project-again-in-class-after-redefining-it-in-class/40308 "2022-12-26T18:03:40Z")

</div>

Hi! Sorry, newcommer to processing, hoping I don’t mess up the guidelines. The story so far: I have a class called “blocks”. The colour, size and position of that box is defined through the main project in its signatur…

---

## [PGraphics clear() is not working?](https://discourse.processing.org/t/pgraphics-clear-is-not-working/40296)

<div class="topic-metadata">

**Author:** [@FaisalKhatri](https://discourse.processing.org/u/FaisalKhatri)\
**Replies:** 7\
**Last updated:** [December 25, 2022, 8:10pm UTC](https://discourse.processing.org/t/pgraphics-clear-is-not-working/40296 "2022-12-25T20:10:38Z")

</div>

I’m trying to clear pixels in PGraphics object. It’s not working? or am I missing something? Here’s a little code for illustration. PGraphics pg; void setup() { size(600, 600); background(0); fill(255); stroke(…

---

## [loadShape() cannot find .obj file in data folder](https://discourse.processing.org/t/loadshape-cannot-find-obj-file-in-data-folder/37745)

<div class="topic-metadata">

**Author:** [@miiguell](https://discourse.processing.org/u/miiguell)\
**Replies:** 10\
**Last updated:** [December 25, 2022, 7:00pm UTC](https://discourse.processing.org/t/loadshape-cannot-find-obj-file-in-data-folder/37745 "2022-12-25T19:00:02Z")

</div>

I’m trying to import a 3D model of a space shuttle but processing is giving me a really hard time doing this for some reason. I watched examples and even opened the .OBJ file on ym computer and it renders nicely but proc…

---

## [WinRegistry not working anymore in Processing 4](https://discourse.processing.org/t/winregistry-not-working-anymore-in-processing-4/40258)

<div class="topic-metadata">

**Author:** [@Martin\_The\_Sun](https://discourse.processing.org/u/Martin_The_Sun)\
**Replies:** 9\
**Last updated:** [December 25, 2022, 7:50am UTC](https://discourse.processing.org/t/winregistry-not-working-anymore-in-processing-4/40258 "2022-12-25T07:50:09Z")

</div>

I was using java code to do file association for my software in Window platform. The class is called WinRegistry which can be commonly found online. The code worked well when I develop my software in Processing 3.5.4 but…

---

## [Truchet pattern 3D height map from blurred image](https://discourse.processing.org/t/truchet-pattern-3d-height-map-from-blurred-image/39492)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 5\
**Last updated:** [December 25, 2022, 3:33am UTC](https://discourse.processing.org/t/truchet-pattern-3d-height-map-from-blurred-image/39492 "2022-12-25T03:33:35Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I would like to create a 3D heightmap of a blurred image out of the following truchet pattern grid (via “Processing: Creative Coding and Generat…

---

## [Fade in and fade out text, on change, within Array](https://discourse.processing.org/t/fade-in-and-fade-out-text-on-change-within-array/40107)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 17\
**Last updated:** [December 24, 2022, 7:49am UTC](https://discourse.processing.org/t/fade-in-and-fade-out-text-on-change-within-array/40107 "2022-12-24T07:49:13Z")

</div>

I’m doing something wrong here - it almost does what I want - but how can I make this fade in / fade out only when I change the Bank array index? - right now my text fades in and out without being aware of the conditiona…

---

## [Need help in creating lasers for this spaceship! (laser beams, laser rays)](https://discourse.processing.org/t/need-help-in-creating-lasers-for-this-spaceship-laser-beams-laser-rays/40236)

<div class="topic-metadata">

**Author:** [@Envyy2020](https://discourse.processing.org/u/Envyy2020)\
**Replies:** 3\
**Last updated:** [December 23, 2022, 4:25pm UTC](https://discourse.processing.org/t/need-help-in-creating-lasers-for-this-spaceship-laser-beams-laser-rays/40236 "2022-12-23T16:25:29Z")

</div>

I need to create a spaceship that shoots lasers from the tip of the spaceship and goes up when the mouse is clicked. The lasers just need to go vertically upwards, that’s it. I HAVE SPENT HOURS trying to figure out how …

---

## [Processing don't open with MacOS M1](https://discourse.processing.org/t/processing-dont-open-with-macos-m1/40214)

<div class="topic-metadata">

**Author:** [@Jota](https://discourse.processing.org/u/Jota)\
**Replies:** 10\
**Last updated:** [December 23, 2022, 4:12pm UTC](https://discourse.processing.org/t/processing-dont-open-with-macos-m1/40214 "2022-12-23T16:12:54Z")

</div>

hello, I started using processing a little while ago. from one day to another the program did not open anymore. I already restarted, reinstalled… I didn’t find any solution on the internet. The program simply opens, fl…

---

## [HELP (stupid and mysterious?) format error - For structure within a MIDI responsive sketch](https://discourse.processing.org/t/help-stupid-and-mysterious-format-error-for-structure-within-a-midi-responsive-sketch/40266)

<div class="topic-metadata">

**Author:** [@xiu](https://discourse.processing.org/u/xiu)\
**Replies:** 6\
**Last updated:** [December 23, 2022, 2:18pm UTC](https://discourse.processing.org/t/help-stupid-and-mysterious-format-error-for-structure-within-a-midi-responsive-sketch/40266 "2022-12-23T14:18:12Z")

</div>

Good evening, I am a total newbie. I followed this tutorial: https://www.youtube.com/watch?v=L7AU2KAM0UE&t=274s as the basis for a sketch that process MIDI input. Now I wanted to assign specific colors to specific pi…

---

## [How to display Microbit's orientation as a 3D model in Processing?](https://discourse.processing.org/t/how-to-display-microbits-orientation-as-a-3d-model-in-processing/40248)

<div class="topic-metadata">

**Author:** [@neospace](https://discourse.processing.org/u/neospace)\
**Replies:** 5\
**Last updated:** [December 22, 2022, 12:05am UTC](https://discourse.processing.org/t/how-to-display-microbits-orientation-as-a-3d-model-in-processing/40248 "2022-12-22T00:05:16Z")

</div>

I am working on a project with my rocketry club. I want to have a microbit control the orientation of the fins to auto-stabilize the rocket. But first, I tried to make a processing code to display in real-time my micro-b…

---

## [controlP5 slider + PeasyCam issue](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199)

<div class="topic-metadata">

**Author:** [@hallow255win](https://discourse.processing.org/u/hallow255win)\
**Replies:** 2\
**Last updated:** [December 22, 2022, 9:07pm UTC](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199 "2022-12-22T21:07:53Z")

</div>

When I’m using ControlP5 slider I need the mouse to drag the slider left and right, but this action also triggers the camera to rotate in PeasyCam. Is there any way to use the slider without rotating the camera?

---

## [Porting Prim’s Algorithm notebook from JavaScript to Java](https://discourse.processing.org/t/porting-prim-s-algorithm-notebook-from-javascript-to-java/26840)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 6\
**Last updated:** [December 22, 2022, 9:04pm UTC](https://discourse.processing.org/t/porting-prim-s-algorithm-notebook-from-javascript-to-java/26840 "2022-12-22T21:04:06Z")

</div>

I came across this funky color-cycling Prim’s Algorithm Observable notebook and I’m trying to port it to Processing Java. But surprise surprise it’s not working. So I’ve annotated the ported code with my interpretatio…

---

## [New Install 4.1.1 - No Modes](https://discourse.processing.org/t/new-install-4-1-1-no-modes/40252)

<div class="topic-metadata">

**Author:** [@rcriley](https://discourse.processing.org/u/rcriley)\
**Replies:** 5\
**Last updated:** [December 22, 2022, 12:49pm UTC](https://discourse.processing.org/t/new-install-4-1-1-no-modes/40252 "2022-12-22T12:49:28Z")

</div>

Hello - I work in the IT Dept at a University. One of our faculty members plans to use Processing in the coming semester. I’m working to install it in a few computer labs for our students. They would also like to use th…

---

## [Reading serial data from Arduino - big delays](https://discourse.processing.org/t/reading-serial-data-from-arduino-big-delays/40229)

<div class="topic-metadata">

**Author:** [@scottbouch](https://discourse.processing.org/u/scottbouch)\
**Replies:** 3\
**Last updated:** [December 22, 2022, 10:25am UTC](https://discourse.processing.org/t/reading-serial-data-from-arduino-big-delays/40229 "2022-12-22T10:25:35Z")

</div>

Hi all first post here, and new to Processing, this is my first project. I am trying to read a stream of serial data from an Arduino board, and have it set the angle of a pointer in processing on my screen. I have foll…

---

## [Video library GStreamer Ubuntu](https://discourse.processing.org/t/video-library-gstreamer-ubuntu/40255)

<div class="topic-metadata">

**Author:** [@pointless](https://discourse.processing.org/u/pointless)\
**Replies:** 0\
**Last updated:** [December 21, 2022, 10:55pm UTC](https://discourse.processing.org/t/video-library-gstreamer-ubuntu/40255 "2022-12-21T22:55:27Z")

</div>

Hi I’m out of ideas, I’m having an issue with the video library in processing 4.1.1. On a new computer running ubuntu studio 22.04. The weird thing is, I had the exact same issue on my old laptop running ubuntu studio…

---

## [Rasterizing Image with grid of dice](https://discourse.processing.org/t/rasterizing-image-with-grid-of-dice/40176)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 9\
**Last updated:** [December 21, 2022, 6:01pm UTC](https://discourse.processing.org/t/rasterizing-image-with-grid-of-dice/40176 "2022-12-21T18:01:17Z")

</div>

Hi! I am trying to rasterize an image with dice connected to each pixel value, but I am running into a wall with sizing the dice appropriately. Goal: Current output: Input image: Current code: PImage img; …

---

## [Processing 4.0.2 and above giving "Cannot find a class or type named 'PApplet'" error](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110)

<div class="topic-metadata">

**Author:** [@mirek](https://discourse.processing.org/u/mirek)\
**Replies:** 2\
**Last updated:** [December 21, 2022, 2:13pm UTC](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110 "2022-12-21T14:13:00Z")

</div>

I’m maintaining an open-source Processing app — GitHub - FOSStriangulator/FOSStriangulator: A tool for making triangulated illustrations out of photos . It used to compile just fine with every Processing version I’ve tri…

---

## [G4P new windows. How to change the icon in'P2D Mode'?](https://discourse.processing.org/t/g4p-new-windows-how-to-change-the-icon-inp2d-mode/24535)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [December 21, 2022, 1:59pm UTC](https://discourse.processing.org/t/g4p-new-windows-how-to-change-the-icon-inp2d-mode/24535 "2022-12-21T13:59:46Z")

</div>

import g4p\_controls.\*; GWindow window; import javax.swing.JFrame; import java.awt.Font; import com.jogamp.newt.opengl.GLWindow; public void setup() { size(256, 128); createWindows(); } public void draw() { bac…

---

## [Help processing GIF](https://discourse.processing.org/t/help-processing-gif/40207)

<div class="topic-metadata">

**Author:** [@polllynarium](https://discourse.processing.org/u/polllynarium)\
**Replies:** 3\
**Last updated:** [December 19, 2022, 11:45pm UTC](https://discourse.processing.org/t/help-processing-gif/40207 "2022-12-19T23:45:22Z")

</div>

Hi! It does not work to saddle the gif, the balls disappear because it is not necessary, and the radius does not decrease, I attach the code, please see what is wrong! }Preformatted text float angle; float w = 36; …

---

## [Creating variation in grid with random(); & image](https://discourse.processing.org/t/creating-variation-in-grid-with-random-image/40135)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 27\
**Last updated:** [December 19, 2022, 7:05pm UTC](https://discourse.processing.org/t/creating-variation-in-grid-with-random-image/40135 "2022-12-19T19:05:02Z")

</div>

I’m interested in morphing the grid with randomness while also having an image interact with the grid. How do I go about designing varying cells and joining them together as a grid image? Can I use the random(); with (TR…

---

## [Error while running Processing with Maven](https://discourse.processing.org/t/error-while-running-processing-with-maven/26420)

<div class="topic-metadata">

**Author:** [@bugaj](https://discourse.processing.org/u/bugaj)\
**Replies:** 16\
**Last updated:** [December 20, 2022, 6:40pm UTC](https://discourse.processing.org/t/error-while-running-processing-with-maven/26420 "2022-12-20T18:40:35Z")

</div>

I’m trying to run an app build with maven with processing-core dependency. As far as I can tell there is problem with one of the internal dependencies in library’s POM file that prevents program from recognizing processi…

---

## [True and false keycodes for game (Quiz / true or false game)](https://discourse.processing.org/t/true-and-false-keycodes-for-game-quiz-true-or-false-game/15884)

<div class="topic-metadata">

**Author:** [@Zayba](https://discourse.processing.org/u/Zayba)\
**Replies:** 40\
**Last updated:** [December 20, 2022, 2:21pm UTC](https://discourse.processing.org/t/true-and-false-keycodes-for-game-quiz-true-or-false-game/15884 "2022-12-20T14:21:29Z")

</div>

I am a new learner in coding, and i can’t figure out how to make this true and false game work. if it is possible can someone help me with making a keycode ‘t’ for true and keycode ‘f’ for false? thanks! String myText; …

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

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