# Latest

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

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

**Page:** 223

---

## [Objects in P3D look weird (clipping)](https://discourse.processing.org/t/objects-in-p3d-look-weird-clipping/30094)

<div class="topic-metadata">

**Author:** [@Eastern](https://discourse.processing.org/u/Eastern)\
**Replies:** 4\
**Last updated:** [May 17, 2021, 6:59am UTC](https://discourse.processing.org/t/objects-in-p3d-look-weird-clipping/30094 "2021-05-17T06:59:14Z")

</div>

Demonstration video: HERE I was making a first person maze game in P3D and encountered this problem. It seems like when I get too close to an object, I see through it. The camera haven’t even reached the surface of the …

---

## [Read property 'width' undefined](https://discourse.processing.org/t/read-property-width-undefined/30117)

<div class="topic-metadata">

**Author:** [@deardanagrace](https://discourse.processing.org/u/deardanagrace)\
**Replies:** 2\
**Last updated:** [May 17, 2021, 5:11am UTC](https://discourse.processing.org/t/read-property-width-undefined/30117 "2021-05-17T05:11:20Z")

</div>

Hi, I am somewhat of an intro coder for p5.js. Anyways, I am working on some code that changes a drawFunction I made on an index of images and I keep getting: "Uncaught TypeError: Cannot read property ‘width’ of undefin…

---

## [Drag and Drop audio file into Minim](https://discourse.processing.org/t/drag-and-drop-audio-file-into-minim/15123)

<div class="topic-metadata">

**Author:** [@ozman](https://discourse.processing.org/u/ozman)\
**Replies:** 6\
**Last updated:** [May 16, 2021, 8:49pm UTC](https://discourse.processing.org/t/drag-and-drop-audio-file-into-minim/15123 "2021-05-16T20:49:11Z")

</div>

Hi! I am trying to implement a drag and drop function into a processing visualizer. At the moment i am able to play song through my data folder with minim, but i would like to use the Drop library to upload any song an…

---

## [P5.js copy() issue in Safari](https://discourse.processing.org/t/p5-js-copy-issue-in-safari/16289)

<div class="topic-metadata">

**Author:** [@5f5f5f](https://discourse.processing.org/u/5f5f5f)\
**Replies:** 3\
**Last updated:** [May 16, 2021, 5:20pm UTC](https://discourse.processing.org/t/p5-js-copy-issue-in-safari/16289 "2021-05-16T17:20:15Z")

</div>

Hi everyone! Need help :exploding\_head: I’m trying to make an animation like this using p5.js, and faced a really weird issue that is reproduced only in Safari browser, and i really don’t understand why it is happening …

---

## [Libp5x examples - Processing, LWJGL, Gradle and Java 11+ modules](https://discourse.processing.org/t/libp5x-examples-processing-lwjgl-gradle-and-java-11-modules/30110)

<div class="topic-metadata">

**Author:** [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Replies:** 6\
**Last updated:** [May 16, 2021, 2:54pm UTC](https://discourse.processing.org/t/libp5x-examples-processing-lwjgl-gradle-and-java-11-modules/30110 "2021-05-16T14:54:27Z")

</div>

I’ve just started putting together a few Gradle-based examples for using libp5x (as published on Maven Central). This is the fork of Processing 3.5.3 used inside PraxisLIVE v5+. It’s adapted to use LWJGL for OpenGL rende…

---

## [Calling functions with variables](https://discourse.processing.org/t/calling-functions-with-variables/30001)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 7\
**Last updated:** [May 16, 2021, 12:08pm UTC](https://discourse.processing.org/t/calling-functions-with-variables/30001 "2021-05-16T12:08:27Z")

</div>

Say I had 3 functions; scene1(), scene2(), scene3(), and wanted to switch between these functions by changing an int variable ‘scene’. Is there any possible solution to this without the use of if/switch statements?

---

## [P5 canvas position on device orientation change](https://discourse.processing.org/t/p5-canvas-position-on-device-orientation-change/23398)

<div class="topic-metadata">

**Author:** [@odotdotdot](https://discourse.processing.org/u/odotdotdot)\
**Replies:** 1\
**Last updated:** [May 16, 2021, 9:57am UTC](https://discourse.processing.org/t/p5-canvas-position-on-device-orientation-change/23398 "2021-05-16T09:57:35Z")

</div>

Hi, I’m working on a browser game and I’ve just extended functionality to mobile browsers. I’m having some trouble reigning in the canvas position after a device orientation change (i.e. flipping your phone from portra…

---

## [Moving boundaries in box2D](https://discourse.processing.org/t/moving-boundaries-in-box2d/23844)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 3:27am UTC](https://discourse.processing.org/t/moving-boundaries-in-box2d/23844 "2021-05-16T03:27:10Z")

</div>

Hi, I’m looking for some kind of ChainShape or similar that I can update the position of manually to act as a moving boundary for dynamic objects. They should collide but not respond to forces. I’m trying to make a sim…

---

## [P5.sound on google chrome - p5.sound.js:3191 Uncaught (in promise) TypeError: Cannot read property 'addModule' of undefined](https://discourse.processing.org/t/p5-sound-on-google-chrome-p5-sound-js-3191-uncaught-in-promise-typeerror-cannot-read-property-addmodule-of-undefined/29939)

<div class="topic-metadata">

**Author:** [@Discordanian](https://discourse.processing.org/u/Discordanian)\
**Replies:** 4\
**Last updated:** [May 16, 2021, 12:39am UTC](https://discourse.processing.org/t/p5-sound-on-google-chrome-p5-sound-js-3191-uncaught-in-promise-typeerror-cannot-read-property-addmodule-of-undefined/29939 "2021-05-16T00:39:01Z")

</div>

What I’m seeing is that I’m getting an error using p5.sound w/Chrome (seems to work fine in FireFox, haven’t tried it elsewhere). I’ve stubbed out a very small/simple example almost cribbed verbatim from the reference e…

---

## [Initialize subclass of PGraphics](https://discourse.processing.org/t/initialize-subclass-of-pgraphics/30113)

<div class="topic-metadata">

**Author:** [@Tomfoolery](https://discourse.processing.org/u/Tomfoolery)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 12:26am UTC](https://discourse.processing.org/t/initialize-subclass-of-pgraphics/30113 "2021-05-16T00:26:10Z")

</div>

I’m working in the Eclipse environment and am looking to create a new class (TGraphics) that extends PGraphics. I want to do this so that I can polymorph the beginDraw() method to send an message to my event bus every t…

---

## [Export sketch as audio?](https://discourse.processing.org/t/export-sketch-as-audio/30111)

<div class="topic-metadata">

**Author:** [@TheZipCreator](https://discourse.processing.org/u/TheZipCreator)\
**Replies:** 1\
**Last updated:** [May 15, 2021, 10:52pm UTC](https://discourse.processing.org/t/export-sketch-as-audio/30111 "2021-05-15T22:52:16Z")

</div>

so I made the following sketch to scramble audio, and I’m wondering how to export the audio I get from it. Currently I’m just using audacity to record desktop audio while the sketch is running, but that takes long as I m…

---

## [Vertex Command Issues](https://discourse.processing.org/t/vertex-command-issues/30087)

<div class="topic-metadata">

**Author:** [@willreichling12](https://discourse.processing.org/u/willreichling12)\
**Replies:** 3\
**Last updated:** [May 15, 2021, 10:18pm UTC](https://discourse.processing.org/t/vertex-command-issues/30087 "2021-05-15T22:18:19Z")

</div>

We are trying to build a curve based off control points in multiple segments. We have a beginning segment for the first three control points, an end segment for the last three, and an entire middle with multiple segments…

---

## [Help with pixels\[\] loadPixels(), etc](https://discourse.processing.org/t/help-with-pixels-loadpixels-etc/30109)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 6\
**Last updated:** [May 15, 2021, 7:49pm UTC](https://discourse.processing.org/t/help-with-pixels-loadpixels-etc/30109 "2021-05-15T19:49:10Z")

</div>

Hi all, I’ve been building some code from scratch to compare the pixels of a reference image to the pixels of each new frame of video being captured by the webcam. I was able to get it to work the way that I wanted (I …

---

## [Is there a way to stop the register method?](https://discourse.processing.org/t/is-there-a-way-to-stop-the-register-method/30107)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 1\
**Last updated:** [May 15, 2021, 12:50pm UTC](https://discourse.processing.org/t/is-there-a-way-to-stop-the-register-method/30107 "2021-05-15T12:50:23Z")

</div>

Hey it’s me again i wanted to ask how to remove the register method. Because it now calls for every object created in the background and I don’t want that. Here is a small example that I made. The function destroy () …

---

## ["Lost connection with emulator while launching. Try again."](https://discourse.processing.org/t/lost-connection-with-emulator-while-launching-try-again/8858)

<div class="topic-metadata">

**Author:** [@Mew](https://discourse.processing.org/u/Mew)\
**Replies:** 6\
**Last updated:** [May 15, 2021, 5:15am UTC](https://discourse.processing.org/t/lost-connection-with-emulator-while-launching-try-again/8858 "2021-05-15T05:15:46Z")

</div>

Hi there - first time posting here, so here goes. I’ve always used Processing 3 in Java mode, and I wanted to test out the Android mode. So, to make sure I really wouldn’t do anything wrong when installing everything re…

---

## [Drawing a spectogram 2D (or 3D) from a recorded audio](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 25\
**Last updated:** [May 11, 2021, 2:39pm UTC](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708 "2021-05-11T14:39:22Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi Everybody, is there any code to do what in the object of the discussion? Thanks Best regards Roberto

---

## [Why Doesn't This Sketch Run in Desktop Editor?](https://discourse.processing.org/t/why-doesnt-this-sketch-run-in-desktop-editor/30098)

<div class="topic-metadata">

**Author:** [@cottonchipper](https://discourse.processing.org/u/cottonchipper)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 5:59pm UTC](https://discourse.processing.org/t/why-doesnt-this-sketch-run-in-desktop-editor/30098 "2021-05-14T17:59:58Z")

</div>

I found a discussion thread with an example in the P5js web editor that runs in the web editor but not when I tried copying to the desktop editor. I’m relatively new to P5js and clueless as to why it won’t run on the des…

---

## [Processing Shader Tool](https://discourse.processing.org/t/processing-shader-tool/5476)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 22\
**Last updated:** [May 14, 2021, 4:05pm UTC](https://discourse.processing.org/t/processing-shader-tool/5476 "2021-05-14T16:05:23Z")

</div>

Very much work in progress, but I’m curious if anyone has feedback. (enable the subtitles by pressing CC) What this tool tries to solve is the disconnection between the Processing IDE and the shader files, by making …

---

## [P5 pixel-based Box2D physics library on top of Planck.js](https://discourse.processing.org/t/p5-pixel-based-box2d-physics-library-on-top-of-planck-js/30097)

<div class="topic-metadata">

**Author:** [@bobcook](https://discourse.processing.org/u/bobcook)\
**Replies:** 0\
**Last updated:** [May 14, 2021, 2:57pm UTC](https://discourse.processing.org/t/p5-pixel-based-box2d-physics-library-on-top-of-planck-js/30097 "2021-05-14T14:57:30Z")

</div>

\[ProfessorCook - Planck Box2d Physics for Javascript P5\](https://p2.js web site with examples and documentation) p2.js is a work in progress. Feedback appreciated. Not related to Schteppe’s p2.js, just happened on sam…

---

## [Making a keyPressed do a launch and launch sequence?](https://discourse.processing.org/t/making-a-keypressed-do-a-launch-and-launch-sequence/30077)

<div class="topic-metadata">

**Author:** [@yagirl\_belle](https://discourse.processing.org/u/yagirl_belle)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 2:48pm UTC](https://discourse.processing.org/t/making-a-keypressed-do-a-launch-and-launch-sequence/30077 "2021-05-14T14:48:03Z")

</div>

Hey everyone, I’m trying to do a launch sequence by pressing the same key twice. 1st press = start launch, 2nd press = launch object I’m not certain how to do this and what I need to use. I’m using booleans to run the …

---

## [Need coding ideas](https://discourse.processing.org/t/need-coding-ideas/30095)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 7\
**Last updated:** [May 14, 2021, 2:13pm UTC](https://discourse.processing.org/t/need-coding-ideas/30095 "2021-05-14T14:13:30Z")

</div>

(I don’t know what tag to set, so I just set Processing) Does anyone have any fun coding challenges to do? Perhaps a website or something like that. Preferably some simple games, since they are usually interesting with …

---

## [Error related to merging xml files when trying to run sketch on emultaor or device](https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 2:12pm UTC](https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092 "2021-05-14T14:12:41Z")

</div>

HI, I recently installed android mode and ran a test sketch which seems to run fine however i then added the emulator (ARM version) and now when i try to run a sketch on the emulator or on a device i get the following i…

---

## [Get error message withP5.dom.min.js and min.js](https://discourse.processing.org/t/get-error-message-withp5-dom-min-js-and-min-js/30075)

<div class="topic-metadata">

**Author:** [@momo](https://discourse.processing.org/u/momo)\
**Replies:** 6\
**Last updated:** [May 14, 2021, 3:15am UTC](https://discourse.processing.org/t/get-error-message-withp5-dom-min-js-and-min-js/30075 "2021-05-14T03:15:14Z")

</div>

Hi, I’m using various js like P5.sound.js and dom js in my Html, try to work on show the sound wave on the page, and got errors: 1.amplitude is not defined 2.d.\_validateParameters is not a function #5242 please help me! …

---

## [Loading multiple videos, fails/works randomly](https://discourse.processing.org/t/loading-multiple-videos-fails-works-randomly/27555)

<div class="topic-metadata">

**Author:** [@sandersturing](https://discourse.processing.org/u/sandersturing)\
**Replies:** 8\
**Last updated:** [May 13, 2021, 10:51pm UTC](https://discourse.processing.org/t/loading-multiple-videos-fails-works-randomly/27555 "2021-05-13T22:51:35Z")

</div>

Hello all, I really can’t figure out the right way of loading multiple videos (really small in filesize: \< 200kb) and play them. I’m currently loading a couple in an array and playing them randomly in a grid. The thing…

---

## [Making an object stop, and move forward when key pressed (power bar)](https://discourse.processing.org/t/making-an-object-stop-and-move-forward-when-key-pressed-power-bar/29936)

<div class="topic-metadata">

**Author:** [@Trish](https://discourse.processing.org/u/Trish)\
**Replies:** 3\
**Last updated:** [May 13, 2021, 8:26pm UTC](https://discourse.processing.org/t/making-an-object-stop-and-move-forward-when-key-pressed-power-bar/29936 "2021-05-13T20:26:13Z")

</div>

Hello, I’m trying to code a ball that, when the program is executed, moves side to side. When a key is pressed (and held down), a power bar appears displaying how much power the ball is going to shoot with when the key i…

---

## [How to draw a circle in 3D when i have an array of n points that lay on the circle](https://discourse.processing.org/t/how-to-draw-a-circle-in-3d-when-i-have-an-array-of-n-points-that-lay-on-the-circle/30083)

<div class="topic-metadata">

**Author:** [@knoedel](https://discourse.processing.org/u/knoedel)\
**Replies:** 2\
**Last updated:** [May 13, 2021, 3:16pm UTC](https://discourse.processing.org/t/how-to-draw-a-circle-in-3d-when-i-have-an-array-of-n-points-that-lay-on-the-circle/30083 "2021-05-13T15:16:51Z")

</div>

Hello everyone! I am working on a project where I want to visualize the Hopf Fibration using the stereographic projection from 4D onto 3D. The maths part is working fine, but I have problems plotting the circles in 3D …

---

## [Change moving angle by changing the moving directions/speeds](https://discourse.processing.org/t/change-moving-angle-by-changing-the-moving-directions-speeds/30065)

<div class="topic-metadata">

**Author:** [@helloscoopz](https://discourse.processing.org/u/helloscoopz)\
**Replies:** 12\
**Last updated:** [May 13, 2021, 3:12pm UTC](https://discourse.processing.org/t/change-moving-angle-by-changing-the-moving-directions-speeds/30065 "2021-05-13T15:12:00Z")

</div>

void turn(float angle) { // need to change xSpeed and ySpeed so that object will move // with that changed angle } My problem is that I need to change the direction of the moving object counterclockwise with the a…

---

## [Ketai website down](https://discourse.processing.org/t/ketai-website-down/28644)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [May 13, 2021, 2:47pm UTC](https://discourse.processing.org/t/ketai-website-down/28644 "2021-05-13T14:47:12Z")

</div>

Not sure what category to post this in but ive just tried to look at the ketai website for examples and tutorials only to find the whole website is now down. Does anyone knkw how to get in touch with the owner, this was …

---

## [Android Mode, Ketai Library and Android Emulator Update](https://discourse.processing.org/t/android-mode-ketai-library-and-android-emulator-update/29793)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 1\
**Last updated:** [May 13, 2021, 2:45pm UTC](https://discourse.processing.org/t/android-mode-ketai-library-and-android-emulator-update/29793 "2021-05-13T14:45:04Z")

</div>

Hello, I removed Android Studio from my W10 PC and wanted to try a fresh install from Processing 3.5.4 There have been posts about Android and Ketai issues and wanted to give it another try from a clean slate. The fo…

---

## [Is there any feasible way to use a model created using teachable machine in processing?](https://discourse.processing.org/t/is-there-any-feasible-way-to-use-a-model-created-using-teachable-machine-in-processing/30085)

<div class="topic-metadata">

**Author:** [@bontempos](https://discourse.processing.org/u/bontempos)\
**Replies:** 0\
**Last updated:** [May 13, 2021, 1:53pm UTC](https://discourse.processing.org/t/is-there-any-feasible-way-to-use-a-model-created-using-teachable-machine-in-processing/30085 "2021-05-13T13:53:59Z")

</div>

I’m in between converting to P5 a huge amount of matrix calculations I made a while ago for processing… because, then, I can use the ml5 library with image classification. But that’s a bit silly if I can have a simple w…

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

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