# Latest

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

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

**Page:** 63

---

## [Serial read() Arduino](https://discourse.processing.org/t/serial-read-arduino/42689)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 7\
**Last updated:** [September 2, 2023, 7:47am UTC](https://discourse.processing.org/t/serial-read-arduino/42689 "2023-09-02T07:47:21Z")

</div>

Hi! I have successfully established a Serial connection from Arduino to Processing using the read()-function (read() / Libraries / Processing.org). This only returns numbers between 0 and 255 though and I was wondering …

---

## [Texture() using image. Not working on Android Mode](https://discourse.processing.org/t/texture-using-image-not-working-on-android-mode/42684)

<div class="topic-metadata">

**Author:** [@Isaidtrader](https://discourse.processing.org/u/Isaidtrader)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 3:10pm UTC](https://discourse.processing.org/t/texture-using-image-not-working-on-android-mode/42684 "2023-08-31T15:10:50Z")

</div>

I want to create “Pixel Art Games” for Android. In Java Mode it worked (even I could rotate the image using the P2D \> loadImage() \> beginShape() \> texture() \> vertex()… ), but when I upscaled the image using vertex()… it…

---

## [Does serialEvent read data at a constant rate?](https://discourse.processing.org/t/does-serialevent-read-data-at-a-constant-rate/42661)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 9:18am UTC](https://discourse.processing.org/t/does-serialevent-read-data-at-a-constant-rate/42661 "2023-08-31T09:18:18Z")

</div>

Hi, I am trying to measure the rate at which the void serialEvent (Serial myPort) function reads data. The way I am doing this is as follows: void serialEvent (Serial myPort) { time\_prev1 = time\_now1; time\_now1 = mi…

---

## [Time displacement / slit-scan webcam looping issue](https://discourse.processing.org/t/time-displacement-slit-scan-webcam-looping-issue/42681)

<div class="topic-metadata">

**Author:** [@codecduck](https://discourse.processing.org/u/codecduck)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 12:03am UTC](https://discourse.processing.org/t/time-displacement-slit-scan-webcam-looping-issue/42681 "2023-08-31T00:03:26Z")

</div>

I have this effect on the webcam that is creating a delayed portion that grows from bottom to top. I’m pretty beginner so I don’t know where to start. I’ve been trying to get it to just continually have the slit-scan eff…

---

## [Sketch working in Editor by not on hosted website :(](https://discourse.processing.org/t/sketch-working-in-editor-by-not-on-hosted-website/42679)

<div class="topic-metadata">

**Author:** [@calfish](https://discourse.processing.org/u/calfish)\
**Replies:** 1\
**Last updated:** [August 30, 2023, 9:05pm UTC](https://discourse.processing.org/t/sketch-working-in-editor-by-not-on-hosted-website/42679 "2023-08-30T21:05:01Z")

</div>

Hello, I have a sketch that is working well in the editor but won’t work on my site after I download it. I have been troubleshooting a bunch but have had no luck. I want to use sound assets larger than 5mb which is why…

---

## [P3D not working anymore](https://discourse.processing.org/t/p3d-not-working-anymore/42678)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 0\
**Last updated:** [August 30, 2023, 10:08am UTC](https://discourse.processing.org/t/p3d-not-working-anymore/42678 "2023-08-30T10:08:50Z")

</div>

The P3D renderer is acting really strangely all of a sudden, probably since I updated Processing to its latest version (4.3)? I’m running it on a Mac Intel, OS Ventura 13.4.1. Anyone experiencing problems as well?

---

## [Special char from keyboard?](https://discourse.processing.org/t/special-char-from-keyboard/42673)

<div class="topic-metadata">

**Author:** [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Replies:** 0\
**Last updated:** [August 29, 2023, 12:28pm UTC](https://discourse.processing.org/t/special-char-from-keyboard/42673 "2023-08-29T12:28:53Z")

</div>

How to get special characters from keyboard android processing?

---

## [How I Tackled Multi Threading For Performance Gain](https://discourse.processing.org/t/how-i-tackled-multi-threading-for-performance-gain/42663)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 10:24pm UTC](https://discourse.processing.org/t/how-i-tackled-multi-threading-for-performance-gain/42663 "2023-08-28T22:24:18Z")

</div>

Hi every one, I wanted to share with you guys how I managed to speed up my code considerably with multi threading. Hopefully some one can use it to his benefit. It turns out that you can call a function from different c…

---

## [MPU6050 accelerometer double integration doesn't work](https://discourse.processing.org/t/mpu6050-accelerometer-double-integration-doesnt-work/42654)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 8:55pm UTC](https://discourse.processing.org/t/mpu6050-accelerometer-double-integration-doesnt-work/42654 "2023-08-28T20:55:25Z")

</div>

Hi everyone! Is there anyone here who has experience in integrating the MPU6050 twice to get the displacement? I have worked on it for months, but without any result. After reading in different forums that a very small …

---

## [Is there an integrated function to get the sign of a number?](https://discourse.processing.org/t/is-there-an-integrated-function-to-get-the-sign-of-a-number/42658)

<div class="topic-metadata">

**Author:** [@1qayxsw2](https://discourse.processing.org/u/1qayxsw2)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 8:10pm UTC](https://discourse.processing.org/t/is-there-an-integrated-function-to-get-the-sign-of-a-number/42658 "2023-08-28T20:10:10Z")

</div>

Hi all, I am probably missing something basic, but I cannot directly solve it by myself. My question is about a function to return the sign of a given number, e.g.: sign(-42) should return -1, sign(42) should return 1…

---

## [Exported processing executable doesn't start from command line](https://discourse.processing.org/t/exported-processing-executable-doesnt-start-from-command-line/42659)

<div class="topic-metadata">

**Author:** [@f.damien12](https://discourse.processing.org/u/f.damien12)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 7:54pm UTC](https://discourse.processing.org/t/exported-processing-executable-doesnt-start-from-command-line/42659 "2023-08-28T19:54:44Z")

</div>

Hello I made a tool with processing I want to start from Windows command line. It works when I set the current working directory to the .exe location, and then start it by typing its name: cd C:\\path\\to\\executable\\ fi…

---

## [Permissions on an Android device](https://discourse.processing.org/t/permissions-on-an-android-device/42655)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 7:15pm UTC](https://discourse.processing.org/t/permissions-on-an-android-device/42655 "2023-08-28T19:15:35Z")

</div>

Hi all, I’m trying to understand which permissions I need to read/write a .txt or .csv file. As well as, the permissions needed to load and play a music file. Either on internal and external storage. Any advice/thoughts…

---

## [A little meditation on empathy](https://discourse.processing.org/t/a-little-meditation-on-empathy/42656)

<div class="topic-metadata">

**Author:** [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Replies:** 0\
**Last updated:** [August 27, 2023, 8:54pm UTC](https://discourse.processing.org/t/a-little-meditation-on-empathy/42656 "2023-08-27T20:54:31Z")

</div>

Hello! Some friends and I hosted a community art assignment last night at our local arts center. I wrote the software for the 3D painting app and projection mapping system using three.js, p5.js, and py5. The source code…

---

## [Renderer faster than JavaFX 2D](https://discourse.processing.org/t/renderer-faster-than-javafx-2d/42648)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 21\
**Last updated:** [August 26, 2023, 4:54pm UTC](https://discourse.processing.org/t/renderer-faster-than-javafx-2d/42648 "2023-08-26T16:54:55Z")

</div>

Hi everyone! Is there any renderer that is faster than JavaFX 2D? Thanks in advance, MrImskiy

---

## [Help! In FxHash Code comes up rather than image when trying to mint a token](https://discourse.processing.org/t/help-in-fxhash-code-comes-up-rather-than-image-when-trying-to-mint-a-token/42639)

<div class="topic-metadata">

**Author:** [@ghstvbng](https://discourse.processing.org/u/ghstvbng)\
**Replies:** 2\
**Last updated:** [August 25, 2023, 2:44pm UTC](https://discourse.processing.org/t/help-in-fxhash-code-comes-up-rather-than-image-when-trying-to-mint-a-token/42639 "2023-08-25T14:44:06Z")

</div>

Hello all, Maybe someone can help me out - I am trying to mint a token and it works fine in the sandbox but in the actual mint all that comes up is the written code. I appreciate the help! here is the code including t…

---

## [Tried to remove the top bar](https://discourse.processing.org/t/tried-to-remove-the-top-bar/42647)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 8:48am UTC](https://discourse.processing.org/t/tried-to-remove-the-top-bar/42647 "2023-08-24T08:48:05Z")

</div>

I tried to remove the top bar with chatGpt but sadly i cant get it to work and i cant find anything in the forums! import processing.javafx.\*; import javax.swing.JFrame; import processing.core.PApplet; import processing…

---

## [Is there an official Processing Discord?](https://discourse.processing.org/t/is-there-an-official-processing-discord/42631)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 4\
**Last updated:** [August 24, 2023, 8:45am UTC](https://discourse.processing.org/t/is-there-an-official-processing-discord/42631 "2023-08-24T08:45:12Z")

</div>

Is there a processing discord server?

---

## [Calculating elapsed microseconds](https://discourse.processing.org/t/calculating-elapsed-microseconds/42646)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 3:54am UTC](https://discourse.processing.org/t/calculating-elapsed-microseconds/42646 "2023-08-24T03:54:12Z")

</div>

Hi there! I am measuring the elapsed time of a code in a for-loop in draw(): void draw(){ for(byte i = 0; i \< 10; i++){ time\_prev = millis(); //code time\_now = millis(); deltaT = time\_now - …

---

## [Did I find a bug?](https://discourse.processing.org/t/did-i-find-a-bug/42645)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 3\
**Last updated:** [August 23, 2023, 9:46pm UTC](https://discourse.processing.org/t/did-i-find-a-bug/42645 "2023-08-23T21:46:45Z")

</div>

I was trying to work my way around the maximum size of an array (2147483647) when I came across this anomaly : void setup() { long i = 999\_999\_967L; println(int(i)); } results in : 1000000000 The value of the long…

---

## [Help with Minim volume & other features](https://discourse.processing.org/t/help-with-minim-volume-other-features/42636)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 11:36pm UTC](https://discourse.processing.org/t/help-with-minim-volume-other-features/42636 "2023-08-22T23:36:33Z")

</div>

When i try to change the volume it says “Volume is not supported.” and i want to change the speed of the song! Is that possible?

---

## [Tuio framework and movie with alpha channel](https://discourse.processing.org/t/tuio-framework-and-movie-with-alpha-channel/42644)

<div class="topic-metadata">

**Author:** [@mrblade](https://discourse.processing.org/u/mrblade)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 2:42pm UTC](https://discourse.processing.org/t/tuio-framework-and-movie-with-alpha-channel/42644 "2023-08-22T14:42:18Z")

</div>

hi, i am new in this world. i use Tuio library. when a marker goes out then an effect starts in a video loop. A video flip and an addition of a mask with alpha channel. But this is not seen. I think it’s a problem on: …

---

## [Selecting a serial port using a configuration file; a quick tip](https://discourse.processing.org/t/selecting-a-serial-port-using-a-configuration-file-a-quick-tip/42642)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 1:23pm UTC](https://discourse.processing.org/t/selecting-a-serial-port-using-a-configuration-file-a-quick-tip/42642 "2023-08-22T13:23:51Z")

</div>

I often see Processing code (for communication with e.g. Arduino) where the port is hard-coded. E.g. myPort = new Serial(this, Serial.list()\[0\], 9600); One thing that people don’t seem to realise is that the second pa…

---

## [Reflection on ellipse simulation](https://discourse.processing.org/t/reflection-on-ellipse-simulation/42155)

<div class="topic-metadata">

**Author:** [@nikosliapis](https://discourse.processing.org/u/nikosliapis)\
**Replies:** 5\
**Last updated:** [August 22, 2023, 1:06pm UTC](https://discourse.processing.org/t/reflection-on-ellipse-simulation/42155 "2023-08-22T13:06:31Z")

</div>

Hello Everyone. I’m trying to create a simulation for a ball bouncing in the inside surface of a ellipse. This is how far i’ve been, https://editor.p5js.org/nikosliapis2000/sketches/\_Yx-KgwLN I can’t find a way to ma…

---

## [Open Custom File with Processing?](https://discourse.processing.org/t/open-custom-file-with-processing/42637)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 10:54pm UTC](https://discourse.processing.org/t/open-custom-file-with-processing/42637 "2023-08-21T22:54:00Z")

</div>

Can i make a file called “file.banana” and programm processing to show it when choosing this dialog? and is it available on linux and windows? I want a way to klick the file, select open with BananaFileViewer or someth…

---

## [Triangular Pong for three players \[game\]](https://discourse.processing.org/t/triangular-pong-for-three-players-game/42548)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 25\
**Last updated:** [August 21, 2023, 4:42pm UTC](https://discourse.processing.org/t/triangular-pong-for-three-players-game/42548 "2023-08-21T16:42:48Z")

</div>

For no good reason, I want to make a triangular version of Pong so three walls, three paddles, one ball bouncing from the three paddles or going past a paddle and scoring. Should be fairly simple but enjoyably challengin…

---

## [The field PApplet.keyEvent is deprecated?](https://discourse.processing.org/t/the-field-papplet-keyevent-is-deprecated/42603)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 3\
**Last updated:** [August 21, 2023, 3:44pm UTC](https://discourse.processing.org/t/the-field-papplet-keyevent-is-deprecated/42603 "2023-08-21T15:44:01Z")

</div>

Does anybody know what this means?

---

## [Linux: Processing exits when creating a video.Movie if using P2D or P3D](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627)

<div class="topic-metadata">

**Author:** [@marton](https://discourse.processing.org/u/marton)\
**Replies:** 5\
**Last updated:** [August 21, 2023, 11:13am UTC](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627 "2023-08-21T11:13:43Z")

</div>

Hi, I’m trying to play a video using the official video library on Linux (openSUSE tumbleweed). I noticed the following: if I try to run a sketch with P2D or P3D, doing new Movie(this, ...) causes Processing to exit, se…

---

## [Landscape sound](https://discourse.processing.org/t/landscape-sound/42623)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 0\
**Last updated:** [August 19, 2023, 10:41am UTC](https://discourse.processing.org/t/landscape-sound/42623 "2023-08-19T10:41:58Z")

</div>

I made a small web “app” using p5.js! https://landschaft-sound.glitch.me/ When tapped, it scans the image and uses hue/brightness parameters to control parameters of a synth. It’s supposed to open max 5 synths but curr…

---

## [Trying to get a BLDC w/ ESC to work with my PS4 controller](https://discourse.processing.org/t/trying-to-get-a-bldc-w-esc-to-work-with-my-ps4-controller/42612)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 7\
**Last updated:** [August 18, 2023, 9:46pm UTC](https://discourse.processing.org/t/trying-to-get-a-bldc-w-esc-to-work-with-my-ps4-controller/42612 "2023-08-18T21:46:43Z")

</div>

This is my first post here, im running into trouble with my code and im not sure where im going wrong. I want to control a bldc motor with my ps4 controller, the dc motor is a Firma Spektrum 6000kv BLDC. When I run an ar…

---

## [Most performant and efficient way of saving data to a text file](https://discourse.processing.org/t/most-performant-and-efficient-way-of-saving-data-to-a-text-file/42605)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 11\
**Last updated:** [August 18, 2023, 5:32pm UTC](https://discourse.processing.org/t/most-performant-and-efficient-way-of-saving-data-to-a-text-file/42605 "2023-08-18T17:32:00Z")

</div>

Hi all! I have written this small piece of code to save data to a textfile: int time\_prev; int time\_now; int dt; StringBuilder save2Doc\_StringBuilder = new StringBuilder(); String\[\] save2Doc\_String = new String\[10000\]…

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

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