# Processing

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

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

**Page:** 110

---

## [How can I make some random things less common then others?](https://discourse.processing.org/t/how-can-i-make-some-random-things-less-common-then-others/32747)

<div class="topic-metadata">

**Author:** [@colehodl](https://discourse.processing.org/u/colehodl)\
**Replies:** 4\
**Last updated:** [October 11, 2021, 4:16pm UTC](https://discourse.processing.org/t/how-can-i-make-some-random-things-less-common-then-others/32747 "2021-10-11T16:16:56Z")

</div>

hey! So I’ve been working on a random profile picture generator as an exercise trying to get better with processing. the character consists of 7 random attribute, and I want some attributes to be more common then others…

---

## [Udp packet lost when multiple network interfaces](https://discourse.processing.org/t/udp-packet-lost-when-multiple-network-interfaces/32684)

<div class="topic-metadata">

**Author:** [@shuptuu](https://discourse.processing.org/u/shuptuu)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 8:00am UTC](https://discourse.processing.org/t/udp-packet-lost-when-multiple-network-interfaces/32684 "2021-10-11T08:00:37Z")

</div>

Hi, I made an app with processing, listening for udp packets on a specific port. I was using hypermedia.net. but moved to java udp DatagramSocket and DatagramPacket hoping it will fix my problem, but not, it’s the same… …

---

## [Clipping path in .svg file ignored in Processing](https://discourse.processing.org/t/clipping-path-in-svg-file-ignored-in-processing/32450)

<div class="topic-metadata">

**Author:** [@strfry](https://discourse.processing.org/u/strfry)\
**Replies:** 1\
**Last updated:** [October 10, 2021, 9:29pm UTC](https://discourse.processing.org/t/clipping-path-in-svg-file-ignored-in-processing/32450 "2021-10-10T21:29:26Z")

</div>

Hi everyone, I’m having yet another issue with svg files in processing (though I’m making progress). My current problem is that using my .svg file in processing ignores the clipping path. The clipping path does appear i…

---

## [Trig with triangles](https://discourse.processing.org/t/trig-with-triangles/920)

<div class="topic-metadata">

**Author:** [@Gbhinder](https://discourse.processing.org/u/Gbhinder)\
**Replies:** 5\
**Last updated:** [June 14, 2018, 1:38am UTC](https://discourse.processing.org/t/trig-with-triangles/920 "2018-06-14T01:38:39Z")

</div>

Hi, I’m trying to figure out how I would make a triangle rotate 360 degrees around a center point, I have it working for a circle that can spin around a central location at any given radius, but I cannot seem to figure o…

---

## [How create a filled ArrayList](https://discourse.processing.org/t/how-create-a-filled-arraylist/32721)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [October 10, 2021, 10:21am UTC](https://discourse.processing.org/t/how-create-a-filled-arraylist/32721 "2021-10-10T10:21:12Z")

</div>

Hi! I am trying to make a game for fun. It is about exploring rooms and fighting enemies (similar to ‘enter the gungeon’, but completely 2D, rooms require teleportation to switch and way less mechanics) What I am tryin…

---

## [How to combine mousePressed function with "dist();" in Processing 3?](https://discourse.processing.org/t/how-to-combine-mousepressed-function-with-dist-in-processing-3/32713)

<div class="topic-metadata">

**Author:** [@sebest\_design](https://discourse.processing.org/u/sebest_design)\
**Replies:** 2\
**Last updated:** [October 10, 2021, 7:59am UTC](https://discourse.processing.org/t/how-to-combine-mousepressed-function-with-dist-in-processing-3/32713 "2021-10-10T07:59:02Z")

</div>

Hello. I am working on a school project. I am trying to control the radius value of 3 ellipses using the mousePressed function and the “dist()” thingy. //references float popDRed = dist(balloonRedX, balloonRedY, mouseX,…

---

## [How would you redo these BBC designs #challenge](https://discourse.processing.org/t/how-would-you-redo-these-bbc-designs-challenge/32687)

<div class="topic-metadata">

**Author:** [@dirknbr](https://discourse.processing.org/u/dirknbr)\
**Replies:** 3\
**Last updated:** [October 9, 2021, 5:23pm UTC](https://discourse.processing.org/t/how-would-you-redo-these-bbc-designs-challenge/32687 "2021-10-09T17:23:14Z")

</div>

I really like these BBC idents (between shows). How would you recreate them? I know the 3d ones look really hard. https://theident.gallery/bbc2-2021-special.php

---

## [Need help with classes and passing variables!](https://discourse.processing.org/t/need-help-with-classes-and-passing-variables/934)

<div class="topic-metadata">

**Author:** [@brianna0811](https://discourse.processing.org/u/brianna0811)\
**Replies:** 11\
**Last updated:** [October 5, 2018, 9:13pm UTC](https://discourse.processing.org/t/need-help-with-classes-and-passing-variables/934 "2018-10-05T21:13:33Z")

</div>

Hello all! I’m making a game where the player moves a character left and right and it touches candies. I have three classes - game, candy and player. In the player class - touchCandy() method, it says that some of the v…

---

## [Is there a way to avoid collisions? E.g. 20 circles that don’t overlap](https://discourse.processing.org/t/is-there-a-way-to-avoid-collisions-e-g-20-circles-that-don-t-overlap/32695)

<div class="topic-metadata">

**Author:** [@GoodJuJu](https://discourse.processing.org/u/GoodJuJu)\
**Replies:** 12\
**Last updated:** [October 9, 2021, 11:14am UTC](https://discourse.processing.org/t/is-there-a-way-to-avoid-collisions-e-g-20-circles-that-don-t-overlap/32695 "2021-10-09T11:14:21Z")

</div>

I am just starting out with processing. I wondered if there was a way to prevent ‘collisions‘? For example, I would like to have 20 circles on a canvas and ensure that none of them overlap or touch each other. Is this…

---

## [Fibonacci Numbers in Java - \`O(n)\` time and \`O(1)\` space complexity and without using Recursion](https://discourse.processing.org/t/fibonacci-numbers-in-java-o-n-time-and-o-1-space-complexity-and-without-using-recursion/32694)

<div class="topic-metadata">

**Author:** [@panahur](https://discourse.processing.org/u/panahur)\
**Replies:** 3\
**Last updated:** [October 9, 2021, 12:29am UTC](https://discourse.processing.org/t/fibonacci-numbers-in-java-o-n-time-and-o-1-space-complexity-and-without-using-recursion/32694 "2021-10-09T00:29:01Z")

</div>

How can I get the N-th Fibonacci number with O(n) time and O(1) space complexity. How to calculate Fibonacci numbers without Recursion or Iteration? This is the code that I took from here, using Recursion with Me…

---

## [Kinect 1414 and eye tracking](https://discourse.processing.org/t/kinect-1414-and-eye-tracking/32552)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 3\
**Last updated:** [October 8, 2021, 10:38pm UTC](https://discourse.processing.org/t/kinect-1414-and-eye-tracking/32552 "2021-10-08T22:38:22Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, could you lead me in the build of an eye tracker with a kinect 1414?

---

## [Is it possible to have the reflect of light of facet ball? (Disco ball)](https://discourse.processing.org/t/is-it-possible-to-have-the-reflect-of-light-of-facet-ball-disco-ball/32532)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [October 8, 2021, 8:22pm UTC](https://discourse.processing.org/t/is-it-possible-to-have-the-reflect-of-light-of-facet-ball-disco-ball/32532 "2021-10-08T20:22:49Z")

</div>

Hello, I made a program with two balls which returns the light coming from different place thanks to the mouse. I would like to change these balls into a mirror ball (like in clubs) and have the rays of light returned …

---

## [Fibonacci Numbers in Java](https://discourse.processing.org/t/fibonacci-numbers-in-java/32693)

<div class="topic-metadata">

**Author:** [@panahur](https://discourse.processing.org/u/panahur)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 4:08pm UTC](https://discourse.processing.org/t/fibonacci-numbers-in-java/32693 "2021-10-08T16:08:32Z")

</div>

I started reading about Fibonacci Numbers in Java and was curious to know from this community about - What are the ways we can print Fibonacci Numbers in Java?

---

## [Switch mouse control between PeasyCam and just 3d mode \[solved\]](https://discourse.processing.org/t/switch-mouse-control-between-peasycam-and-just-3d-mode-solved/32650)

<div class="topic-metadata">

**Author:** [@adamcoeck3](https://discourse.processing.org/u/adamcoeck3)\
**Replies:** 8\
**Last updated:** [October 8, 2021, 5:56am UTC](https://discourse.processing.org/t/switch-mouse-control-between-peasycam-and-just-3d-mode-solved/32650 "2021-10-08T05:56:24Z")

</div>

Hello there. This is my first post on this forum. I am using PeasyCam in my code and the problem is that I want to click on one of the spheres and draw a 3d curve continuously from it to the second sphere (and so cut the…

---

## [How to keep a square shape from blinking when spacebar is pressed](https://discourse.processing.org/t/how-to-keep-a-square-shape-from-blinking-when-spacebar-is-pressed/32683)

<div class="topic-metadata">

**Author:** [@newtothis](https://discourse.processing.org/u/newtothis)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 5:33am UTC](https://discourse.processing.org/t/how-to-keep-a-square-shape-from-blinking-when-spacebar-is-pressed/32683 "2021-10-08T05:33:30Z")

</div>

int iArray\[\]=new int\[1000\]; int iIndex=0,iMax=25,iBeat=0; //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* void setup() //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Using ArrayList -- Only One Object Being Displayed](https://discourse.processing.org/t/using-arraylist-only-one-object-being-displayed/32659)

<div class="topic-metadata">

**Author:** [@endymion](https://discourse.processing.org/u/endymion)\
**Replies:** 8\
**Last updated:** [October 8, 2021, 12:09am UTC](https://discourse.processing.org/t/using-arraylist-only-one-object-being-displayed/32659 "2021-10-08T00:09:36Z")

</div>

I want to have a variable number of objects in an ArrayList and display them all at a time, but my code only displays 1 regardless of the number of objects I have in the list. I think the problem is in my draw function… …

---

## [Surface pro 7 rear camera -](https://discourse.processing.org/t/surface-pro-7-rear-camera/32679)

<div class="topic-metadata">

**Author:** [@Mostafa95khamis](https://discourse.processing.org/u/Mostafa95khamis)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 9:05pm UTC](https://discourse.processing.org/t/surface-pro-7-rear-camera/32679 "2021-10-07T21:05:29Z")

</div>

Hello, Processing can’t access any camera of my surface pro 7. The code runs ok on other Windows laptops. I am not sure whether it’s a privacy thing (as the camera light does not turn on) or it’s due to the surface dev…

---

## [How to post a game on itch.io?](https://discourse.processing.org/t/how-to-post-a-game-on-itch-io/32600)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 5:57pm UTC](https://discourse.processing.org/t/how-to-post-a-game-on-itch-io/32600 "2021-10-07T17:57:51Z")

</div>

How to post a processing game on itch.io? Ps. I didn’t know what category to use

---

## [surface.setResizable(false); doesn't work in the P2D renderer](https://discourse.processing.org/t/surface-setresizable-false-doesnt-work-in-the-p2d-renderer/32620)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 4:10pm UTC](https://discourse.processing.org/t/surface-setresizable-false-doesnt-work-in-the-p2d-renderer/32620 "2021-10-07T16:10:26Z")

</div>

Hello, I have been trying to use the built-in surface.setResizable function to disable the option to resize the processing sketch window in my sketches. However, when I attempt to use this method with the P2D renderer i…

---

## [Editor problem - deleting wrong character](https://discourse.processing.org/t/editor-problem-deleting-wrong-character/32597)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 4:05pm UTC](https://discourse.processing.org/t/editor-problem-deleting-wrong-character/32597 "2021-10-07T16:05:34Z")

</div>

Hi I have worked with Processing 3 last year. Now I have started with Processing 4. However, I have problems with the editor. When deleting to the left(arrow left key) the second to the left character is deleted instea…

---

## [ADSR and playNote with Minim](https://discourse.processing.org/t/adsr-and-playnote-with-minim/16057)

<div class="topic-metadata">

**Author:** [@flariut](https://discourse.processing.org/u/flariut)\
**Replies:** 3\
**Last updated:** [October 7, 2021, 3:46pm UTC](https://discourse.processing.org/t/adsr-and-playnote-with-minim/16057 "2021-10-07T15:46:29Z")

</div>

Hi, I’m having troubles figuring out how to do something with minim. In the ADSR example, we have this: // new ADSR(amp, atk, sus, dec, rel) adsr = new ADSR( 0.5, 0.01, 0.05, 0.5, 0.5 ); However, to call the I…

---

## [How to make a mirror ball? like in a nightclub](https://discourse.processing.org/t/how-to-make-a-mirror-ball-like-in-a-nightclub/32667)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 2:54pm UTC](https://discourse.processing.org/t/how-to-make-a-mirror-ball-like-in-a-nightclub/32667 "2021-10-07T14:54:07Z")

</div>

Hello everyone, For now in my project, I move spheres like pendulums or metronomes. Now instead of spheres, I would like to have mirror balls. Is it easy to create a mirror ball? Later, I would like to light it with …

---

## [Problem with ControlP5 library - Button not working](https://discourse.processing.org/t/problem-with-controlp5-library-button-not-working/32573)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 2:01pm UTC](https://discourse.processing.org/t/problem-with-controlp5-library-button-not-working/32573 "2021-10-07T14:01:48Z")

</div>

Hello everyone! I’m working on a GUI for a project I’m working on, and I thought about using ControlP5 as a library to help me adding GUI features (like buttons, sliders and others). I looked up on how it works, impleme…

---

## [Basic loadStrings() Question](https://discourse.processing.org/t/basic-loadstrings-question/32663)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 12:04pm UTC](https://discourse.processing.org/t/basic-loadstrings-question/32663 "2021-10-07T12:04:45Z")

</div>

Hello all, So I’m messing around with some data and I came across an issue. I would like to get the table from the following URL However the following code produces an error. Table testtable; void setup(){ testta…

---

## [Hello, some question from a beginner (drip effect)](https://discourse.processing.org/t/hello-some-question-from-a-beginner-drip-effect/32041)

<div class="topic-metadata">

**Author:** [@asacool](https://discourse.processing.org/u/asacool)\
**Replies:** 14\
**Last updated:** [October 7, 2021, 9:30am UTC](https://discourse.processing.org/t/hello-some-question-from-a-beginner-drip-effect/32041 "2021-10-07T09:30:04Z")

</div>

Hi, I want to do spray paint effect,but how to cancel the point of the drip effect? (just want only "line "drip) sorry,I just the beginner. thanks!! my code: final int maxIterations = 20; // float x=0; float y=0; …

---

## [Issues adding libraries to Processing for Linux](https://discourse.processing.org/t/issues-adding-libraries-to-processing-for-linux/32656)

<div class="topic-metadata">

**Author:** [@PhineasGreene](https://discourse.processing.org/u/PhineasGreene)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 7:47am UTC](https://discourse.processing.org/t/issues-adding-libraries-to-processing-for-linux/32656 "2021-10-07T07:47:08Z")

</div>

I installed Processing from the Arch Linux AUR, and it works fine except for adding external libraries. When I use the Add Library GUI, I always get an error saying Could not download \[githuburl\] to /tmp/download\[numbers…

---

## [Translate PGS Shape](https://discourse.processing.org/t/translate-pgs-shape/32652)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 7:14am UTC](https://discourse.processing.org/t/translate-pgs-shape/32652 "2021-10-07T07:14:45Z")

</div>

Hi friends, I’m trying to translate a shape with the PGS library. But this code give me no results, the shape does’nt move. It’s the same problem with all function from PGS\_Transformation class. Where I’m wrong ? im…

---

## [Using PShader and GLSL to make swaying grass](https://discourse.processing.org/t/using-pshader-and-glsl-to-make-swaying-grass/32666)

<div class="topic-metadata">

**Author:** [@Vertexia](https://discourse.processing.org/u/Vertexia)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 6:45am UTC](https://discourse.processing.org/t/using-pshader-and-glsl-to-make-swaying-grass/32666 "2021-10-07T06:45:23Z")

</div>

I’m trying to add swaying grass using both a vector and a fragment shader in a 2d game, and I’m up to the point where i need to add the image to the fragment shader. Right now I’m using image() to render the image, but t…

---

## [Let syntax error](https://discourse.processing.org/t/let-syntax-error/32662)

<div class="topic-metadata">

**Author:** [@Arche](https://discourse.processing.org/u/Arche)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 3:34am UTC](https://discourse.processing.org/t/let-syntax-error/32662 "2021-10-07T03:34:35Z")

</div>

I am new to processing and java and was trying to use let but when I compile it says syntax error. Do I have to add a plugin for that and how do I do it?

---

## [Video Pixels Changing While I Process Them](https://discourse.processing.org/t/video-pixels-changing-while-i-process-them/32589)

<div class="topic-metadata">

**Author:** [@stevensrmiller](https://discourse.processing.org/u/stevensrmiller)\
**Replies:** 15\
**Last updated:** [October 6, 2021, 6:52pm UTC](https://discourse.processing.org/t/video-pixels-changing-while-i-process-them/32589 "2021-10-06T18:52:37Z")

</div>

I’m using the Video 2.0 library with Processing 3.5.4 on Windows 10. I start capturing from my laptop’s camera, and just do an xor against 0xFFFFFF for every pixel. The output should look like this: But every so ofte…

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

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