# Processing

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

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

**Page:** 121

---

## [Running on Homepage](https://discourse.processing.org/t/running-on-homepage/31526)

<div class="topic-metadata">

**Author:** [@Pauls](https://discourse.processing.org/u/Pauls)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 7:20am UTC](https://discourse.processing.org/t/running-on-homepage/31526 "2021-08-01T07:20:57Z")

</div>

I tried to write two lessons in my language learning. Can I run them on my homepage? with thanks Pauls

---

## [Ellipse following mouse](https://discourse.processing.org/t/ellipse-following-mouse/31489)

<div class="topic-metadata">

**Author:** [@ninjaasmoke](https://discourse.processing.org/u/ninjaasmoke)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 5:52am UTC](https://discourse.processing.org/t/ellipse-following-mouse/31489 "2021-07-30T05:52:02Z")

</div>

I am new to processing and wanted to create a simple program where a circle follows the mouse. This is the code that I have, void setup () { size(400, 400, P3D); background(0); } void draw() { pushMatrix(); fi…

---

## [Using P3D - core dumps error](https://discourse.processing.org/t/using-p3d-core-dumps-error/31486)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 4:26pm UTC](https://discourse.processing.org/t/using-p3d-core-dumps-error/31486 "2021-07-29T16:26:12Z")

</div>

Hi Having problems running a very simple sketch that sets size(2000, 2000, P3D); in settings(). The error is as follows: # A fatal error has been detected by the Java Runtime Environment: # # SIGILL (0x4) at pc=0x0000…

---

## [Tech.lity.rea.skatolo - textarea - string formatting](https://discourse.processing.org/t/tech-lity-rea-skatolo-textarea-string-formatting/31475)

<div class="topic-metadata">

**Author:** [@mmuylle](https://discourse.processing.org/u/mmuylle)\
**Replies:** 4\
**Last updated:** [July 29, 2021, 3:49pm UTC](https://discourse.processing.org/t/tech-lity-rea-skatolo-textarea-string-formatting/31475 "2021-07-29T15:49:08Z")

</div>

How can I format (basic formatting such as inserting a new line) the text (string) in a textarea controller of the tech.lity.rea.skatolo library?

---

## [ColorMode and ARGB values](https://discourse.processing.org/t/colormode-and-argb-values/31379)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [July 29, 2021, 1:41pm UTC](https://discourse.processing.org/t/colormode-and-argb-values/31379 "2021-07-29T13:41:33Z")

</div>

Just trying to figure out whats going on behind the scenes when using colorMode. it can be set to greater than 255, however the values retrieved from it are then not accurate. And it doesnt seem to have a definitive con…

---

## [Is it possible to open a file with processing sketch? (command line)](https://discourse.processing.org/t/is-it-possible-to-open-a-file-with-processing-sketch-command-line/26613)

<div class="topic-metadata">

**Author:** [@Brastin](https://discourse.processing.org/u/Brastin)\
**Replies:** 9\
**Last updated:** [July 29, 2021, 1:18pm UTC](https://discourse.processing.org/t/is-it-possible-to-open-a-file-with-processing-sketch-command-line/26613 "2021-07-29T13:18:53Z")

</div>

I would like to create something like a text editor, and allow the user to open text files with the text editor, rather than having to open the editor first. Is this possible? I’ve tried to achieve this before but I have…

---

## [Extreme Overhead. Desperate for help with Memory!](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 2\
**Last updated:** [July 28, 2021, 10:12pm UTC](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476 "2021-07-28T22:12:38Z")

</div>

Things for my game aren’t looking too good right now. I’ve spent all day compressing the assets for my game to try and save on memory. I’ve taken 600 mb of assets and turned them into 300 mb worth. Unfortunately, the mem…

---

## [Read byte array from file](https://discourse.processing.org/t/read-byte-array-from-file/31474)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 0\
**Last updated:** [July 28, 2021, 11:34am UTC](https://discourse.processing.org/t/read-byte-array-from-file/31474 "2021-07-28T11:34:23Z")

</div>

void Impuls(File selection) { if (selection == null) { println("Window was closed or the user hit cancel."); } else { println("User selected " + selection.getAbsolutePath()); String\[\] lines = loadStrings(…

---

## [Missing Waveform Documentation](https://discourse.processing.org/t/missing-waveform-documentation/15303)

<div class="topic-metadata">

**Author:** [@mhamilt](https://discourse.processing.org/u/mhamilt)\
**Replies:** 3\
**Last updated:** [July 27, 2021, 10:35pm UTC](https://discourse.processing.org/t/missing-waveform-documentation/15303 "2021-07-27T22:35:45Z")

</div>

Is there a reason that the Waveform Class isn’t in the Sound Library Reference? Is there a way I could contribute and add in a reference page?

---

## [Using Headers for loading Images](https://discourse.processing.org/t/using-headers-for-loading-images/31450)

<div class="topic-metadata">

**Author:** [@Glenton](https://discourse.processing.org/u/Glenton)\
**Replies:** 8\
**Last updated:** [July 27, 2021, 9:27pm UTC](https://discourse.processing.org/t/using-headers-for-loading-images/31450 "2021-07-27T21:27:25Z")

</div>

Hello, I would like to use the discog API in order to get informations on music albums and the cover Image of the album. The program I wrote handles the API correctly for fetching the String datas, but I have a problem…

---

## [Survey creation](https://discourse.processing.org/t/survey-creation/31453)

<div class="topic-metadata">

**Author:** [@coderdoge](https://discourse.processing.org/u/coderdoge)\
**Replies:** 6\
**Last updated:** [July 27, 2021, 6:31pm UTC](https://discourse.processing.org/t/survey-creation/31453 "2021-07-27T18:31:32Z")

</div>

Hi all, I have started a new project in which I want to make a survey using processing. My idea was to insert shapes as multiple choice selection tools and text as the question itself. I’ve been struggling to formulate …

---

## [loadImage() 403 Error](https://discourse.processing.org/t/loadimage-403-error/25734)

<div class="topic-metadata">

**Author:** [@jorivdkolk](https://discourse.processing.org/u/jorivdkolk)\
**Replies:** 4\
**Last updated:** [July 27, 2021, 4:31pm UTC](https://discourse.processing.org/t/loadimage-403-error/25734 "2021-07-27T16:31:36Z")

</div>

I am trying to load an image from a URL. Some images work, but sometimes the response is a 403 error message. When I try to open the URL’s in my browser they work fine, but not through the processing code. One of the im…

---

## [How to convert the amplitude values to decibels](https://discourse.processing.org/t/how-to-convert-the-amplitude-values-to-decibels/31402)

<div class="topic-metadata">

**Author:** [@hemangi\_2810](https://discourse.processing.org/u/hemangi_2810)\
**Replies:** 5\
**Last updated:** [July 26, 2021, 10:30am UTC](https://discourse.processing.org/t/how-to-convert-the-amplitude-values-to-decibels/31402 "2021-07-26T10:30:45Z")

</div>

I have mentioned my code in Java mode , can anyone suggest me how to convert this amplitude values to decibels. import processing.sound.\*; Amplitude amp; AudioIn in; void setup() { size(640, 360); background(255); …

---

## [Does a Table change a String format? (String equality)](https://discourse.processing.org/t/does-a-table-change-a-string-format-string-equality/31439)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 3\
**Last updated:** [July 26, 2021, 9:51am UTC](https://discourse.processing.org/t/does-a-table-change-a-string-format-string-equality/31439 "2021-07-26T09:51:45Z")

</div>

Hello, I am writing a program that calls for information to be pulled from a spread sheet (.csv format) and put into “tile” objects that exist in the program. The quick version of my question is that when I load a Str…

---

## [How Do I Make "Smarter" Linear Gradients (Ex. From Orange To Violet)?](https://discourse.processing.org/t/how-do-i-make-smarter-linear-gradients-ex-from-orange-to-violet/31426)

<div class="topic-metadata">

**Author:** [@Blurpy\_the\_RABID](https://discourse.processing.org/u/Blurpy_the_RABID)\
**Replies:** 3\
**Last updated:** [July 25, 2021, 6:22pm UTC](https://discourse.processing.org/t/how-do-i-make-smarter-linear-gradients-ex-from-orange-to-violet/31426 "2021-07-25T18:22:37Z")

</div>

Greetings everyone! I’m struggling with an issue where I want to create a linear gradient that goes from two colors that are relatively close together on the color wheel (ex. orange and violet). What I want is a simple…

---

## [Masking - I want to get rid of the outside of the circle](https://discourse.processing.org/t/masking-i-want-to-get-rid-of-the-outside-of-the-circle/31428)

<div class="topic-metadata">

**Author:** [@jih](https://discourse.processing.org/u/jih)\
**Replies:** 4\
**Last updated:** [July 25, 2021, 2:08pm UTC](https://discourse.processing.org/t/masking-i-want-to-get-rid-of-the-outside-of-the-circle/31428 "2021-07-25T14:08:00Z")

</div>

Hello, I’m studying masking. I want to get rid of the outside of the circle. (background color is gray) I tried BeginContour, but I failed. Thank you int barWidth = 10; int lastBar = -1; int r ; void setup(){ si…

---

## [Saving frames to SVG](https://discourse.processing.org/t/saving-frames-to-svg/31405)

<div class="topic-metadata">

**Author:** [@krissnutt](https://discourse.processing.org/u/krissnutt)\
**Replies:** 2\
**Last updated:** [July 25, 2021, 1:27pm UTC](https://discourse.processing.org/t/saving-frames-to-svg/31405 "2021-07-25T13:27:23Z")

</div>

Hey! I was wondering if there is an easy way to save frames as SVG files in processing? I have seen some examples using arrays, but wonder if there are other alternatives?

---

## [Change color with click or touch](https://discourse.processing.org/t/change-color-with-click-or-touch/31295)

<div class="topic-metadata">

**Author:** [@lion](https://discourse.processing.org/u/lion)\
**Replies:** 7\
**Last updated:** [July 25, 2021, 12:11pm UTC](https://discourse.processing.org/t/change-color-with-click-or-touch/31295 "2021-07-25T12:11:10Z")

</div>

Good day, everyone! A beginner here. I’m trying to change the colors of a few squares whenever the mouse click upon them but can’t figure out a working solution. Here is what I’ve done so far: I created four values and…

---

## [Creating a Processing sketch without PDE](https://discourse.processing.org/t/creating-a-processing-sketch-without-pde/31411)

<div class="topic-metadata">

**Author:** [@StochasticTinkr](https://discourse.processing.org/u/StochasticTinkr)\
**Replies:** 2\
**Last updated:** [July 24, 2021, 9:29pm UTC](https://discourse.processing.org/t/creating-a-processing-sketch-without-pde/31411 "2021-07-24T21:29:22Z")

</div>

I’m already a Java developer, and wanted to play around with Processing. I’d like to import it in a Maven based project, but I’m running into some problems. The latest issue when I use P2D: 2021-07-22 12:59:04.553 jav…

---

## [Copy and Paste parts of a audio file](https://discourse.processing.org/t/copy-and-paste-parts-of-a-audio-file/31422)

<div class="topic-metadata">

**Author:** [@AshSnaga](https://discourse.processing.org/u/AshSnaga)\
**Replies:** 6\
**Last updated:** [July 24, 2021, 4:05pm UTC](https://discourse.processing.org/t/copy-and-paste-parts-of-a-audio-file/31422 "2021-07-24T16:05:52Z")

</div>

Hi. I am new in sound processing and Processing too. I want to copy pieces from a audio file and paste in a different order and save it. How I can make this? Wich sound library is better for do it? Can you orient me in t…

---

## [Why does Processing send so many signals at once?](https://discourse.processing.org/t/why-does-processing-send-so-many-signals-at-once/31420)

<div class="topic-metadata">

**Author:** [@Adilic0](https://discourse.processing.org/u/Adilic0)\
**Replies:** 4\
**Last updated:** [July 24, 2021, 12:01pm UTC](https://discourse.processing.org/t/why-does-processing-send-so-many-signals-at-once/31420 "2021-07-24T12:01:18Z")

</div>

I am trying to make a Breakout clone game and try to connect the Arduino to control the LED when the ball hit the bricks and I wrote the codes like this void checkCollision(){ if ( ball.x \> bar.x && ball.x \< bar.x …

---

## [JSON File to 2D Array Java](https://discourse.processing.org/t/json-file-to-2d-array-java/31414)

<div class="topic-metadata">

**Author:** [@Gyrosis](https://discourse.processing.org/u/Gyrosis)\
**Replies:** 1\
**Last updated:** [July 24, 2021, 5:45am UTC](https://discourse.processing.org/t/json-file-to-2d-array-java/31414 "2021-07-24T05:45:07Z")

</div>

How can I create a 2D array using a JSON file? “tile\_size”: 16, “map\_width”: 101, “map\_height”: 37, “layers”: \[ { “name”: “bg”, “positions”: \[ { “x”:1, “y”:6, “id”:0 }, { “x”:1, “y”:7, “id”:0 }, { “x”:1, “y”:8,…

---

## [I want to masking](https://discourse.processing.org/t/i-want-to-masking/31382)

<div class="topic-metadata">

**Author:** [@jih](https://discourse.processing.org/u/jih)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 2:16pm UTC](https://discourse.processing.org/t/i-want-to-masking/31382 "2021-07-22T14:16:23Z")

</div>

Hello, I want masking what moves. source : ( Hue \\ Examples \\ Processing.org ) int barWidth = 20; int lastBar = -1; int whichBar = mouseX / barWidth; if (whichBar != lastBar) { int barX = whichBar \* barWidth; fill…

---

## [Hey! I need help with figuring out, how to make this outcome possible?](https://discourse.processing.org/t/hey-i-need-help-with-figuring-out-how-to-make-this-outcome-possible/31282)

<div class="topic-metadata">

**Author:** [@bopStu77](https://discourse.processing.org/u/bopStu77)\
**Replies:** 4\
**Last updated:** [July 24, 2021, 2:02am UTC](https://discourse.processing.org/t/hey-i-need-help-with-figuring-out-how-to-make-this-outcome-possible/31282 "2021-07-24T02:02:06Z")

</div>

Hey! I need help with figuring out, how to make this outcome possible? Create a program that allows the user to click 20 times on the screen. Once the 20th click has been pressed, circles will appear on the run window wh…

---

## [Hey Guys! I'm very new to Processing and coding. I was wondering if y'all can guide me towards the right direction](https://discourse.processing.org/t/hey-guys-im-very-new-to-processing-and-coding-i-was-wondering-if-yall-can-guide-me-towards-the-right-direction/31409)

<div class="topic-metadata">

**Author:** [@noobprogramer](https://discourse.processing.org/u/noobprogramer)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 11:42pm UTC](https://discourse.processing.org/t/hey-guys-im-very-new-to-processing-and-coding-i-was-wondering-if-yall-can-guide-me-towards-the-right-direction/31409 "2021-07-23T23:42:44Z")

</div>

Hey! I’m just asking for help, not answers, just guidance! I need to get the outcome but I have no idea how or where to get started, I was wondering if I could be guided step by step please format code with \</\> button…

---

## [Cannot find a class or type named “Test”](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-test/31371)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 17\
**Last updated:** [July 23, 2021, 3:57pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-test/31371 "2021-07-23T15:57:58Z")

</div>

I just found this code on the internet (how to open a webpage with java Code Example) when i tried to run it it said Cannot find a class or type named “Test”, what do i have to replace test with to make it work? /\*\* …

---

## [Snake game error](https://discourse.processing.org/t/snake-game-error/31389)

<div class="topic-metadata">

**Author:** [@Xavier](https://discourse.processing.org/u/Xavier)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 10:12am UTC](https://discourse.processing.org/t/snake-game-error/31389 "2021-07-23T10:12:06Z")

</div>

Hi everyone, Iam making a snake game for my class but it has to have an interactive aproach, so my idea was that every time the snake eat an apple an image in the background would appear, so you would win the game when …

---

## [Draw A Circle After 20 Mouse Clicks In An Array](https://discourse.processing.org/t/draw-a-circle-after-20-mouse-clicks-in-an-array/31387)

<div class="topic-metadata">

**Author:** [@KH1](https://discourse.processing.org/u/KH1)\
**Replies:** 11\
**Last updated:** [July 22, 2021, 6:16pm UTC](https://discourse.processing.org/t/draw-a-circle-after-20-mouse-clicks-in-an-array/31387 "2021-07-22T18:16:32Z")

</div>

Hello All, I am trying to figure out how to draw a circle after 20 mouse click in an array. int mouseClicks; void mousePressed() { if (mouseClicks== 20) {Circle(,)} else { mouseClicks = 0; } Thank You For The Help!

---

## [I want to this contents in a circle](https://discourse.processing.org/t/i-want-to-this-contents-in-a-circle/31375)

<div class="topic-metadata">

**Author:** [@jih](https://discourse.processing.org/u/jih)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 1:11pm UTC](https://discourse.processing.org/t/i-want-to-this-contents-in-a-circle/31375 "2021-07-22T13:11:13Z")

</div>

Hello, I’m studying with this example. (Hue) Hue \\ Examples \\ Processing.org I want to make a circle, and put this content in the circle. I tried, but the whole circle changes color. How do I put it in a circle? Tha…

---

## [Help with Processing Brightness Example](https://discourse.processing.org/t/help-with-processing-brightness-example/31366)

<div class="topic-metadata">

**Author:** [@jih](https://discourse.processing.org/u/jih)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 9:37pm UTC](https://discourse.processing.org/t/help-with-processing-brightness-example/31366 "2021-07-21T21:37:48Z")

</div>

https://processing.org/examples/brightness.html hello, I’m studying with this tutorial. almost last line, pixels\[y\*width+x\] = c; \<\< ArrayIndexOutOfBoundsException: 230400 error… Please let me know how. Thank you…

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

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