# Latest

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

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

**Page:** 165

---

## [Create fireworks](https://discourse.processing.org/t/create-fireworks/34552)

<div class="topic-metadata">

**Author:** [@cimi](https://discourse.processing.org/u/cimi)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 8:55pm UTC](https://discourse.processing.org/t/create-fireworks/34552 "2022-01-12T20:55:33Z")

</div>

Hello everyone, I want to create fireworks, my idea is that when I click a firework is created that moves upwards, and once it exceeds 1/4 of the height of the screen it disappears and instead 10 is created sparks that s…

---

## [Problem with values](https://discourse.processing.org/t/problem-with-values/34578)

<div class="topic-metadata">

**Author:** [@SNIMNS](https://discourse.processing.org/u/SNIMNS)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 8:13pm UTC](https://discourse.processing.org/t/problem-with-values/34578 "2022-01-12T20:13:23Z")

</div>

I have a problem When i put the last if (watch the next code) the program not return others values and stop all How can i solve it? //Istruzioni per la futura connessione con la seriale import processing.serial.\*; Ser…

---

## [How can we run two programs simultaneously in Processing with one sending data to another?](https://discourse.processing.org/t/how-can-we-run-two-programs-simultaneously-in-processing-with-one-sending-data-to-another/34505)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 4\
**Last updated:** [January 12, 2022, 6:43pm UTC](https://discourse.processing.org/t/how-can-we-run-two-programs-simultaneously-in-processing-with-one-sending-data-to-another/34505 "2022-01-12T18:43:37Z")

</div>

I want to send json data file from one program to another program with both running simultaneously. Is it possible in processing?

---

## [Change the colour of squares after different lengths of time](https://discourse.processing.org/t/change-the-colour-of-squares-after-different-lengths-of-time/34464)

<div class="topic-metadata">

**Author:** [@teeny13](https://discourse.processing.org/u/teeny13)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 6:36pm UTC](https://discourse.processing.org/t/change-the-colour-of-squares-after-different-lengths-of-time/34464 "2022-01-12T18:36:54Z")

</div>

Hi everyone, I am trying to write code so that my four squares will change colour after different lengths of time with music in the background. Currently, I have created the four squares but they change colour on click…

---

## [Processing 4.0 beta1 interface graphics pixelated and blurry](https://discourse.processing.org/t/processing-4-0-beta1-interface-graphics-pixelated-and-blurry/31941)

<div class="topic-metadata">

**Author:** [@SuyashN](https://discourse.processing.org/u/SuyashN)\
**Replies:** 3\
**Last updated:** [January 12, 2022, 6:03pm UTC](https://discourse.processing.org/t/processing-4-0-beta1-interface-graphics-pixelated-and-blurry/31941 "2022-01-12T18:03:40Z")

</div>

Development Interface is poor in quality how to resolve the issue? You can see the issues on the text.

---

## [Redraw() not working? How do I force draw?](https://discourse.processing.org/t/redraw-not-working-how-do-i-force-draw/34596)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 2:16pm UTC](https://discourse.processing.org/t/redraw-not-working-how-do-i-force-draw/34596 "2022-01-12T14:16:34Z")

</div>

I’m using Processing 3.5.4 in Android mode. I’ve an app where a routine is triggered by a mouse press. It takes a while to process. During the routine I want to draw some text information. My understanding, I can use re…

---

## [Creating graphics objects after setup](https://discourse.processing.org/t/creating-graphics-objects-after-setup/34455)

<div class="topic-metadata">

**Author:** [@modusponens](https://discourse.processing.org/u/modusponens)\
**Replies:** 4\
**Last updated:** [January 12, 2022, 4:28am UTC](https://discourse.processing.org/t/creating-graphics-objects-after-setup/34455 "2022-01-12T04:28:40Z")

</div>

I’m having trouble making graphics objects after the sketch is already running. Is this not something I’m supposed to be able to do? In this sketch, you can press the spacebar to create a blue square or you can press th…

---

## [How come that function getLevel() doesn't work: Uncaught TypeError: Cannot read properties of undefined (reading 'getLevel')](https://discourse.processing.org/t/how-come-that-function-getlevel-doesnt-work-uncaught-typeerror-cannot-read-properties-of-undefined-reading-getlevel/34588)

<div class="topic-metadata">

**Author:** [@Joeri](https://discourse.processing.org/u/Joeri)\
**Replies:** 3\
**Last updated:** [January 11, 2022, 11:45pm UTC](https://discourse.processing.org/t/how-come-that-function-getlevel-doesnt-work-uncaught-typeerror-cannot-read-properties-of-undefined-reading-getlevel/34588 "2022-01-11T23:45:31Z")

</div>

I started a project in VS code and at the beginning everything was working but now I get the TypeError. How come? Thanks

---

## [Objects don't appear](https://discourse.processing.org/t/objects-dont-appear/34581)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 11\
**Last updated:** [January 11, 2022, 9:00pm UTC](https://discourse.processing.org/t/objects-dont-appear/34581 "2022-01-11T21:00:45Z")

</div>

Hello, I’ve been working on this code and I can’t seem to find out what the problem is. You have Buttons at the bottom and depending on which one you press you can do different things. I am currently working on the Lawn …

---

## [The function UP\_ARROW and DOWN\_ARROW dosen't work at p5.js web](https://discourse.processing.org/t/the-function-up-arrow-and-down-arrow-dosent-work-at-p5-js-web/34584)

<div class="topic-metadata">

**Author:** [@MrPrumucena](https://discourse.processing.org/u/MrPrumucena)\
**Replies:** 2\
**Last updated:** [January 11, 2022, 8:05pm UTC](https://discourse.processing.org/t/the-function-up-arrow-and-down-arrow-dosent-work-at-p5-js-web/34584 "2022-01-11T20:05:53Z")

</div>

I’m making the game Pong on p5.js and i’m trying to move the racket using the function: function (keyIsDown(UP\_ARROW)){ yRacket -= 10; } function (keyIsDown(DOWN\_ARROW)){ yRacket += 10; } But it dosen’t work, the …

---

## [Encoding show text](https://discourse.processing.org/t/encoding-show-text/34414)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 4\
**Last updated:** [January 11, 2022, 5:34pm UTC](https://discourse.processing.org/t/encoding-show-text/34414 "2022-01-11T17:34:57Z")

</div>

Hello! Ive been working on this code we got for homework, we can’t change anything about it but we can just add in between two comments. Its supposed to count the letters and then show the result as a text underneath fo…

---

## [Display values of a variable](https://discourse.processing.org/t/display-values-of-a-variable/34556)

<div class="topic-metadata">

**Author:** [@SNIMNS](https://discourse.processing.org/u/SNIMNS)\
**Replies:** 4\
**Last updated:** [January 10, 2022, 3:55pm UTC](https://discourse.processing.org/t/display-values-of-a-variable/34556 "2022-01-10T15:55:30Z")

</div>

Salutations, I have to visualize the values ​​that come from arduino and that are constantly changing. Unfortunately, every time the value changes, this overlaps the previous one, making it difficult to read. This is t…

---

## [Struggling to add enemy projectiles to my project (array within an array?)](https://discourse.processing.org/t/struggling-to-add-enemy-projectiles-to-my-project-array-within-an-array/34444)

<div class="topic-metadata">

**Author:** [@HollowRadio](https://discourse.processing.org/u/HollowRadio)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 2:55pm UTC](https://discourse.processing.org/t/struggling-to-add-enemy-projectiles-to-my-project-array-within-an-array/34444 "2022-01-10T14:55:31Z")

</div>

I created a game for a course this last semester, but wanted to add a few things before being officially done with it on my own. One of those things is adding the ability for enemies to fire projectiles that can damage/k…

---

## [Rotation issue with frameCount - how could i solve this with modulo?](https://discourse.processing.org/t/rotation-issue-with-framecount-how-could-i-solve-this-with-modulo/34538)

<div class="topic-metadata">

**Author:** [@srt](https://discourse.processing.org/u/srt)\
**Replies:** 3\
**Last updated:** [January 10, 2022, 1:14am UTC](https://discourse.processing.org/t/rotation-issue-with-framecount-how-could-i-solve-this-with-modulo/34538 "2022-01-10T01:14:08Z")

</div>

Hey i need your help with the rotation. here the part of the code which relates to my question: float rotation = map(sin(radians(frameCount)), 1, -1, 45, -45); rotateY(radians(rotation));

---

## [3D rotation changes shape of object?](https://discourse.processing.org/t/3d-rotation-changes-shape-of-object/34550)

<div class="topic-metadata">

**Author:** [@kenjones](https://discourse.processing.org/u/kenjones)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 4:39am UTC](https://discourse.processing.org/t/3d-rotation-changes-shape-of-object/34550 "2022-01-10T04:39:13Z")

</div>

I am developing a WebGL sketch on openprocessing.org and I’ve run into a problem. When I apply a specific sequence of rotations my object retains its shape until I get to one rotation. Applying that rotation causes a dra…

---

## [When will someone recreate some P5 functions with PROMISES](https://discourse.processing.org/t/when-will-someone-recreate-some-p5-functions-with-promises/34555)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 0\
**Last updated:** [January 10, 2022, 4:37am UTC](https://discourse.processing.org/t/when-will-someone-recreate-some-p5-functions-with-promises/34555 "2022-01-10T04:37:14Z")

</div>

Promises are almost always better than callbacks, so can someone replace almost all callbacks with Promises. Adding promises would actually shorten the functions by removing the error, and success callbacks, converting l…

---

## [ReferenceError: path is not defined](https://discourse.processing.org/t/referenceerror-path-is-not-defined/34519)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 4:18am UTC](https://discourse.processing.org/t/referenceerror-path-is-not-defined/34519 "2022-01-10T04:18:14Z")

</div>

Whenever I run my code I get this error ReferenceError: path is not defined at https://365155ea-fe08-466f-b1bf-6d6d9500167a.id.repl.co/loading.js:122:67 at new Promise (\<anonymous\>) at https://365155ea-fe08-…

---

## [Serial communication between Mac and micro:bit](https://discourse.processing.org/t/serial-communication-between-mac-and-micro-bit/34543)

<div class="topic-metadata">

**Author:** [@Vincent\_Fung](https://discourse.processing.org/u/Vincent_Fung)\
**Replies:** 3\
**Last updated:** [January 10, 2022, 4:07am UTC](https://discourse.processing.org/t/serial-communication-between-mac-and-micro-bit/34543 "2022-01-10T04:07:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions can someone pls guide me to do something similar to this… It seems the highlighted one program is ok for window’s laptop but not for Mac. Wh…

---

## [Introducing Window.js - run p5.js on the desktop](https://discourse.processing.org/t/introducing-window-js-run-p5-js-on-the-desktop/34540)

<div class="topic-metadata">

**Author:** [@JoaoDaSilva](https://discourse.processing.org/u/JoaoDaSilva)\
**Replies:** 0\
**Last updated:** [January 9, 2022, 3:18pm UTC](https://discourse.processing.org/t/introducing-window-js-run-p5-js-on-the-desktop/34540 "2022-01-09T15:18:47Z")

</div>

Hi p5.js! I’m Joao and I’d like to introduce Window.js to the community: https://windowjs.org Window.js is a Javascript runtime like Node.js that includes native support for desktop windowing and the HTML5 canvas API…

---

## [Bug related to PImage::copy() of images with transparency?](https://discourse.processing.org/t/bug-related-to-pimage-copy-of-images-with-transparency/34536)

<div class="topic-metadata">

**Author:** [@yodan](https://discourse.processing.org/u/yodan)\
**Replies:** 1\
**Last updated:** [January 9, 2022, 2:13pm UTC](https://discourse.processing.org/t/bug-related-to-pimage-copy-of-images-with-transparency/34536 "2022-01-09T14:13:21Z")

</div>

Hello all I’d like to report what seems to be a bug related to PImage::copy() of images with transparency. There’s an easy hack-fix and I don’t have time to further investigate so I’m just posting this in case this is s…

---

## [Use Processing in your own editor, without installing the IDE?](https://discourse.processing.org/t/use-processing-in-your-own-editor-without-installing-the-ide/34525)

<div class="topic-metadata">

**Author:** [@SNitaine](https://discourse.processing.org/u/SNitaine)\
**Replies:** 4\
**Last updated:** [January 9, 2022, 5:37am UTC](https://discourse.processing.org/t/use-processing-in-your-own-editor-without-installing-the-ide/34525 "2022-01-09T05:37:14Z")

</div>

I’ve been trying to find information in the docs on how to run / use Processing in your preferred editor, Sublime Text, VSCode etc. I can’t figure how to install the processing java library without having to install the …

---

## [rotationX on Android](https://discourse.processing.org/t/rotationx-on-android/34479)

<div class="topic-metadata">

**Author:** [@Katarzyna](https://discourse.processing.org/u/Katarzyna)\
**Replies:** 7\
**Last updated:** [January 8, 2022, 11:25pm UTC](https://discourse.processing.org/t/rotationx-on-android/34479 "2022-01-08T23:25:24Z")

</div>

I try with Accelerometer data on Android device. In script function setup() { createCanvas(100, 100); } function draw() { background(200); console.log(rotationX) } there is only a null. Why should I do to get va…

---

## [Changing values?](https://discourse.processing.org/t/changing-values/34530)

<div class="topic-metadata">

**Author:** [@NigelWoollard](https://discourse.processing.org/u/NigelWoollard)\
**Replies:** 3\
**Last updated:** [January 8, 2022, 9:49pm UTC](https://discourse.processing.org/t/changing-values/34530 "2022-01-08T21:49:37Z")

</div>

Hi is anybody clever enough to explain to me why this program creates changing values , I realize that it resets the arrays with each draw loop , But why are they different ? please format code with \</\> button \* homewo…

---

## [I have a bit of a problem with a collision check loop](https://discourse.processing.org/t/i-have-a-bit-of-a-problem-with-a-collision-check-loop/34390)

<div class="topic-metadata">

**Author:** [@NigelWoollard](https://discourse.processing.org/u/NigelWoollard)\
**Replies:** 24\
**Last updated:** [January 8, 2022, 6:46pm UTC](https://discourse.processing.org/t/i-have-a-bit-of-a-problem-with-a-collision-check-loop/34390 "2022-01-08T18:46:04Z")

</div>

Hi there , I have been working (playworking), on this this P3D program and am confused as to why the collision check loop does not detect any of the posts other than the last in the array (which I have coloured red.) ! …

---

## [Sheetrock.js with p5.js](https://discourse.processing.org/t/sheetrock-js-with-p5-js/34526)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 4:51pm UTC](https://discourse.processing.org/t/sheetrock-js-with-p5-js/34526 "2022-01-08T16:51:21Z")

</div>

---

## [Creative Racket](https://discourse.processing.org/t/creative-racket/34524)

<div class="topic-metadata">

**Author:** [@soegaard](https://discourse.processing.org/u/soegaard)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 12:54pm UTC](https://discourse.processing.org/t/creative-racket/34524 "2022-01-08T12:54:14Z")

</div>

Creative Racket Competition 2022 - Win stickers! The Racket community is currently running Creative Racket Competition 2022. Entries can be pictures, animations, interactive, sound or music or something else? Entries…

---

## [Unusual computer question (CMOS) battery](https://discourse.processing.org/t/unusual-computer-question-cmos-battery/34496)

<div class="topic-metadata">

**Author:** [@deion123](https://discourse.processing.org/u/deion123)\
**Replies:** 2\
**Last updated:** [January 8, 2022, 2:32am UTC](https://discourse.processing.org/t/unusual-computer-question-cmos-battery/34496 "2022-01-08T02:32:53Z")

</div>

Hello all I have an unusual question about the computer’s CMOS battery location on the E39… I plan to DIY a circuit design of my computer with (CMOS) battery. I am looking to replace it, thinking it could be the cause…

---

## [I don't get what's wrong with my code (move rect)](https://discourse.processing.org/t/i-dont-get-whats-wrong-with-my-code-move-rect/34509)

<div class="topic-metadata">

**Author:** [@Alexandre\_Normandin](https://discourse.processing.org/u/Alexandre_Normandin)\
**Replies:** 4\
**Last updated:** [January 8, 2022, 12:50am UTC](https://discourse.processing.org/t/i-dont-get-whats-wrong-with-my-code-move-rect/34509 "2022-01-08T00:50:04Z")

</div>

hi, I’m just tarting to learn to code and I want my initial rectangle to move right when my mouse is clicked and I can’t seem to get the code right and I just can’t figure out why. If someone could please run it and tel…

---

## [Split function overrides string.split?](https://discourse.processing.org/t/split-function-overrides-string-split/34518)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 1\
**Last updated:** [January 8, 2022, 12:05am UTC](https://discourse.processing.org/t/split-function-overrides-string-split/34518 "2022-01-08T00:05:31Z")

</div>

For some reason every time, when I tried to use the string.split() function, but it says this error. TypeError: Cannot read properties of undefined (reading 'split') Did you just try to use p5.js's split() function? If …

---

## [Processing - ControlP5 error . pls help!](https://discourse.processing.org/t/processing-controlp5-error-pls-help/34514)

<div class="topic-metadata">

**Author:** [@R4R31](https://discourse.processing.org/u/R4R31)\
**Replies:** 0\
**Last updated:** [January 7, 2022, 10:02pm UTC](https://discourse.processing.org/t/processing-controlp5-error-pls-help/34514 "2022-01-07T22:02:10Z")

</div>

I don’t know why I get this error. The guy who wrote it has no problem with it. can u help me? The ERROR appears when you press the “Move to position” button THIS IS THE ERROR: Jan 07, 2022 10:47:12 PM controlP5.Contr…

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

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