# Latest

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

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

**Page:** 205

---

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

---

## [Create very few particles on a particle system](https://discourse.processing.org/t/create-very-few-particles-on-a-particle-system/31478)

<div class="topic-metadata">

**Author:** [@avivtech](https://discourse.processing.org/u/avivtech)\
**Replies:** 3\
**Last updated:** [July 29, 2021, 9:39am UTC](https://discourse.processing.org/t/create-very-few-particles-on-a-particle-system/31478 "2021-07-29T09:39:22Z")

</div>

Hi, I am trying to create bubbles simulation. I want a bubble to appear every 1-2 sec. and to burst at the bottom of the canvas. I have this so far: https://codepen.io/Avivtech/pen/yLbKooV I can not get to create only…

---

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

---

## [3D Lighting problems with Custom Shapes](https://discourse.processing.org/t/3d-lighting-problems-with-custom-shapes/31466)

<div class="topic-metadata">

**Author:** [@Sayochi](https://discourse.processing.org/u/Sayochi)\
**Replies:** 7\
**Last updated:** [July 28, 2021, 10:06am UTC](https://discourse.processing.org/t/3d-lighting-problems-with-custom-shapes/31466 "2021-07-28T10:06:04Z")

</div>

Im trying to convert my 2d terrain generator to 3d. i learnt about beginShape also works in 3d. watched few tutorials. but i have this lighting problem with my overall shape. i even tried to construct every individual tr…

---

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

---

## [Wait or delay into Loop](https://discourse.processing.org/t/wait-or-delay-into-loop/31468)

<div class="topic-metadata">

**Author:** [@Eddie\_float](https://discourse.processing.org/u/Eddie_float)\
**Replies:** 2\
**Last updated:** [July 27, 2021, 10:11pm UTC](https://discourse.processing.org/t/wait-or-delay-into-loop/31468 "2021-07-27T22:11:39Z")

</div>

I want to create a pause, wait or delay inside the loops. Is this possible?

---

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

---

## [Determining the correct detailX & detailY value for p5.Geometry](https://discourse.processing.org/t/determining-the-correct-detailx-detaily-value-for-p5-geometry/31464)

<div class="topic-metadata">

**Author:** [@hardwhere](https://discourse.processing.org/u/hardwhere)\
**Replies:** 0\
**Last updated:** [July 27, 2021, 5:11pm UTC](https://discourse.processing.org/t/determining-the-correct-detailx-detaily-value-for-p5-geometry/31464 "2021-07-27T17:11:14Z")

</div>

I’m generating geometry using p5.Geometry, but having trouble determining what the correct detailX and detailY values to use are. According to the comments in the source code, detailX is the “number of vertices on horizo…

---

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

---

## [Reporting documentation bugs](https://discourse.processing.org/t/reporting-documentation-bugs/30702)

<div class="topic-metadata">

**Author:** [@soegaard](https://discourse.processing.org/u/soegaard)\
**Replies:** 4\
**Last updated:** [July 27, 2021, 4:21pm UTC](https://discourse.processing.org/t/reporting-documentation-bugs/30702 "2021-07-27T16:21:15Z")

</div>

Hi All, In the past week I have reported a few bugs in the reference documentation of Processing. I have done this at https://github.com/processing/processing-docs/issues Today, I noticed that the latest response to …

---

## [Line Drawings with p5.Geometry](https://discourse.processing.org/t/line-drawings-with-p5-geometry/30953)

<div class="topic-metadata">

**Author:** [@hardwhere](https://discourse.processing.org/u/hardwhere)\
**Replies:** 2\
**Last updated:** [July 27, 2021, 3:59pm UTC](https://discourse.processing.org/t/line-drawings-with-p5-geometry/30953 "2021-07-27T15:59:54Z")

</div>

Hello! I was recently able to get help on a question with p5.Geometry (here) and am back with another question: Is it possible to use p5.Geometry to make a line drawing? In immediate mode, we can pass a parameter to beg…

---

## [Thin lines look different in Safari?](https://discourse.processing.org/t/thin-lines-look-different-in-safari/31460)

<div class="topic-metadata">

**Author:** [@astrom.hjalmar](https://discourse.processing.org/u/astrom.hjalmar)\
**Replies:** 1\
**Last updated:** [July 27, 2021, 3:14pm UTC](https://discourse.processing.org/t/thin-lines-look-different-in-safari/31460 "2021-07-27T15:14:19Z")

</div>

Hi all, I was hoping to get some help with this as I’m really stumped. When I draw thin lines (stroke weight \< 1) in p5js it looks a lot brighter in Safari compared to Chrome (example sketch). Has anyone else found a wa…

---

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

---

## [How to smoothly fading between multiple shaders with p5.js?](https://discourse.processing.org/t/how-to-smoothly-fading-between-multiple-shaders-with-p5-js/22645)

<div class="topic-metadata">

**Author:** [@Spenc](https://discourse.processing.org/u/Spenc)\
**Replies:** 1\
**Last updated:** [July 27, 2021, 8:44am UTC](https://discourse.processing.org/t/how-to-smoothly-fading-between-multiple-shaders-with-p5-js/22645 "2021-07-27T08:44:18Z")

</div>

I am trying to figure out how to fade between an array of shaders at random rates and random opacities. I tried creating an if statement that would provide a new target opacity and target rate of time it would take to fu…

---

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

---

## [P5js instance mode - how to manage functions?](https://discourse.processing.org/t/p5js-instance-mode-how-to-manage-functions/25369)

<div class="topic-metadata">

**Author:** [@amygoodchild](https://discourse.processing.org/u/amygoodchild)\
**Replies:** 4\
**Last updated:** [July 23, 2021, 9:00pm UTC](https://discourse.processing.org/t/p5js-instance-mode-how-to-manage-functions/25369 "2021-07-23T21:00:30Z")

</div>

I am using instance mode for a p5js project and I am trying to figure out the best way to keep my functions organised. Here is how I had my code organised originally: var rotateSketch = function(p){ p.setup = funct…

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

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