# Latest

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

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

**Page:** 138

---

## [Android build failure](https://discourse.processing.org/t/android-build-failure/36575)

<div class="topic-metadata">

**Author:** [@jSdCool](https://discourse.processing.org/u/jSdCool)\
**Replies:** 4\
**Last updated:** [May 12, 2022, 8:55pm UTC](https://discourse.processing.org/t/android-build-failure/36575 "2022-05-12T20:55:39Z")

</div>

after I downloaded the new version of android mode for processing 4 wrote a simple program and when I tries to test it I got Exception in thread "Thread-27" java.lang.NoSuchMethodError: 'java.lang.String processing.mod…

---

## [Restricted rotation next to a wall](https://discourse.processing.org/t/restricted-rotation-next-to-a-wall/36687)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 6\
**Last updated:** [May 12, 2022, 8:30pm UTC](https://discourse.processing.org/t/restricted-rotation-next-to-a-wall/36687 "2022-05-12T20:30:24Z")

</div>

Currently I am trying to find a way to calculate restricted random rotation close to a wall/two walls/three walls. What I do, and it works, is to find the sector of the rotation circle, which is excluded, by trigonometr…

---

## [Trying to check if a font can display certain glyphs](https://discourse.processing.org/t/trying-to-check-if-a-font-can-display-certain-glyphs/36795)

<div class="topic-metadata">

**Author:** [@disuye](https://discourse.processing.org/u/disuye)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 7:58pm UTC](https://discourse.processing.org/t/trying-to-check-if-a-font-can-display-certain-glyphs/36795 "2022-05-12T19:58:30Z")

</div>

Regarding the code below, I’m having difficulties using font.canDisplayUpTo() – I think it’s an issue with the URL being passed to Font font =… ? The fonts are all fine, so it’s something to do with how Font is being fed…

---

## ['NSWindow' ERROR](https://discourse.processing.org/t/nswindow-error/36848)

<div class="topic-metadata">

**Author:** [@mar](https://discourse.processing.org/u/mar)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 3:01pm UTC](https://discourse.processing.org/t/nswindow-error/36848 "2022-05-12T15:01:30Z")

</div>

Hello! I have export my sketch as app for MacOS from P3.5.4 java in macOS 13.6, where it runs well. When I I try to run the app on macOS 12 doesn’t works, it comes the follow ERROR: Application Specific Information: …

---

## [Can i send someone my code and they can explain why i have an error and how to fix it](https://discourse.processing.org/t/can-i-send-someone-my-code-and-they-can-explain-why-i-have-an-error-and-how-to-fix-it/36845)

<div class="topic-metadata">

**Author:** [@anonymous-54](https://discourse.processing.org/u/anonymous-54)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 1:31pm UTC](https://discourse.processing.org/t/can-i-send-someone-my-code-and-they-can-explain-why-i-have-an-error-and-how-to-fix-it/36845 "2022-05-12T13:31:10Z")

</div>

can i send someone my code and they can explain why i have an error and how to fix it

---

## [Dino chrome game](https://discourse.processing.org/t/dino-chrome-game/36836)

<div class="topic-metadata">

**Author:** [@rmznam02](https://discourse.processing.org/u/rmznam02)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 11:21am UTC](https://discourse.processing.org/t/dino-chrome-game/36836 "2022-05-12T11:21:44Z")

</div>

Hey, everyone. I have a school project and I got this code, I need help to comment, I have to deliver it today before midnight, thanks for your help. rmznam@outlook.com

---

## [How to have lines infront of moving object](https://discourse.processing.org/t/how-to-have-lines-infront-of-moving-object/36839)

<div class="topic-metadata">

**Author:** [@anonymous-54](https://discourse.processing.org/u/anonymous-54)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 8:22am UTC](https://discourse.processing.org/t/how-to-have-lines-infront-of-moving-object/36839 "2022-05-12T08:22:24Z")

</div>

i made the object stop/get stuck at a line top right of the screen how do i make the lines appear above my moving object which is controlled by mousex and mousey

---

## [OpenJDK goes to backgroundtask after closing the application window](https://discourse.processing.org/t/openjdk-goes-to-backgroundtask-after-closing-the-application-window/36841)

<div class="topic-metadata">

**Author:** [@axel223](https://discourse.processing.org/u/axel223)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 7:35am UTC](https://discourse.processing.org/t/openjdk-goes-to-backgroundtask-after-closing-the-application-window/36841 "2022-05-12T07:35:45Z")

</div>

When i open my exported processing application it all works fine. The OpenJDK Platform binary is shown in my tasks. After closing, the OpenJDK Platform binary is not terminated but moved to the backgroundtasks and is st…

---

## [How to use data from accelerometer to control camera and perspective in Processing](https://discourse.processing.org/t/how-to-use-data-from-accelerometer-to-control-camera-and-perspective-in-processing/36799)

<div class="topic-metadata">

**Author:** [@EllenYang](https://discourse.processing.org/u/EllenYang)\
**Replies:** 42\
**Last updated:** [May 12, 2022, 2:21am UTC](https://discourse.processing.org/t/how-to-use-data-from-accelerometer-to-control-camera-and-perspective-in-processing/36799 "2022-05-12T02:21:37Z")

</div>

I’m new to the forum, I wonder if anyone can help me to use data from accelerometer to control camera and perspective in processing? I’m making a 3D model of a galaxy and wish to use accelerometer to control the perspect…

---

## [SerialEvent not called (after the first 100-300 times)](https://discourse.processing.org/t/serialevent-not-called-after-the-first-100-300-times/36832)

<div class="topic-metadata">

**Author:** [@jango\_fx](https://discourse.processing.org/u/jango_fx)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 11:09pm UTC](https://discourse.processing.org/t/serialevent-not-called-after-the-first-100-300-times/36832 "2022-05-11T23:09:02Z")

</div>

is it me? or Processing 4? or macOS 12? i’m trying to read serial data not in draw() but in serialEvent() – which worked fine in the past. but serialEvent() is only called about 100-300 times in the very first seconds …

---

## [Can't save current frame as SVG](https://discourse.processing.org/t/cant-save-current-frame-as-svg/36703)

<div class="topic-metadata">

**Author:** [@antoniorumen](https://discourse.processing.org/u/antoniorumen)\
**Replies:** 5\
**Last updated:** [May 11, 2022, 9:18pm UTC](https://discourse.processing.org/t/cant-save-current-frame-as-svg/36703 "2022-05-11T21:18:11Z")

</div>

I have tried to find a solution to my issue, but couldn’t. I am using Processing 4 with Python Mode. I am trying to save the current frame as SVG and exit by pressing the “s” key. However, I am getting the following err…

---

## [Overlaying webcam input (transparent way )on top of WebGL canvas?](https://discourse.processing.org/t/overlaying-webcam-input-transparent-way-on-top-of-webgl-canvas/36833)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 7:54pm UTC](https://discourse.processing.org/t/overlaying-webcam-input-transparent-way-on-top-of-webgl-canvas/36833 "2022-05-11T19:54:47Z")

</div>

Hi, I have been trying to overlay webcam feed on top of a webGL canvas having cube shapes . In the sketch The cube originates from -z value and moves towards the user When i dont have the video/ webcam element overlaid…

---

## [Is it possible to use GStreamer v 1.20.2 instead of GStreamer 1.16.2 the P4 video library (4.2.1)? How could one do this?](https://discourse.processing.org/t/is-it-possible-to-use-gstreamer-v-1-20-2-instead-of-gstreamer-1-16-2-the-p4-video-library-4-2-1-how-could-one-do-this/36829)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 6:07pm UTC](https://discourse.processing.org/t/is-it-possible-to-use-gstreamer-v-1-20-2-instead-of-gstreamer-1-16-2-the-p4-video-library-4-2-1-how-could-one-do-this/36829 "2022-05-11T18:07:53Z")

</div>

Does anyone know if one can use GStreamer v 1.20.2 instead of GStreamer 1.16.2 for Processing 4.08b? (video library 4.2.1). https://gstreamer.freedesktop.org/releases/1.20/#1.20.2 bugfixes include: \*\*\* nvh264dec, nvh26…

---

## [Movie Library Reverse Video Looping Example](https://discourse.processing.org/t/movie-library-reverse-video-looping-example/11963)

<div class="topic-metadata">

**Author:** [@Arne](https://discourse.processing.org/u/Arne)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 5:39pm UTC](https://discourse.processing.org/t/movie-library-reverse-video-looping-example/11963 "2022-05-11T17:39:46Z")

</div>

Hi guys, Have been playing around with reverse video playback and looping. Found the following notes: check that video is actually available and playing before calling mov.jump() avoid setting speed = 0.0 (gstreamer …

---

## [Why is the program ignoring my second for- loop?](https://discourse.processing.org/t/why-is-the-program-ignoring-my-second-for-loop/36819)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 2:42pm UTC](https://discourse.processing.org/t/why-is-the-program-ignoring-my-second-for-loop/36819 "2022-05-11T14:42:23Z")

</div>

Please help me, im a beginner in Processing. Before I’ll tell my problem I’ll twll you about the programm so u wont get confused. I want to create 2 arrows (left and right) they need to be next to eachother. I need 4 r…

---

## [Calling .loadPixels() on a video freezes the feed?](https://discourse.processing.org/t/calling-loadpixels-on-a-video-freezes-the-feed/36822)

<div class="topic-metadata">

**Author:** [@jaschanarveson](https://discourse.processing.org/u/jaschanarveson)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 2:24pm UTC](https://discourse.processing.org/t/calling-loadpixels-on-a-video-freezes-the-feed/36822 "2022-05-11T14:24:56Z")

</div>

I have a sketch where I’m getting a video feed with createCapture(VIDEO), then toggling between states where I either see the straight feed or I pixelate the image. Here’s what’s happening: run the sketch, feed works …

---

## [Why Serial is not printing data from Arduino accelerometer in Processing](https://discourse.processing.org/t/why-serial-is-not-printing-data-from-arduino-accelerometer-in-processing/36809)

<div class="topic-metadata">

**Author:** [@EllenYang00](https://discourse.processing.org/u/EllenYang00)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 11:03am UTC](https://discourse.processing.org/t/why-serial-is-not-printing-data-from-arduino-accelerometer-in-processing/36809 "2022-05-11T11:03:17Z")

</div>

I imported Serial library in my Processing and connect it to the Arduino accelerometer. Now the console is only printing my port’s name. I wish it to print out the acceleration on xyz as well. Can someone help me? I will…

---

## [All datas on my mac book pro where deleted by closing the Processing app](https://discourse.processing.org/t/all-datas-on-my-mac-book-pro-where-deleted-by-closing-the-processing-app/36801)

<div class="topic-metadata">

**Author:** [@bebmo](https://discourse.processing.org/u/bebmo)\
**Replies:** 0\
**Last updated:** [May 10, 2022, 3:53pm UTC](https://discourse.processing.org/t/all-datas-on-my-mac-book-pro-where-deleted-by-closing-the-processing-app/36801 "2022-05-10T15:53:07Z")

</div>

I work with an mac book pro M1, 12.3.1 Monterey After using the processing app, I close the app and in this moment all my datas are deleted. also the back ups in the i cloud is deleted. Also on the mac book memory ther…

---

## [How to move an object diagonally](https://discourse.processing.org/t/how-to-move-an-object-diagonally/36807)

<div class="topic-metadata">

**Author:** [@anonymous-54](https://discourse.processing.org/u/anonymous-54)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 1:51am UTC](https://discourse.processing.org/t/how-to-move-an-object-diagonally/36807 "2022-05-11T01:51:20Z")

</div>

i would like to move an object diagonally. right now it moves up and leaves the screen with just void mousepressed, mousedragged and mousereleased

---

## [Beads - Add timeout when an audio ends](https://discourse.processing.org/t/beads-add-timeout-when-an-audio-ends/36717)

<div class="topic-metadata">

**Author:** [@Alumno51](https://discourse.processing.org/u/Alumno51)\
**Replies:** 1\
**Last updated:** [May 10, 2022, 8:58pm UTC](https://discourse.processing.org/t/beads-add-timeout-when-an-audio-ends/36717 "2022-05-10T20:58:27Z")

</div>

Hello everyone, I want the audio to be reproduced in loop, but between loops, I need a timeout. I tried coding “delay(1000);” but it influences the rest of the code. In case anyone is wondering what I want to do: I wa…

---

## [Homework and assignment ideas](https://discourse.processing.org/t/homework-and-assignment-ideas/33497)

<div class="topic-metadata">

**Author:** [@Neandroid](https://discourse.processing.org/u/Neandroid)\
**Replies:** 4\
**Last updated:** [May 10, 2022, 5:19pm UTC](https://discourse.processing.org/t/homework-and-assignment-ideas/33497 "2022-05-10T17:19:43Z")

</div>

Hi all, I’m teaching beginner programming through p5js to art students. I’ve been struggling to keep the homework assignments engaging while still building solid understanding of programming and javascript - not just p5…

---

## [Video playback if](https://discourse.processing.org/t/video-playback-if/36788)

<div class="topic-metadata">

**Author:** [@zrshzrsh](https://discourse.processing.org/u/zrshzrsh)\
**Replies:** 2\
**Last updated:** [May 10, 2022, 2:10pm UTC](https://discourse.processing.org/t/video-playback-if/36788 "2022-05-10T14:10:42Z")

</div>

Hi all. I’m trying to use my Arduino Serial to control video play in Processing. What I want to achieve is video play when value(Arduino) is higher than 2. And when not (lower than 2) I wanted my video to playback(rew…

---

## [P5 library - YOLO / Web works well, but does not work in p5](https://discourse.processing.org/t/p5-library-yolo-web-works-well-but-does-not-work-in-p5/36790)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [May 10, 2022, 6:35am UTC](https://discourse.processing.org/t/p5-library-yolo-web-works-well-but-does-not-work-in-p5/36790 "2022-05-10T06:35:39Z")

</div>

\[p5 library - YOLO / Web works well, but does not work in p5.\] hello. Source code running on the web https://editor.p5js.org/ml5/sketches/ObjectDetector\_YOLO\_single\_image It works fine. If you copy the WEB source…

---

## [How to get Processing library path?](https://discourse.processing.org/t/how-to-get-processing-library-path/36707)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 6\
**Last updated:** [May 10, 2022, 11:29am UTC](https://discourse.processing.org/t/how-to-get-processing-library-path/36707 "2022-05-10T11:29:55Z")

</div>

As per the title, how can I get the path of the Processing libraries folder from within my Processing app. Is there some default variable?

---

## [surface.setResizable() does not work as expected in child applet using JAVA2D renderer](https://discourse.processing.org/t/surface-setresizable-does-not-work-as-expected-in-child-applet-using-java2d-renderer/36721)

<div class="topic-metadata">

**Author:** [@Putzlicht](https://discourse.processing.org/u/Putzlicht)\
**Replies:** 5\
**Last updated:** [May 9, 2022, 9:55pm UTC](https://discourse.processing.org/t/surface-setresizable-does-not-work-as-expected-in-child-applet-using-java2d-renderer/36721 "2022-05-09T21:55:21Z")

</div>

Hello, i found a nasty little thing which makes some trouble. But I don’t want to call it a bug because I don’t know where it’s coming from :wink: It would be very helpful to me if someone could explain it. The follo…

---

## [Aspect ratio screen resizing](https://discourse.processing.org/t/aspect-ratio-screen-resizing/19538)

<div class="topic-metadata">

**Author:** [@s6277](https://discourse.processing.org/u/s6277)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 7:09pm UTC](https://discourse.processing.org/t/aspect-ratio-screen-resizing/19538 "2022-05-09T19:09:48Z")

</div>

Hey, I’m really struggling aspect ratio on processing, i want to be able to resize the screen and when i resize it the object inside is also resized according to the screen. I have currently used: surface.setResizable(t…

---

## [Trying to convert this example into an OOP](https://discourse.processing.org/t/trying-to-convert-this-example-into-an-oop/36776)

<div class="topic-metadata">

**Author:** [@Whell](https://discourse.processing.org/u/Whell)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 12:26pm UTC](https://discourse.processing.org/t/trying-to-convert-this-example-into-an-oop/36776 "2022-05-09T12:26:53Z")

</div>

Hi, i’m trying to remake this example of Nature of Code (code 1) but instead of drawing in the draw loop, i’m trying to make it as an Object Oriented Program (code 2), however, the behavior of the object is way off. I ki…

---

## [Tweak mode not working with OpenSimplexNoise.java](https://discourse.processing.org/t/tweak-mode-not-working-with-opensimplexnoise-java/36494)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 3\
**Last updated:** [May 9, 2022, 8:30am UTC](https://discourse.processing.org/t/tweak-mode-not-working-with-opensimplexnoise-java/36494 "2022-05-09T08:30:18Z")

</div>

Hello, For me Processing’s Tweak Mode doesn’t seem to work together with Kurt Spencer’s OpenSimplex noise class. Whenever I use the Shift+Command+T key-combination to enter Tweak Mode I get the following error: java.la…

---

## [Repeat the same random positions of ellipses after n seconds](https://discourse.processing.org/t/repeat-the-same-random-positions-of-ellipses-after-n-seconds/36771)

<div class="topic-metadata">

**Author:** [@celinewassmer](https://discourse.processing.org/u/celinewassmer)\
**Replies:** 1\
**Last updated:** [May 8, 2022, 8:19pm UTC](https://discourse.processing.org/t/repeat-the-same-random-positions-of-ellipses-after-n-seconds/36771 "2022-05-08T20:19:20Z")

</div>

Hi there! I’m workiung with the following code in p5js to make an animation of ellipses (raindrops). In the end I want to loop my video (screen recording). So the positions of the ellipses have to be in the same positio…

---

## [Cannot Export DXF from PWindow?](https://discourse.processing.org/t/cannot-export-dxf-from-pwindow/36767)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 3\
**Last updated:** [May 8, 2022, 12:43pm UTC](https://discourse.processing.org/t/cannot-export-dxf-from-pwindow/36767 "2022-05-08T12:43:53Z")

</div>

Hallo. I have the following problem. In a second window of my sketch that i use for previewing in 3d, i have a set of pshapes drawn in 3d space, but i cannot get them to be exported as dxf. Actually, nothing is exporte…

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

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