# Latest

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

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

**Page:** 133

---

## [How to import Minecraft data into Processing](https://discourse.processing.org/t/how-to-import-minecraft-data-into-processing/37290)

<div class="topic-metadata">

**Author:** [@remie92](https://discourse.processing.org/u/remie92)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 10:49am UTC](https://discourse.processing.org/t/how-to-import-minecraft-data-into-processing/37290 "2022-06-03T10:49:56Z")

</div>

Hello, I have got a question about minecraft and processing Recently I made a minecraft chatbot that could give responses to things said in a server, but the way I did it makes it so that I could only use chat, and not…

---

## [Text array and size with function](https://discourse.processing.org/t/text-array-and-size-with-function/37291)

<div class="topic-metadata">

**Author:** [@luciaromancanivell](https://discourse.processing.org/u/luciaromancanivell)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 10:03pm UTC](https://discourse.processing.org/t/text-array-and-size-with-function/37291 "2022-06-02T22:03:29Z")

</div>

Hello, I am trying to do this… And I have the following so far… how could I change the width depending on the word? so sorry for the many messages, thanks very much! var parrafo = "This is big and this small"; var …

---

## [How do I cycle/lerp between multiple colors](https://discourse.processing.org/t/how-do-i-cycle-lerp-between-multiple-colors/13441)

<div class="topic-metadata">

**Author:** [@laxaa](https://discourse.processing.org/u/laxaa)\
**Replies:** 17\
**Last updated:** [June 2, 2022, 5:13pm UTC](https://discourse.processing.org/t/how-do-i-cycle-lerp-between-multiple-colors/13441 "2022-06-02T17:13:20Z")

</div>

Hi I’m new to the world of Processing and I’ve turned to the community to get some help on a very specific issue I’ve been trying to solve. I’m creating a “BMP clock”( or a "circular BPM visualizer), so to speak, and I…

---

## [Loop with function](https://discourse.processing.org/t/loop-with-function/37261)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 5:13pm UTC](https://discourse.processing.org/t/loop-with-function/37261 "2022-06-02T17:13:16Z")

</div>

Howdy! I am trying to do a loop with these lines that I have created on function “brush” but I only can draw it once. Could you please tell me how repeat this line with a loop? void setup(){ size(1000,1000); backgrou…

---

## [Button connection from Arduino to Processing](https://discourse.processing.org/t/button-connection-from-arduino-to-processing/37192)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 7\
**Last updated:** [June 2, 2022, 5:00pm UTC](https://discourse.processing.org/t/button-connection-from-arduino-to-processing/37192 "2022-06-02T17:00:32Z")

</div>

Hi! I’m trying to connect a button from Arduino to visuals in Processing. Can’t get it to work. I’m very new to this so any help and explanations are welcome!! (Potmeter works fine) Here is the Processing code: import…

---

## [I'm new and I need help with arrays](https://discourse.processing.org/t/im-new-and-i-need-help-with-arrays/37281)

<div class="topic-metadata">

**Author:** [@JosepAlqueza](https://discourse.processing.org/u/JosepAlqueza)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 4:40pm UTC](https://discourse.processing.org/t/im-new-and-i-need-help-with-arrays/37281 "2022-06-02T16:40:41Z")

</div>

Hello everyone! I’m new to the world of programming and need help with arrays. I have to do a practice where I have a multidimensional array (attached image) where the first column appears the position X and the second …

---

## [Time based project](https://discourse.processing.org/t/time-based-project/37258)

<div class="topic-metadata">

**Author:** [@activegenius](https://discourse.processing.org/u/activegenius)\
**Replies:** 1\
**Last updated:** [June 1, 2022, 3:44am UTC](https://discourse.processing.org/t/time-based-project/37258 "2022-06-01T03:44:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am working on a music video project in processing in which I will have a song playing with animations that correspond to the lyrics. I’m wonde…

---

## [Can't load native code to bring windows to front using the absolute path](https://discourse.processing.org/t/cant-load-native-code-to-bring-windows-to-front-using-the-absolute-path/37218)

<div class="topic-metadata">

**Author:** [@fevalop](https://discourse.processing.org/u/fevalop)\
**Replies:** 3\
**Last updated:** [June 1, 2022, 12:20am UTC](https://discourse.processing.org/t/cant-load-native-code-to-bring-windows-to-front-using-the-absolute-path/37218 "2022-06-01T00:20:46Z")

</div>

please format code with \</\> button \* homework policy \* asking questions

---

## [Text drawing seems to be happening out of order, compared to a filter(BLUR)](https://discourse.processing.org/t/text-drawing-seems-to-be-happening-out-of-order-compared-to-a-filter-blur/37224)

<div class="topic-metadata">

**Author:** [@interstar](https://discourse.processing.org/u/interstar)\
**Replies:** 9\
**Last updated:** [May 31, 2022, 11:26pm UTC](https://discourse.processing.org/t/text-drawing-seems-to-be-happening-out-of-order-compared-to-a-filter-blur/37224 "2022-05-31T23:26:36Z")

</div>

I’m trying to generate a static image with a blurred background and some unblurred text in front of it. Here’s my code void drawIt() { background(0); strokeWeight(4); pushMatrix(); for (int j=0; j\<20…

---

## [Same code, differents outputs (using p5.editor)](https://discourse.processing.org/t/same-code-differents-outputs-using-p5-editor/37257)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 6:38pm UTC](https://discourse.processing.org/t/same-code-differents-outputs-using-p5-editor/37257 "2022-05-31T18:38:53Z")

</div>

Hello! i want to ask why i get two differents outputs using the same code on my browser, and p5.editor. Coordinates seems to be scale in some way this is the code: browser: p5.editor

---

## [Confusing Type Error](https://discourse.processing.org/t/confusing-type-error/37253)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 2\
**Last updated:** [May 31, 2022, 5:30pm UTC](https://discourse.processing.org/t/confusing-type-error/37253 "2022-05-31T17:30:45Z")

</div>

I am working on a project which is a game when a player circle goes around and eats other circles. I feel like I am really close to having everything working but when it gets down to the last circle remaining, I get a ty…

---

## [How can I have my background change colors when I move my mouse across it?](https://discourse.processing.org/t/how-can-i-have-my-background-change-colors-when-i-move-my-mouse-across-it/10608)

<div class="topic-metadata">

**Author:** [@karatecake](https://discourse.processing.org/u/karatecake)\
**Replies:** 15\
**Last updated:** [May 31, 2022, 3:01pm UTC](https://discourse.processing.org/t/how-can-i-have-my-background-change-colors-when-i-move-my-mouse-across-it/10608 "2022-05-31T15:01:31Z")

</div>

I’m trying to make a background that changes color when the mouse moves around the screen. I’ve found some code that works but when I try pasting the working parts into my code it stops working The working parts: fill(…

---

## [Word in array counter](https://discourse.processing.org/t/word-in-array-counter/37238)

<div class="topic-metadata">

**Author:** [@luciaromancanivell](https://discourse.processing.org/u/luciaromancanivell)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 12:41pm UTC](https://discourse.processing.org/t/word-in-array-counter/37238 "2022-05-31T12:41:52Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, I am getting a bit confused here… I need to count how many times the word imagine shows up in the array but I do not know how to create t…

---

## [createFont() – how to forcefully remove unused fonts from memory?](https://discourse.processing.org/t/createfont-how-to-forcefully-remove-unused-fonts-from-memory/37237)

<div class="topic-metadata">

**Author:** [@disuye](https://discourse.processing.org/u/disuye)\
**Replies:** 7\
**Last updated:** [May 31, 2022, 9:24am UTC](https://discourse.processing.org/t/createfont-how-to-forcefully-remove-unused-fonts-from-memory/37237 "2022-05-31T09:24:40Z")

</div>

(I’ll share MRE in a follow-up post, trying to think how best to summarise my code) I have an art project which runs the createFont() function several times per frame – pulling random TTF/OTF files out of a folder conta…

---

## [Sketch works in p3 but not p4](https://discourse.processing.org/t/sketch-works-in-p3-but-not-p4/35060)

<div class="topic-metadata">

**Author:** [@degendev](https://discourse.processing.org/u/degendev)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 9:09am UTC](https://discourse.processing.org/t/sketch-works-in-p3-but-not-p4/35060 "2022-05-31T09:09:22Z")

</div>

I had a sketch a wrote in processing.py (3 (the non blue logo version)) that ran on my older 2017 mbp I also have a 2021 mbp (m1) with processing.py (4 (the blue one)) running on it. For some reason my sketch file onl…

---

## [Find absolute path of the libraries folder from within a library?](https://discourse.processing.org/t/find-absolute-path-of-the-libraries-folder-from-within-a-library/37210)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 6:35am UTC](https://discourse.processing.org/t/find-absolute-path-of-the-libraries-folder-from-within-a-library/37210 "2022-05-31T06:35:10Z")

</div>

I’m currenty writing a library for using Quantum annealers with processing. However run programs on these I need my library to run python scripts and for that I first need my library to be able to find them. Is there a…

---

## [Celular automata won't wrap around the window](https://discourse.processing.org/t/celular-automata-wont-wrap-around-the-window/37229)

<div class="topic-metadata">

**Author:** [@rafalou38](https://discourse.processing.org/u/rafalou38)\
**Replies:** 1\
**Last updated:** [May 31, 2022, 6:01am UTC](https://discourse.processing.org/t/celular-automata-wont-wrap-around-the-window/37229 "2022-05-31T06:01:47Z")

</div>

I have partially implemented the Huegene cellular automata with processing, but I still have an issue: it wraps around the screen but stops just after, and I have no idea why code: color\[\]\[\] grid; int MUTATION\_RATE = …

---

## [How to rotate view (cube interior) with mobile device gyroscope? - Issues with interaction](https://discourse.processing.org/t/how-to-rotate-view-cube-interior-with-mobile-device-gyroscope-issues-with-interaction/37227)

<div class="topic-metadata">

**Author:** [@jimmy](https://discourse.processing.org/u/jimmy)\
**Replies:** 0\
**Last updated:** [May 30, 2022, 1:59pm UTC](https://discourse.processing.org/t/how-to-rotate-view-cube-interior-with-mobile-device-gyroscope-issues-with-interaction/37227 "2022-05-30T13:59:31Z")

</div>

I’ve been working on a demo in P5.js that would display the inside of a cube with rotation followed by the rotation of a mobile device. We could call this poor-mans-AR, as I don’t need a camera feed, just the rotation. T…

---

## [Export a processing app from IntelliJ IDEA](https://discourse.processing.org/t/export-a-processing-app-from-intellij-idea/37203)

<div class="topic-metadata">

**Author:** [@LucaP](https://discourse.processing.org/u/LucaP)\
**Replies:** 4\
**Last updated:** [May 30, 2022, 1:57pm UTC](https://discourse.processing.org/t/export-a-processing-app-from-intellij-idea/37203 "2022-05-30T13:57:31Z")

</div>

Hi, Is it possible to export a processing app made in IntelliJ IDEA? I have managed to get it work -ish- with making a jar file export module in IntelliJ and uploading this to my linux environment but it has some weird…

---

## [How can find the distance between two 3D objects in a 3D space?](https://discourse.processing.org/t/how-can-find-the-distance-between-two-3d-objects-in-a-3d-space/37222)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 12:09pm UTC](https://discourse.processing.org/t/how-can-find-the-distance-between-two-3d-objects-in-a-3d-space/37222 "2022-05-30T12:09:06Z")

</div>

Hello genius! I’m a beginner and I need your help. How can I find the distance between two 3D objects in a 3D space?

---

## [I need help at my beginner idle game](https://discourse.processing.org/t/i-need-help-at-my-beginner-idle-game/26432)

<div class="topic-metadata">

**Author:** [@Dialias](https://discourse.processing.org/u/Dialias)\
**Replies:** 4\
**Last updated:** [May 30, 2022, 11:53am UTC](https://discourse.processing.org/t/i-need-help-at-my-beginner-idle-game/26432 "2022-05-30T11:53:32Z")

</div>

Hey there, iam a beginner at coding and i wanted to code a clicker game but then this text showed up in the console: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at processing.core.PApplet.r…

---

## [Multidimensional array](https://discourse.processing.org/t/multidimensional-array/37212)

<div class="topic-metadata">

**Author:** [@mvb](https://discourse.processing.org/u/mvb)\
**Replies:** 3\
**Last updated:** [May 30, 2022, 11:21am UTC](https://discourse.processing.org/t/multidimensional-array/37212 "2022-05-30T11:21:02Z")

</div>

I have the following code and I want to achieve the final picture. Can anyone help me to complete it? (this is not homework or anything like that, I am learning at home through examples.) float width\_columns, height\_r…

---

## [Can I stop the animation but still change amount of tiles?](https://discourse.processing.org/t/can-i-stop-the-animation-but-still-change-amount-of-tiles/37209)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 4:32am UTC](https://discourse.processing.org/t/can-i-stop-the-animation-but-still-change-amount-of-tiles/37209 "2022-05-30T04:32:52Z")

</div>

Can I, in this example of code, somehow stop the animation of the tiles changing but still be able to change the amount of tiles (with an Arduino pot)? If yes, how? Right now, when I stop the loop, the ability to chang…

---

## [Synth and .mp3 notes play twice on Android-nowhere else](https://discourse.processing.org/t/synth-and-mp3-notes-play-twice-on-android-nowhere-else/37214)

<div class="topic-metadata">

**Author:** [@HFredrickson](https://discourse.processing.org/u/HFredrickson)\
**Replies:** 0\
**Last updated:** [May 29, 2022, 10:23pm UTC](https://discourse.processing.org/t/synth-and-mp3-notes-play-twice-on-android-nowhere-else/37214 "2022-05-29T22:23:55Z")

</div>

Does anyone know why-This code works fine on laptops, ipads, iphones but plays double (one repeat) notes on Android phone systems: \<!DOCTYPE html\>\<html lang="en"\> \<head\> \<script src="https://icanplaypiano.com…

---

## [Synthesizer and .mp3 notes play twice on Android-nowhere else (using P5.js)](https://discourse.processing.org/t/synthesizer-and-mp3-notes-play-twice-on-android-nowhere-else-using-p5-js/37216)

<div class="topic-metadata">

**Author:** [@HFredrickson](https://discourse.processing.org/u/HFredrickson)\
**Replies:** 0\
**Last updated:** [May 29, 2022, 11:10pm UTC](https://discourse.processing.org/t/synthesizer-and-mp3-notes-play-twice-on-android-nowhere-else-using-p5-js/37216 "2022-05-29T23:10:12Z")

</div>

Also asked on: https://stackoverflow.com/questions/72427862/synthesizer-and-mp3-notes-play-twice-on-android-nowhere-else https://icanplaypiano.com/ Synthesizer and .mp3 notes play twice on Android-nowhere else Doe…

---

## [Voxel Map Creator](https://discourse.processing.org/t/voxel-map-creator/36670)

<div class="topic-metadata">

**Author:** [@CheeseBread](https://discourse.processing.org/u/CheeseBread)\
**Replies:** 3\
**Last updated:** [May 29, 2022, 8:10pm UTC](https://discourse.processing.org/t/voxel-map-creator/36670 "2022-05-29T20:10:58Z")

</div>

Hello, I’m studying to be a full stack-developer, and for that I create this “app” (https://editor.p5js.org/ChesseBread/sketches/4EH2fC4Xx) to be use as a map creator for my future project that is a strategic turn base …

---

## [PShape setStrokeWeight setStroke error](https://discourse.processing.org/t/pshape-setstrokeweight-setstroke-error/37147)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 7\
**Last updated:** [May 29, 2022, 7:46pm UTC](https://discourse.processing.org/t/pshape-setstrokeweight-setstroke-error/37147 "2022-05-29T19:46:17Z")

</div>

Hi all. I’ve come across an issue where after creating a PShape shape: .setStroke, .setStrokeWeight, shape.Stroke() and shape.strokeWeight() were throwing a GLException: GLBufferObjectTracker.mapBuffer() error. Here’s t…

---

## [How can I rasterize obj flie?](https://discourse.processing.org/t/how-can-i-rasterize-obj-flie/37205)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 3:40pm UTC](https://discourse.processing.org/t/how-can-i-rasterize-obj-flie/37205 "2022-05-29T15:40:56Z")

</div>

Hello genius! I’m a beginner and I need your help. Just as you can rasterize the image file in 3D, can you rasterize the obj file? And can you have each of those tiles that are split respond to a different object? F…

---

## [Making functions](https://discourse.processing.org/t/making-functions/37196)

<div class="topic-metadata">

**Author:** [@yug717](https://discourse.processing.org/u/yug717)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 8:04am UTC](https://discourse.processing.org/t/making-functions/37196 "2022-05-29T08:04:55Z")

</div>

Hi all!, I have to make this game similar to crossy road for a project. My pedestrain is meant to have a certain number of lives (livesLeft) before the game ends. If the pedestrain runs out of lives, the game is meant to…

---

## [How to UDP broadcast?](https://discourse.processing.org/t/how-to-udp-broadcast/37162)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 6\
**Last updated:** [May 29, 2022, 8:01am UTC](https://discourse.processing.org/t/how-to-udp-broadcast/37162 "2022-05-29T08:01:40Z")

</div>

I’m new in network programming. I want to broadcast UDP message. I installed the UDP library from Stephane Cousot and found following code: import hypermedia.net.\*; UDP udp; // define the UDP object /\*\* \* init \*/ v…

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

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