# Latest

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

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

**Page:** 304

---

## [Bug Bounty- Audio in IOS](https://discourse.processing.org/t/bug-bounty-audio-in-ios/23984)

<div class="topic-metadata">

**Author:** [@hikinghack](https://discourse.processing.org/u/hikinghack)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 7:34pm UTC](https://discourse.processing.org/t/bug-bounty-audio-in-ios/23984 "2020-09-25T19:34:10Z")

</div>

Hi! I made this little game for kids for the Smithsonian in Panama to teach about FFT functions and how scientists use spectrograms to identify animals in audio. But it doesn’t work on safari or chrome on iphones or ipad…

---

## [Processing freezes when stopping a sketch](https://discourse.processing.org/t/processing-freezes-when-stopping-a-sketch/6090)

<div class="topic-metadata">

**Author:** [@TheZipCreator](https://discourse.processing.org/u/TheZipCreator)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 1:30pm UTC](https://discourse.processing.org/t/processing-freezes-when-stopping-a-sketch/6090 "2020-09-25T13:30:12Z")

</div>

So, whenever I press “start” on a sketch, nothing happens. When I press “stop”, processing freezes and no longer appears on task manager. This happens with all of my sketches I use Windows 64-bit

---

## [Creating a Simple class with a circle](https://discourse.processing.org/t/creating-a-simple-class-with-a-circle/24066)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 12:34pm UTC](https://discourse.processing.org/t/creating-a-simple-class-with-a-circle/24066 "2020-09-25T12:34:40Z")

</div>

Hello, I am trying to make a class with just a simple circle. I am planning to eventually have more circles too, but I think that I am running into a syntax/logic error. Any help would be greatly appreciated. bubble b1; …

---

## [Physics libraries, bodies inside bodies](https://discourse.processing.org/t/physics-libraries-bodies-inside-bodies/24073)

<div class="topic-metadata">

**Author:** [@opheliagame](https://discourse.processing.org/u/opheliagame)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 11:40am UTC](https://discourse.processing.org/t/physics-libraries-bodies-inside-bodies/24073 "2020-09-25T11:40:57Z")

</div>

I want to make a simulation that has bodies inside bodies. The only way I have been able to achieve this is by making blobby bodies by Daniel Shiffman and then making new bodies inside the blob. How could I try to make m…

---

## [Transformations issues](https://discourse.processing.org/t/transformations-issues/24079)

<div class="topic-metadata">

**Author:** [@bernat\_ratpenat](https://discourse.processing.org/u/bernat_ratpenat)\
**Replies:** 6\
**Last updated:** [September 25, 2020, 8:23am UTC](https://discourse.processing.org/t/transformations-issues/24079 "2020-09-25T08:23:56Z")

</div>

Hi there! I’ve been trying to code a torus and, while I have found valid examples, I still don’t understand why my code does not work. I’m sure it’s related to transformations and must’ve misunderstood something about th…

---

## [Computational expense question (2)](https://discourse.processing.org/t/computational-expense-question-2/24105)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 3:27am UTC](https://discourse.processing.org/t/computational-expense-question-2/24105 "2020-09-25T03:27:25Z")

</div>

I have a very simple and small image, easily generatable with code alone (it’s essentially just 4 differently colored squares and the image alone is 32x32 px), and I wish to know what is more expensive: using textures …

---

## [Applying filter to a specific region of a window](https://discourse.processing.org/t/applying-filter-to-a-specific-region-of-a-window/24014)

<div class="topic-metadata">

**Author:** [@clamonni](https://discourse.processing.org/u/clamonni)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 8:38pm UTC](https://discourse.processing.org/t/applying-filter-to-a-specific-region-of-a-window/24014 "2020-09-24T20:38:49Z")

</div>

Hi to everyone, I’m trying to make a panel to add filters to an image by clicking over four buttons below the image itself. Another feature I’m trying to develop return the hexadecimal color values of a mouse position w…

---

## [\[Linux\] Processing should comply with the XDG directory standard](https://discourse.processing.org/t/linux-processing-should-comply-with-the-xdg-directory-standard/23942)

<div class="topic-metadata">

**Author:** [@zjeffer](https://discourse.processing.org/u/zjeffer)\
**Replies:** 4\
**Last updated:** [September 24, 2020, 7:05pm UTC](https://discourse.processing.org/t/linux-processing-should-comply-with-the-xdg-directory-standard/23942 "2020-09-24T19:05:35Z")

</div>

Currently, Processing on Linux creates a hidden folder in the user’s $HOME folder. For me, it creates /home/zjeffer/.processing/. This is bad practice: it clutters the $HOME folder and this is a big problem if you insta…

---

## [Is there a better way of playing video files in sequence?](https://discourse.processing.org/t/is-there-a-better-way-of-playing-video-files-in-sequence/24103)

<div class="topic-metadata">

**Author:** [@delphi](https://discourse.processing.org/u/delphi)\
**Replies:** 0\
**Last updated:** [September 24, 2020, 3:43pm UTC](https://discourse.processing.org/t/is-there-a-better-way-of-playing-video-files-in-sequence/24103 "2020-09-24T15:43:59Z")

</div>

I’m very new to coding. I’m trying to make a Pong game with videos playing, one at a time, on the background of the game. While each video file ran smoothly on its own, the code I wrote for the sequence of videos made t…

---

## [Processing on ubuntu cannot access external hard drive](https://discourse.processing.org/t/processing-on-ubuntu-cannot-access-external-hard-drive/24100)

<div class="topic-metadata">

**Author:** [@sashakoshka](https://discourse.processing.org/u/sashakoshka)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 2:39pm UTC](https://discourse.processing.org/t/processing-on-ubuntu-cannot-access-external-hard-drive/24100 "2020-09-24T14:39:48Z")

</div>

I recently installed the latest version of Pop OS, which is a Linux distro based off of Ubuntu. When I installed processing and went to look for a project file on an external disk, it did not show the complete filesystem…

---

## [Changing size of my bubbles separately](https://discourse.processing.org/t/changing-size-of-my-bubbles-separately/24089)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 8:27am UTC](https://discourse.processing.org/t/changing-size-of-my-bubbles-separately/24089 "2020-09-24T08:27:04Z")

</div>

Hello, I am using classes to make bubbles come up the screen and I was wondering why when I pop the bubbles or if the bubbles go out of the screen they all change at the same time. I want them to respawn with their own s…

---

## [Geomerative text question](https://discourse.processing.org/t/geomerative-text-question/24076)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 7\
**Last updated:** [September 24, 2020, 1:07pm UTC](https://discourse.processing.org/t/geomerative-text-question/24076 "2020-09-24T13:07:48Z")

</div>

Hi everyone ! I have a question about Geomerative library. When I am drawing my shape with curveVertex, I can’t control my fill function. Can anyone help me ? My code is :point\_down: import geomerative.\*; RFont f; R…

---

## [Server to app communication](https://discourse.processing.org/t/server-to-app-communication/24098)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 12:46pm UTC](https://discourse.processing.org/t/server-to-app-communication/24098 "2020-09-24T12:46:50Z")

</div>

can p5.js be used for programming an interactive website with a server communicating to a processing app: Around 100 clients should be able to enter the page and set data. Then the server computes an output and a message…

---

## [How to change the colours for the buttons for controlP5 library?](https://discourse.processing.org/t/how-to-change-the-colours-for-the-buttons-for-controlp5-library/24091)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 5\
**Last updated:** [September 24, 2020, 6:53am UTC](https://discourse.processing.org/t/how-to-change-the-colours-for-the-buttons-for-controlp5-library/24091 "2020-09-24T06:53:20Z")

</div>

I am using the controlP5 library and I have these two buttons. I want to have different colours for different buttons. I tried using fill() to change the colour but that doesn’t seem to work. Here is the code. impor…

---

## [Class get set question](https://discourse.processing.org/t/class-get-set-question/24087)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 1:48am UTC](https://discourse.processing.org/t/class-get-set-question/24087 "2020-09-24T01:48:00Z")

</div>

I’ve created an LED class that has worked well for me upto this point. Now, I have an array of leds and I need to know the state (weather it’s on or off) of a particular led. To do that I’ve added getState() to the class…

---

## [Help with shaders](https://discourse.processing.org/t/help-with-shaders/24070)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 1:34am UTC](https://discourse.processing.org/t/help-with-shaders/24070 "2020-09-24T01:34:27Z")

</div>

I’m trying to code a simple shader which will take the mouse position to assign the color of the shader. #ifdef GL\_ES precision mediump float; #endif uniform vec2 u\_resolution; uniform vec2 u\_mouse; uniform float u\_time…

---

## [Is this the best way to do this?](https://discourse.processing.org/t/is-this-the-best-way-to-do-this/24085)

<div class="topic-metadata">

**Author:** [@Captiosus](https://discourse.processing.org/u/Captiosus)\
**Replies:** 3\
**Last updated:** [September 24, 2020, 1:24am UTC](https://discourse.processing.org/t/is-this-the-best-way-to-do-this/24085 "2020-09-24T01:24:41Z")

</div>

Hey everyone! I have just started learning Processing and I wanted to know, are the expressions I am using for the parameters (x,y,w,h) in this code the best way to do them, or is there a much more efficient way. void s…

---

## [How to trigger keypress events in p5.js](https://discourse.processing.org/t/how-to-trigger-keypress-events-in-p5-js/24082)

<div class="topic-metadata">

**Author:** [@yashkhasgiwala](https://discourse.processing.org/u/yashkhasgiwala)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 12:02am UTC](https://discourse.processing.org/t/how-to-trigger-keypress-events-in-p5-js/24082 "2020-09-24T00:02:52Z")

</div>

I want my code to press keyboard keys if a certain condition is True in p5.js library. For example: a = true if (a) { // Press UP Key } else { // Press DOWN Key }

---

## [Text adventure game: go back a page using if-clause?](https://discourse.processing.org/t/text-adventure-game-go-back-a-page-using-if-clause/23967)

<div class="topic-metadata">

**Author:** [@DariusKempton](https://discourse.processing.org/u/DariusKempton)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 3:58pm UTC](https://discourse.processing.org/t/text-adventure-game-go-back-a-page-using-if-clause/23967 "2020-09-23T15:58:07Z")

</div>

I am trying to make it so that if you accidentally select a race that you don’t like, or change your mind, you can choose to go back a page, but i cant quite figure out how to make it more streamlined. currently, if you …

---

## [Produce a pattern](https://discourse.processing.org/t/produce-a-pattern/23980)

<div class="topic-metadata">

**Author:** [@Val1](https://discourse.processing.org/u/Val1)\
**Replies:** 6\
**Last updated:** [September 23, 2020, 1:50pm UTC](https://discourse.processing.org/t/produce-a-pattern/23980 "2020-09-23T13:50:50Z")

</div>

How to produce a pattern from draw quad coding

---

## [Using insert data to adjust volume (beads)](https://discourse.processing.org/t/using-insert-data-to-adjust-volume-beads/24062)

<div class="topic-metadata">

**Author:** [@learningL](https://discourse.processing.org/u/learningL)\
**Replies:** 10\
**Last updated:** [September 23, 2020, 1:04pm UTC](https://discourse.processing.org/t/using-insert-data-to-adjust-volume-beads/24062 "2020-09-23T13:04:48Z")

</div>

I am trying to inset a table and use the data to adjust the volume in gains But I don’t know how to do it since they are in different methods but if i put them together, there will be an error also, i’m using the libra…

---

## [ArrayIndexOutOfBoundsException: 1 error when using String\[\] and split()](https://discourse.processing.org/t/arrayindexoutofboundsexception-1-error-when-using-string-and-split/24016)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 4\
**Last updated:** [September 23, 2020, 9:58am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-1-error-when-using-string-and-split/24016 "2020-09-23T09:58:13Z")

</div>

Hi, I am reading temperature values from an ESP8266 (10 temp probes), then putting them into array befor displaying these values however i am getting the ArrayIndexOutOfBoundsException: 1 error when using String\[\] and …

---

## [How to get a difference of one int list/array to another](https://discourse.processing.org/t/how-to-get-a-difference-of-one-int-list-array-to-another/24010)

<div class="topic-metadata">

**Author:** [@AlexAlex](https://discourse.processing.org/u/AlexAlex)\
**Replies:** 3\
**Last updated:** [September 23, 2020, 12:55am UTC](https://discourse.processing.org/t/how-to-get-a-difference-of-one-int-list-array-to-another/24010 "2020-09-23T00:55:57Z")

</div>

Hello everyone, I have two lists/arrays of variable size A, B and I would like to get everything extra a list B might have, that list A does not. public int a = {2,2,3,2,0}; public int b = {3,2,1}; ---------------\> …

---

## [Processing.sound not working](https://discourse.processing.org/t/processing-sound-not-working/24060)

<div class="topic-metadata">

**Author:** [@mwinnicki](https://discourse.processing.org/u/mwinnicki)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 12:51am UTC](https://discourse.processing.org/t/processing-sound-not-working/24060 "2020-09-23T00:51:43Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, For some reason, I keep receiving this error message when I try to run the code, yet, import processing.sound is at the top.

---

## [Gradients and scaling](https://discourse.processing.org/t/gradients-and-scaling/24012)

<div class="topic-metadata">

**Author:** [@shrynx](https://discourse.processing.org/u/shrynx)\
**Replies:** 4\
**Last updated:** [September 22, 2020, 8:52pm UTC](https://discourse.processing.org/t/gradients-and-scaling/24012 "2020-09-22T20:52:16Z")

</div>

Hi, question in two parts. I am able to make gradient shapes in P2D renderer (using fill and vertex) but unable to do so in default renderer. i assume it is related to opengl, anyway to make shape gradients in default …

---

## [The stroke color is mixed with the fill color](https://discourse.processing.org/t/the-stroke-color-is-mixed-with-the-fill-color/24058)

<div class="topic-metadata">

**Author:** [@san1](https://discourse.processing.org/u/san1)\
**Replies:** 1\
**Last updated:** [September 22, 2020, 8:29pm UTC](https://discourse.processing.org/t/the-stroke-color-is-mixed-with-the-fill-color/24058 "2020-09-22T20:29:10Z")

</div>

I drew black as the stroke color and set 1 as the weight, but the stroke color is not black. Please refer to the picture and code below. var canvasWidth = 640; var canvasHeight = 360; var blockSize = 30; function se…

---

## [Creating an App that can communicate over public internet](https://discourse.processing.org/t/creating-an-app-that-can-communicate-over-public-internet/24032)

<div class="topic-metadata">

**Author:** [@rkdnson](https://discourse.processing.org/u/rkdnson)\
**Replies:** 0\
**Last updated:** [September 22, 2020, 4:56pm UTC](https://discourse.processing.org/t/creating-an-app-that-can-communicate-over-public-internet/24032 "2020-09-22T16:56:59Z")

</div>

Hello everyone, I am looking into starting a project that will require communication over public internet. I have experience with local networks but quick tests using websockets or the net library via public IP addresses…

---

## [Make window snap in to the borders](https://discourse.processing.org/t/make-window-snap-in-to-the-borders/23729)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 8\
**Last updated:** [September 22, 2020, 4:19pm UTC](https://discourse.processing.org/t/make-window-snap-in-to-the-borders/23729 "2020-09-22T16:19:04Z")

</div>

Is there a way to make the window snap in, so being fullscreen basically except for the taskbar?

---

## [What is this ~Error when running the command to visualize transit flow in chicago (the tuto on GitHub)](https://discourse.processing.org/t/what-is-this-error-when-running-the-command-to-visualize-transit-flow-in-chicago-the-tuto-on-github/24029)

<div class="topic-metadata">

**Author:** [@Alonso](https://discourse.processing.org/u/Alonso)\
**Replies:** 0\
**Last updated:** [September 22, 2020, 11:56am UTC](https://discourse.processing.org/t/what-is-this-error-when-running-the-command-to-visualize-transit-flow-in-chicago-the-tuto-on-github/24029 "2020-09-22T11:56:58Z")

</div>

I’m new to Processing. I was trying to get the code working based on the following link: \[https://github.com/transitland/transitland-processing-animation\] I’m using Windows 10. The following are the steps to install Pr…

---

## [Changing image with vertical and horizontal gradients](https://discourse.processing.org/t/changing-image-with-vertical-and-horizontal-gradients/23985)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 3\
**Last updated:** [September 22, 2020, 10:43am UTC](https://discourse.processing.org/t/changing-image-with-vertical-and-horizontal-gradients/23985 "2020-09-22T10:43:57Z")

</div>

Idea is pretty simple. Drag mouse over the image and make a gradient to the image based on the mouse drag.To simplify things a bit gradients are made only in horizontal or vertical directions. Here’s an example of what I…

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

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