# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=95

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

**Page:** 96

---

## [Compile time OutOfMemoryError](https://discourse.processing.org/t/compile-time-outofmemoryerror/34683)

<div class="topic-metadata">

**Author:** [@codebodger](https://discourse.processing.org/u/codebodger)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 12:14am UTC](https://discourse.processing.org/t/compile-time-outofmemoryerror/34683 "2022-01-17T00:14:25Z")

</div>

I have a sketch that is quite big (about 8 MiB) that will not compile. When I run it, it gives me an OutOfMemoryError while compiling. It will not even do print("hi"); if I put it at the beginning. Does anyone know ho…

---

## [Opening Processing 3 starts Processing 2](https://discourse.processing.org/t/opening-processing-3-starts-processing-2/34680)

<div class="topic-metadata">

**Author:** [@tomatocultivator](https://discourse.processing.org/u/tomatocultivator)\
**Replies:** 1\
**Last updated:** [January 16, 2022, 9:11pm UTC](https://discourse.processing.org/t/opening-processing-3-starts-processing-2/34680 "2022-01-16T21:11:18Z")

</div>

I have multiple versions of processing installed. When I try to open processing 3, the PDE that opens up is processing 2. Similarly, when I try to open processing 4, the PDE that opens up is processing 2. Strangely, mult…

---

## [Processing sketch as screensaver](https://discourse.processing.org/t/processing-sketch-as-screensaver/34678)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 1\
**Last updated:** [January 16, 2022, 7:50pm UTC](https://discourse.processing.org/t/processing-sketch-as-screensaver/34678 "2022-01-16T19:50:58Z")

</div>

Has anyone tried to run processing sketch as a screensaver on any OS? It could be an interesting project to try out.

---

## [Empty starting panel (about-1x.png is not shown)](https://discourse.processing.org/t/empty-starting-panel-about-1x-png-is-not-shown/34677)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 0\
**Last updated:** [January 16, 2022, 6:23pm UTC](https://discourse.processing.org/t/empty-starting-panel-about-1x-png-is-not-shown/34677 "2022-01-16T18:23:19Z")

</div>

processing-4.0b 3, on a Fedora 35 machine. When I launch Processing, I see an empty blank panel. Intro graphics about-1x.png is not shown. What do I check? Is there a way to fix it?

---

## [Processing-4.0b2 crashes on Fedora 35](https://discourse.processing.org/t/processing-4-0b2-crashes-on-fedora-35/34472)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 1\
**Last updated:** [January 16, 2022, 5:34pm UTC](https://discourse.processing.org/t/processing-4-0b2-crashes-on-fedora-35/34472 "2022-01-16T17:34:24Z")

</div>

Hi on my Fedora 35, processing-4.0b2 crashes any time I try to open a file. When I launch from command line, I get: \[-----@localhost processing-4.0b2\]$ /home/-----/processing-4.0b2/processing \[-----@localhost processi…

---

## [Drag and Drop an Object](https://discourse.processing.org/t/drag-and-drop-an-object/34609)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 3\
**Last updated:** [January 16, 2022, 1:06pm UTC](https://discourse.processing.org/t/drag-and-drop-an-object/34609 "2022-01-16T13:06:31Z")

</div>

Hello, I was wondering if someone could explain how I can drag and drop an object if its part of an arrayList. I know how to look if the mouse is inside or how to remove it but for a drag and drop function I really have …

---

## [Arduino controlled soundfile in Processing](https://discourse.processing.org/t/arduino-controlled-soundfile-in-processing/34564)

<div class="topic-metadata">

**Author:** [@aejstr20](https://discourse.processing.org/u/aejstr20)\
**Replies:** 3\
**Last updated:** [January 15, 2022, 9:27pm UTC](https://discourse.processing.org/t/arduino-controlled-soundfile-in-processing/34564 "2022-01-15T21:27:04Z")

</div>

So, me and my group are trying to control a soundfile in Processing through a potentiometer and sensor data from an Arduino UNO. We’re controlling it’s attributes (specifically pitch) through the beads library. However, …

---

## [Beads library and Arduino controller](https://discourse.processing.org/t/beads-library-and-arduino-controller/34639)

<div class="topic-metadata">

**Author:** [@aejstr20](https://discourse.processing.org/u/aejstr20)\
**Replies:** 0\
**Last updated:** [January 15, 2022, 4:59pm UTC](https://discourse.processing.org/t/beads-library-and-arduino-controller/34639 "2022-01-15T16:59:16Z")

</div>

Hey everyone! So, as some of you might’ve seen over the last couple of days, me and my group are working on a project, where sensor values from an Arduino need to control some sort of sound input. At this point, we’ve g…

---

## [Can I draw a figure every x milliseconds?](https://discourse.processing.org/t/can-i-draw-a-figure-every-x-milliseconds/34611)

<div class="topic-metadata">

**Author:** [@Patriche98](https://discourse.processing.org/u/Patriche98)\
**Replies:** 5\
**Last updated:** [January 14, 2022, 12:02pm UTC](https://discourse.processing.org/t/can-i-draw-a-figure-every-x-milliseconds/34611 "2022-01-14T12:02:36Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi! I’m new to programming and I’m challenging myself trying to: -Draw a vertical line that moves to the left (or right) of the screen every x …

---

## [Create a wall made of cube](https://discourse.processing.org/t/create-a-wall-made-of-cube/34532)

<div class="topic-metadata">

**Author:** [@Bapoivre](https://discourse.processing.org/u/Bapoivre)\
**Replies:** 3\
**Last updated:** [January 14, 2022, 10:10pm UTC](https://discourse.processing.org/t/create-a-wall-made-of-cube/34532 "2022-01-14T22:10:01Z")

</div>

Hello, I am having a hard time solving a problem. To make it simple : I created a cube using quad, and I want to make a wall made of these cubes, so they have to all stick together. Here is the code float x1 = 0; flo…

---

## [Error at start of "3D Drawing" Chapter 16](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 3\
**Last updated:** [January 14, 2022, 11:54pm UTC](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497 "2022-01-14T23:54:04Z")

</div>

Just starting out the 16th Chapter of “Processing: A Programming Handbook for Visual Designers and Artists” and I ran into an error of sorts on the first example. I am getting some red warnings and the program won’t run…

---

## [Need help making all circles flicker](https://discourse.processing.org/t/need-help-making-all-circles-flicker/34618)

<div class="topic-metadata">

**Author:** [@processingboy1](https://discourse.processing.org/u/processingboy1)\
**Replies:** 1\
**Last updated:** [January 14, 2022, 1:13pm UTC](https://discourse.processing.org/t/need-help-making-all-circles-flicker/34618 "2022-01-14T13:13:15Z")

</div>

Hey! i am trying to make all the circles i draw flicker in my code. i am currently able to make the latest circle that was drawn to flicker but the goal is to make all the circles on the canvas flicker. here is my code…

---

## [How to overlay a map on a radar style display](https://discourse.processing.org/t/how-to-overlay-a-map-on-a-radar-style-display/34498)

<div class="topic-metadata">

**Author:** [@rajiv.tctech](https://discourse.processing.org/u/rajiv.tctech)\
**Replies:** 6\
**Last updated:** [January 14, 2022, 7:24am UTC](https://discourse.processing.org/t/how-to-overlay-a-map-on-a-radar-style-display/34498 "2022-01-14T07:24:15Z")

</div>

I have built a radar simulator and display. The range and azimuth are fed to the Processing program via USB serial. I have a timebase rotating around the screen, following the azimuth being sent to the USB serial. I have…

---

## [Does Processing have default values for certain alphabets?](https://discourse.processing.org/t/does-processing-have-default-values-for-certain-alphabets/34574)

<div class="topic-metadata">

**Author:** [@prathmesh](https://discourse.processing.org/u/prathmesh)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 10:39pm UTC](https://discourse.processing.org/t/does-processing-have-default-values-for-certain-alphabets/34574 "2022-01-13T22:39:51Z")

</div>

Namaste All, So I wrote the following code : void setup(){ } void draw(){ println(X); } This gives me a value of 0. If I do the same thing with Y it gives a value of 1, with Z a value of 2. Doesn’t work with all th…

---

## [Heap Memory Issue](https://discourse.processing.org/t/heap-memory-issue/34501)

<div class="topic-metadata">

**Author:** [@Noxus010](https://discourse.processing.org/u/Noxus010)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 9:05pm UTC](https://discourse.processing.org/t/heap-memory-issue/34501 "2022-01-13T21:05:46Z")

</div>

After two days of being frustrated I will post this here… I am constantly getting error in processing 4 (latest version). Consistent crashes and I can’t seem to find a way around it. I tried some of the examples, and th…

---

## [How to move something to where something else will be?](https://discourse.processing.org/t/how-to-move-something-to-where-something-else-will-be/34545)

<div class="topic-metadata">

**Author:** [@millibyte](https://discourse.processing.org/u/millibyte)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 1:35am UTC](https://discourse.processing.org/t/how-to-move-something-to-where-something-else-will-be/34545 "2022-01-13T01:35:12Z")

</div>

I am writing a football video game, and I just started the passing system. I am trying to figure out how to place the ball where the receiver will be. Here’s what I’m working with: A Player object has a position and vel…

---

## [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.

---

## [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 …

---

## [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));

---

## [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…

---

## [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 …

---

## [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…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=94)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=96)
