# Latest

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

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

**Page:** 42

---

## [P5 for Spatial Computing / Mixed Reality / p5xr](https://discourse.processing.org/t/p5-for-spatial-computing-mixed-reality-p5xr/44043)

<div class="topic-metadata">

**Author:** [@TiborUdvari](https://discourse.processing.org/u/TiborUdvari)\
**Replies:** 19\
**Last updated:** [May 14, 2024, 3:12pm UTC](https://discourse.processing.org/t/p5-for-spatial-computing-mixed-reality-p5xr/44043 "2024-05-14T15:12:16Z")

</div>

I’m exploring p5 and p5xr to do Spatial Computing or Mixed Reality. Do you know any people who are working with p5 in 3D? Most examples use game engines like Unity or maybe Zach Lieberman’s work with ARKit and OpenFrame…

---

## [My Pacman Game issues](https://discourse.processing.org/t/my-pacman-game-issues/6806)

<div class="topic-metadata">

**Author:** [@CodeOscar](https://discourse.processing.org/u/CodeOscar)\
**Replies:** 7\
**Last updated:** [May 14, 2024, 2:56pm UTC](https://discourse.processing.org/t/my-pacman-game-issues/6806 "2024-05-14T14:56:23Z")

</div>

I have a problem about when I want to press a key, up, down, right and left, change the image of my Pacman, depending on its position, with different animated sprites, which are in different images, according to their po…

---

## [Termination of a String](https://discourse.processing.org/t/termination-of-a-string/44431)

<div class="topic-metadata">

**Author:** [@leclerke](https://discourse.processing.org/u/leclerke)\
**Replies:** 2\
**Last updated:** [May 14, 2024, 2:04pm UTC](https://discourse.processing.org/t/termination-of-a-string/44431 "2024-05-14T14:04:04Z")

</div>

Hello, I am stuck transforming a char-array to a String. When using: byte\[\] inBuffer = new byte\[60\]; myPort.readBytesUntil(lf, inBuffer); tring myString = new String(inBuffer); there seems to be some data after the…

---

## [G4P Way to Create New Window Hidden?](https://discourse.processing.org/t/g4p-way-to-create-new-window-hidden/44418)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 8\
**Last updated:** [May 13, 2024, 10:03pm UTC](https://discourse.processing.org/t/g4p-way-to-create-new-window-hidden/44418 "2024-05-13T22:03:24Z")

</div>

Hi, I’m using G4P, wonderful lib! I’ve found a way to programmatically create windows and hide them - based on posts here and Peter’s fab library! All Peter’s code; works great. What I haven’t found is a way to create a…

---

## [G4P Cancel Selection in Textfield?](https://discourse.processing.org/t/g4p-cancel-selection-in-textfield/44383)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 18\
**Last updated:** [May 13, 2024, 3:16pm UTC](https://discourse.processing.org/t/g4p-cancel-selection-in-textfield/44383 "2024-05-13T15:16:23Z")

</div>

Hi Peter et al, just wondering if there’s a way to use the .cancelSelection() method for G4P texfields? Here’s the code: void unselectAllFields() { tfCC0.cancelSelection(); tfCC1.cancelSelection(); tfCC2.cancelSe…

---

## [Processing Online Compiler](https://discourse.processing.org/t/processing-online-compiler/44412)

<div class="topic-metadata">

**Author:** [@dhughes023](https://discourse.processing.org/u/dhughes023)\
**Replies:** 1\
**Last updated:** [May 12, 2024, 10:09am UTC](https://discourse.processing.org/t/processing-online-compiler/44412 "2024-05-12T10:09:43Z")

</div>

Hi, My students develop using Processing on desktop machines for their final projects. They work together and would like a way to code simultaneously on the same project. We used to use coding rooms, which compiled pro…

---

## [G4P Create new Control-class to use in Sketch](https://discourse.processing.org/t/g4p-create-new-control-class-to-use-in-sketch/44047)

<div class="topic-metadata">

**Author:** [@Marcel](https://discourse.processing.org/u/Marcel)\
**Replies:** 10\
**Last updated:** [May 12, 2024, 8:08am UTC](https://discourse.processing.org/t/g4p-create-new-control-class-to-use-in-sketch/44047 "2024-05-12T08:08:39Z")

</div>

Hi, Recently I came across this awesome tool G4P GUI Builder to use for my project. I would like to create a new Control to mimic a Encoder Knob. I’ve been fumbling around with the DKnob Class to change it into a new DE…

---

## [Control P5 Slider rounds incorrectly on negative number](https://discourse.processing.org/t/control-p5-slider-rounds-incorrectly-on-negative-number/44413)

<div class="topic-metadata">

**Author:** [@dfecker](https://discourse.processing.org/u/dfecker)\
**Replies:** 1\
**Last updated:** [May 11, 2024, 12:48pm UTC](https://discourse.processing.org/t/control-p5-slider-rounds-incorrectly-on-negative-number/44413 "2024-05-11T12:48:19Z")

</div>

When the Slider reaches -40 it return a -39.99 and rounds down to a -39. If every other value returned in this example is an int and base 10 why is the -40 off? And how do I fix it so my numbers are multiples of 10 from …

---

## ["Target VM failed to initialize" with P2D & P3D](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 7:05pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-with-p2d-p3d/42029 "2024-05-10T19:05:53Z")

</div>

Hi there ! I suddenly have this message : Could not run the sketch (Target VM failed to initialize). For more information, read Help → Troubleshooting. I wish it was more specific. It happens only when I ask for P2D …

---

## [How to warp an image](https://discourse.processing.org/t/how-to-warp-an-image/44386)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 8:30am UTC](https://discourse.processing.org/t/how-to-warp-an-image/44386 "2024-05-10T08:30:02Z")

</div>

hi i try to warp an image use following code but not works. need a help thank you PImage img; // Declare a variable to hold the image int widthTop = 102; // Example parameters int heightTop = 80; int widthBottom = 20; i…

---

## [Identical code works in Processing IDE, but not from VS Code/CLI](https://discourse.processing.org/t/identical-code-works-in-processing-ide-but-not-from-vs-code-cli/40124)

<div class="topic-metadata">

**Author:** [@blasphemy](https://discourse.processing.org/u/blasphemy)\
**Replies:** 2\
**Last updated:** [May 10, 2024, 7:29am UTC](https://discourse.processing.org/t/identical-code-works-in-processing-ide-but-not-from-vs-code-cli/40124 "2024-05-10T07:29:57Z")

</div>

I was going through this example from the website: Array 2D / Examples / Processing.org and I had no problem running it with the pre-built processing IDE. The file can also be run using CLI once saved to sketchbook. ada…

---

## [Converting from Processing to p5.js](https://discourse.processing.org/t/converting-from-processing-to-p5-js/38394)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 8\
**Last updated:** [May 8, 2024, 9:05pm UTC](https://discourse.processing.org/t/converting-from-processing-to-p5-js/38394 "2024-05-08T21:05:12Z")

</div>

Hi! I have a small little noise graphing code I would love to port to p5.js and have a hard time finding out what needs to change so this code (which works in processing) works in p5.js float inc = 0.05; float start = 0…

---

## [Pushing and Popping a PGraphics Grid (pushMatrix / popMatrix in a grid)](https://discourse.processing.org/t/pushing-and-popping-a-pgraphics-grid-pushmatrix-popmatrix-in-a-grid/44403)

<div class="topic-metadata">

**Author:** [@bdon](https://discourse.processing.org/u/bdon)\
**Replies:** 5\
**Last updated:** [May 8, 2024, 10:40am UTC](https://discourse.processing.org/t/pushing-and-popping-a-pgraphics-grid-pushmatrix-popmatrix-in-a-grid/44403 "2024-05-08T10:40:44Z")

</div>

Hi there - I was hoping to draw a basic grid of rectangles with PGraphics, but something I’m doing is wrong here and I’m not sure what it is. Can anyone shed some light? PGraphics img; void setup() { size(100, 10…

---

## [String Index Out Of Bounds Exception](https://discourse.processing.org/t/string-index-out-of-bounds-exception/44375)

<div class="topic-metadata">

**Author:** [@mohitSingh](https://discourse.processing.org/u/mohitSingh)\
**Replies:** 3\
**Last updated:** [May 8, 2024, 4:07am UTC](https://discourse.processing.org/t/string-index-out-of-bounds-exception/44375 "2024-05-08T04:07:03Z")

</div>

I am encountering a java.lang.StringIndexOutOfBoundsException when receiving data from a TCP server in my Processing application. The error occurs after sending a configuration command and receiving an acknowledgment fro…

---

## [someImage.mask (someMaskImage), not working (the mask is a createGraphic)](https://discourse.processing.org/t/someimage-mask-somemaskimage-not-working-the-mask-is-a-creategraphic/44395)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 2\
**Last updated:** [May 7, 2024, 11:16am UTC](https://discourse.processing.org/t/someimage-mask-somemaskimage-not-working-the-mask-is-a-creategraphic/44395 "2024-05-07T11:16:08Z")

</div>

Hey folks, Can you please have a look in this sketch at I can’t grasp why masking is not working. It simple, here is the code. (you can run it in the above link, image included) let face; // Variable to store the fa…

---

## [Apply to the $10k \`pr05\` grant by May 31!](https://discourse.processing.org/t/apply-to-the-10k-pr05-grant-by-may-31/44398)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 8:35am UTC](https://discourse.processing.org/t/apply-to-the-10k-pr05-grant-by-may-31/44398 "2024-05-07T08:35:42Z")

</div>

Open Call for 2024 Software Development Grant (pr05): ‘New Beginnings’ Application Deadline: Friday, May 31, 2024, 11:59 PM EST :backhand\_index\_pointing\_right: Apply Here! We are excited to announce pr05 (pronounced “p…

---

## [Triangled terrain audio visualizer](https://discourse.processing.org/t/triangled-terrain-audio-visualizer/44384)

<div class="topic-metadata">

**Author:** [@funnyrectangles](https://discourse.processing.org/u/funnyrectangles)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 1:27am UTC](https://discourse.processing.org/t/triangled-terrain-audio-visualizer/44384 "2024-05-07T01:27:21Z")

</div>

Inspired by Coding Challenge: 3D Terrain Generation with Perlin Noise I would like to create an audio visualizer that display several successive audio frames as a terrain. I managed to create a basic working sketch bu…

---

## [I Made an ES6 Typescript and Parcel template for others to fork](https://discourse.processing.org/t/i-made-an-es6-typescript-and-parcel-template-for-others-to-fork/44379)

<div class="topic-metadata">

**Author:** [@ehonzik](https://discourse.processing.org/u/ehonzik)\
**Replies:** 7\
**Last updated:** [May 6, 2024, 6:40pm UTC](https://discourse.processing.org/t/i-made-an-es6-typescript-and-parcel-template-for-others-to-fork/44379 "2024-05-06T18:40:43Z")

</div>

Hi all, recently I’ve gotten into p5js and have been really enjoying it. Thing is, I don’t come from a web development background. I’m used to languages like C# and Go with all of the built in intellisense, tooling, and …

---

## [Inserting your sketch in a Jetpack Compose Screen](https://discourse.processing.org/t/inserting-your-sketch-in-a-jetpack-compose-screen/44393)

<div class="topic-metadata">

**Author:** [@toinebeg](https://discourse.processing.org/u/toinebeg)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 4:36pm UTC](https://discourse.processing.org/t/inserting-your-sketch-in-a-jetpack-compose-screen/44393 "2024-05-06T16:36:27Z")

</div>

Hi, I’m working on a small app for Android that started as a processing for Android sketch. At some point I wanted to add some UI but I felt stuck with the current offering of the processing GUI libraries (Which is a sub…

---

## [\[p5.js editor\] Bad gateway error](https://discourse.processing.org/t/p5-js-editor-bad-gateway-error/44338)

<div class="topic-metadata">

**Author:** [@sambushes](https://discourse.processing.org/u/sambushes)\
**Replies:** 15\
**Last updated:** [May 6, 2024, 1:27pm UTC](https://discourse.processing.org/t/p5-js-editor-bad-gateway-error/44338 "2024-05-06T13:27:33Z")

</div>

I´m constantly getting bad gateway error come up the last couple of days …and my students are too. Is anyone else getting this? I can´t see any open issues about it on Github.

---

## [G4P Droplist - Can it open UP?](https://discourse.processing.org/t/g4p-droplist-can-it-open-up/44390)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 10:28am UTC](https://discourse.processing.org/t/g4p-droplist-can-it-open-up/44390 "2024-05-06T10:28:34Z")

</div>

OK here’s a little bit of a weird one, but I want to use a droplist at the bottom of the app window. But it drops DOWN only, so options are not visible. I can’t find a property to set it to open “upwards” instead of dow…

---

## [G4P TextArea/Textfield Length Filter - ALMOST working](https://discourse.processing.org/t/g4p-textarea-textfield-length-filter-almost-working/44363)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 12\
**Last updated:** [May 4, 2024, 5:02pm UTC](https://discourse.processing.org/t/g4p-textarea-textfield-length-filter-almost-working/44363 "2024-05-04T17:02:36Z")

</div>

Hi Peter, I started this as a new thread because the old one was really about filtering for data type. Based on your helpful sketch, I’ve implemented the following to limit character entry to 3 in a textAREA: public v…

---

## [\[p5 WEB\] I would like to save ‘saveFrames’ (current WEB screen) into one image variable](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [May 4, 2024, 11:58am UTC](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381 "2024-05-04T11:58:05Z")

</div>

\[p5 WEB\] I would like to save ‘saveFrames’ (current WEB screen) into one image variable. hello. Nice to meet you. I would like to save the image of the current WEB screen in a variable. I would like to edit and sa…

---

## [Run python script server-side from P5.js sketch](https://discourse.processing.org/t/run-python-script-server-side-from-p5-js-sketch/44380)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 3\
**Last updated:** [May 4, 2024, 8:24am UTC](https://discourse.processing.org/t/run-python-script-server-side-from-p5-js-sketch/44380 "2024-05-04T08:24:01Z")

</div>

I’m a bit of a noob when it comes to P5.js and web stuff so apologies in advance for the possibly dumb question: I have p5.js sketch that I have online a hosted linux server. I want this p5.js app to call a python scrip…

---

## [Hello, just interesting b is link to a?](https://discourse.processing.org/t/hello-just-interesting-b-is-link-to-a/44376)

<div class="topic-metadata">

**Author:** [@zlfp](https://discourse.processing.org/u/zlfp)\
**Replies:** 3\
**Last updated:** [May 3, 2024, 2:24pm UTC](https://discourse.processing.org/t/hello-just-interesting-b-is-link-to-a/44376 "2024-05-03T14:24:44Z")

</div>

just interesting if we like do that int\[\] a = {1,2,3}; int\[\] b = a; b is link to a, or b is {1,2,3}? and if we redact b (if its link), we redact b or a? anyways, thanx

---

## [G4js - developing a new GUI library for p5.js (now called canvasGUI)](https://discourse.processing.org/t/g4js-developing-a-new-gui-library-for-p5-js-now-called-canvasgui/36116)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 11\
**Last updated:** [May 3, 2024, 9:36am UTC](https://discourse.processing.org/t/g4js-developing-a-new-gui-library-for-p5-js-now-called-canvasgui/36116 "2024-05-03T09:36:55Z")

</div>

I released G4P for Javamode just over 13 years ago but now I am getting into Javascript I intend to create a GUI library for p5.js The idea behind the library is to give p5.js users a similar experience for those like me…

---

## [Creative Coding with py5, the Python version of Processing](https://discourse.processing.org/t/creative-coding-with-py5-the-python-version-of-processing/44373)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 10:56pm UTC](https://discourse.processing.org/t/creative-coding-with-py5-the-python-version-of-processing/44373 "2024-05-02T22:56:42Z")

</div>

Very happy to announce my now-scheduled PyCon talk, Creative Coding with py5, the Python version of Processing, for Saturday, May 18th at 4:15 p.m. If you will be at PyCon US in Pittsburgh later this month, please atten…

---

## [Why i can't do operations for arrays to arrays of custom classes](https://discourse.processing.org/t/why-i-cant-do-operations-for-arrays-to-arrays-of-custom-classes/44369)

<div class="topic-metadata">

**Author:** [@zlfp](https://discourse.processing.org/u/zlfp)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 10:10am UTC](https://discourse.processing.org/t/why-i-cant-do-operations-for-arrays-to-arrays-of-custom-classes/44369 "2024-05-02T10:10:56Z")

</div>

shorter, there is the code we need class creature { float xp,yp; PImage ifa; } class animal extends creature { animal(float sxp,float syp,PImage sifa) { xp = sxp; yp = syp; ifa = sifa; } void NP(float n…

---

## [Beginner looking to translate sound to 'drawing'](https://discourse.processing.org/t/beginner-looking-to-translate-sound-to-drawing/44367)

<div class="topic-metadata">

**Author:** [@Lee14](https://discourse.processing.org/u/Lee14)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 3:23pm UTC](https://discourse.processing.org/t/beginner-looking-to-translate-sound-to-drawing/44367 "2024-05-01T15:23:25Z")

</div>

I was wondering whether someone has some code which i can play with to take a recorded bit of sound and translate into graphic marks …

---

## [Cannot access my p5.js web editor account?!](https://discourse.processing.org/t/cannot-access-my-p5-js-web-editor-account/44355)

<div class="topic-metadata">

**Author:** [@megarou76](https://discourse.processing.org/u/megarou76)\
**Replies:** 2\
**Last updated:** [April 27, 2024, 2:50pm UTC](https://discourse.processing.org/t/cannot-access-my-p5-js-web-editor-account/44355 "2024-04-27T14:50:18Z")

</div>

Hello, well, something fishy & weird is going on with me?!!, although, I’m typing my correct password, but, still it is saying to me(invalid username/password)??!, I don’t know what wrong??!, what’s the matter exactly?!!…

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

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