# Processing

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

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

**Page:** 182

---

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

---

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

---

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

---

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

---

## [How to create "Page Peel" or "Page Turn" effect in Processing?](https://discourse.processing.org/t/how-to-create-page-peel-or-page-turn-effect-in-processing/23193)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 11\
**Last updated:** [September 22, 2020, 9:14am UTC](https://discourse.processing.org/t/how-to-create-page-peel-or-page-turn-effect-in-processing/23193 "2020-09-22T09:14:31Z")

</div>

I am looking to recreate the “page turn” or “page peel” effect in Processing for a project. I have a string of text I am displaying and I want to have this page peel away to reveal another page underneath. What do I ne…

---

## [Removing Border from Processing Screen](https://discourse.processing.org/t/removing-border-from-processing-screen/23965)

<div class="topic-metadata">

**Author:** [@BuffaloFan32](https://discourse.processing.org/u/BuffaloFan32)\
**Replies:** 8\
**Last updated:** [September 22, 2020, 1:21am UTC](https://discourse.processing.org/t/removing-border-from-processing-screen/23965 "2020-09-22T01:21:20Z")

</div>

I wrote the script below that takes part of my computer screen and shows a smaller version of it in a tiny window in the corner. I found a helpful thread that helped me remove the toolbar from the top of the window but …

---

## [OutOfMemoryError](https://discourse.processing.org/t/outofmemoryerror/24004)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 1\
**Last updated:** [September 21, 2020, 7:42pm UTC](https://discourse.processing.org/t/outofmemoryerror/24004 "2020-09-21T19:42:32Z")

</div>

Why do you think I am getting this error message? “java.lang.OutOfMemoryError: Cannot allocate new IntPointer(1): totalBytes = 8, physicalBytes = 7249M” I think it’s because of this class I wrote that colors a greyscal…

---

## [Accessing individual channel values of a color var?](https://discourse.processing.org/t/accessing-individual-channel-values-of-a-color-var/23993)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 4\
**Last updated:** [September 21, 2020, 4:55pm UTC](https://discourse.processing.org/t/accessing-individual-channel-values-of-a-color-var/23993 "2020-09-21T16:55:39Z")

</div>

I’m trying to access the individual RGBA channel values of a color variable in Processing. In p5, it seems like color variables are objects, and they have a property called levels, which is an array, which can spit out …

---

## [PraxisLIVE v5 beta-1, libp5x and LWJGL renderer](https://discourse.processing.org/t/praxislive-v5-beta-1-libp5x-and-lwjgl-renderer/22932)

<div class="topic-metadata">

**Author:** [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Replies:** 8\
**Last updated:** [September 21, 2020, 3:40pm UTC](https://discourse.processing.org/t/praxislive-v5-beta-1-libp5x-and-lwjgl-renderer/22932 "2020-09-21T15:40:04Z")

</div>

We’ve just released our first beta of PraxisLIVE v5 at https://github.com/praxis-live/praxis-live/releases and would love to get some testing. PraxisLIVE is a live programming IDE and runtime for Java, and it includes Pr…

---

## [Why P2D is slower than default renderer？](https://discourse.processing.org/t/why-p2d-is-slower-than-default-renderer/23897)

<div class="topic-metadata">

**Author:** [@IpNeNaEcRe](https://discourse.processing.org/u/IpNeNaEcRe)\
**Replies:** 8\
**Last updated:** [September 21, 2020, 10:12am UTC](https://discourse.processing.org/t/why-p2d-is-slower-than-default-renderer/23897 "2020-09-21T10:12:33Z")

</div>

Why P2D is much slower than default renderer? Here is the number of bubbles makes the FPS slower than 30. Default renderer: click 28 times(2800 bubbles) P2D: click 3 times(300 bubbles) P3D: click 55 times(5500 bub…

---

## [Moving a ellipse on a grid with arrow keys](https://discourse.processing.org/t/moving-a-ellipse-on-a-grid-with-arrow-keys/23987)

<div class="topic-metadata">

**Author:** [@Reynaert98](https://discourse.processing.org/u/Reynaert98)\
**Replies:** 3\
**Last updated:** [September 21, 2020, 9:56am UTC](https://discourse.processing.org/t/moving-a-ellipse-on-a-grid-with-arrow-keys/23987 "2020-09-21T09:56:32Z")

</div>

I have an ellipse that can move on a grid by using the arrow keys. I can move the ellipse but since it’s a function called within draw it keeps creating circles after moving with it. I know using background() in draw can…

---

## [Beginning ReacTIVision and Processing](https://discourse.processing.org/t/beginning-reactivision-and-processing/23795)

<div class="topic-metadata">

**Author:** [@AmberInteractive](https://discourse.processing.org/u/AmberInteractive)\
**Replies:** 1\
**Last updated:** [September 20, 2020, 9:53pm UTC](https://discourse.processing.org/t/beginning-reactivision-and-processing/23795 "2020-09-20T21:53:27Z")

</div>

Hi all! I’ve picked back up processing after a while for my uni honours project and I’m struggling to find information about installing reacTIVision and generally setting it up, there’s been a lot of dead links. Any up t…

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

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