# Latest

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

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

**Page:** 187

---

## [Beginner needs help: unclear behaviour of a self written function (Minimax)](https://discourse.processing.org/t/beginner-needs-help-unclear-behaviour-of-a-self-written-function-minimax/32511)

<div class="topic-metadata">

**Author:** [@arathorn76](https://discourse.processing.org/u/arathorn76)\
**Replies:** 9\
**Last updated:** [October 10, 2021, 9:48am UTC](https://discourse.processing.org/t/beginner-needs-help-unclear-behaviour-of-a-self-written-function-minimax/32511 "2021-10-10T09:48:34Z")

</div>

Hi all, I´m just beginning to try out Javascript and after watching some Coding Train videos decided to give p5js and its online editor a try. Now I made a mistake and can´t figure it out. Detailed questions at the en…

---

## [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 to declare floating numbers, assuming this is the problem](https://discourse.processing.org/t/how-to-declare-floating-numbers-assuming-this-is-the-problem/32690)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 5\
**Last updated:** [October 10, 2021, 1:42am UTC](https://discourse.processing.org/t/how-to-declare-floating-numbers-assuming-this-is-the-problem/32690 "2021-10-10T01:42:05Z")

</div>

I have errors with the following PyProcessing code below. The first error I get is TypeError: can’t multiply sequence by non-int of type ‘float’ on the line 'v\_lat=v\_lat\*0.0174533 ’ I think this is due to v\_lat bein…

---

## [Image Object Array not displaying correctly](https://discourse.processing.org/t/image-object-array-not-displaying-correctly/32704)

<div class="topic-metadata">

**Author:** [@Alexander\_Kessler](https://discourse.processing.org/u/Alexander_Kessler)\
**Replies:** 5\
**Last updated:** [October 9, 2021, 5:51pm UTC](https://discourse.processing.org/t/image-object-array-not-displaying-correctly/32704 "2021-10-09T17:51:55Z")

</div>

Need some help trying to make an object image array based on Daniel Shiffman tut, but having this console error while displaying . " image() was expecting p5.Image|p5.Element for the first parameter, received an empty v…

---

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

---

## [Javascript doesn't support SIMD](https://discourse.processing.org/t/javascript-doesnt-support-simd/32672)

<div class="topic-metadata">

**Author:** [@yang](https://discourse.processing.org/u/yang)\
**Replies:** 5\
**Last updated:** [October 9, 2021, 7:44am UTC](https://discourse.processing.org/t/javascript-doesnt-support-simd/32672 "2021-10-09T07:44:29Z")

</div>

I’m making a 3d rendering demo using p5, but I’m depressed because I notice that javascript doesn’t have SIMD and thus cannot perform fast vector caculation. Should I switch to c or c++? p5 is a really good platform and …

---

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

---

## [Get pixels in instance mode](https://discourse.processing.org/t/get-pixels-in-instance-mode/32689)

<div class="topic-metadata">

**Author:** [@mark75](https://discourse.processing.org/u/mark75)\
**Replies:** 5\
**Last updated:** [October 8, 2021, 8:41pm UTC](https://discourse.processing.org/t/get-pixels-in-instance-mode/32689 "2021-10-08T20:41:03Z")

</div>

Hello there, I’m having an odd moment with trying to get pixels from an image in instance mode. I’m unable to reference the image as one would normally \>\>\> let pix = p.img.get(p.x, p.y); What am I doing wrong? Any poin…

---

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

---

## [Full screen issue](https://discourse.processing.org/t/full-screen-issue/32692)

<div class="topic-metadata">

**Author:** [@unique](https://discourse.processing.org/u/unique)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 5:23pm UTC](https://discourse.processing.org/t/full-screen-issue/32692 "2021-10-08T17:23:41Z")

</div>

when i run the program it executes perfectly in right side output area, but when i run same program it will not display in full screen, only 20% of screen will be displayed on top , tried in 5 laptops but same issue in …

---

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

---

## [\[Android\] Has anyone tried beaconing through 'Processing'?](https://discourse.processing.org/t/android-has-anyone-tried-beaconing-through-processing/32686)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 7\
**Last updated:** [October 8, 2021, 8:02am UTC](https://discourse.processing.org/t/android-has-anyone-tried-beaconing-through-processing/32686 "2021-10-08T08:02:27Z")

</div>

Beacon-related materials are as follows. TimedBeaconSimulator.java BeaconReferenceApplication.java MonitoringActivity.java RangingActivity.java LINK: It is difficult to make the library suitable for ‘Processing’…

---

## [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() //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [\[Android\] BLE UART(GATT) communication source code](https://discourse.processing.org/t/android-ble-uart-gatt-communication-source-code/32685)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 1:57am UTC](https://discourse.processing.org/t/android-ble-uart-gatt-communication-source-code/32685 "2021-10-08T01:57:43Z")

</div>

I didn’t make it, but I share the source code. Tested on BLE 5.0, it works well. A packet sending and receiving test was conducted. Have a nice day.

---

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

---

## [Hiring a Founding Full Stack Engineer | YC Startup Using p5 to Teach Math](https://discourse.processing.org/t/hiring-a-founding-full-stack-engineer-yc-startup-using-p5-to-teach-math/32678)

<div class="topic-metadata">

**Author:** [@StriveMath](https://discourse.processing.org/u/StriveMath)\
**Replies:** 0\
**Last updated:** [October 7, 2021, 6:51pm UTC](https://discourse.processing.org/t/hiring-a-founding-full-stack-engineer-yc-startup-using-p5-to-teach-math/32678 "2021-10-07T18:51:58Z")

</div>

Hi Processing community :wave: Strive Math (YC S21) - https://www.strivemath.com/ is hiring a founding engineer. We use p5js to teach high school math like in this video https://www.youtube.com/watch?v=5eYoCqV19lc&t=6s t…

---

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

---

## [How to create angled SVG file from an image?](https://discourse.processing.org/t/how-to-create-angled-svg-file-from-an-image/32618)

<div class="topic-metadata">

**Author:** [@Ajones](https://discourse.processing.org/u/Ajones)\
**Replies:** 9\
**Last updated:** [October 7, 2021, 5:42pm UTC](https://discourse.processing.org/t/how-to-create-angled-svg-file-from-an-image/32618 "2021-10-07T17:42:13Z")

</div>

Hello, I am using \[sine waves portrait\] by \[iamrobin\] and I would like to change the angle on the lines also I would like to save the result as an SVG file instead of a PNG. I have been reading for 2 days now but I am …

---

## [Blendmode in Webgl](https://discourse.processing.org/t/blendmode-in-webgl/32676)

<div class="topic-metadata">

**Author:** [@rickard](https://discourse.processing.org/u/rickard)\
**Replies:** 0\
**Last updated:** [October 7, 2021, 5:42pm UTC](https://discourse.processing.org/t/blendmode-in-webgl/32676 "2021-10-07T17:42:09Z")

</div>

Hi, Not sure if i’m missing something complete obvious here but i’m not getting the blendMode to work when running a the sketch in webgl mode. Example code below. function setup() { createCanvas(400, 400, WEBGL); } …

---

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

---

## [Minecraft in 2d](https://discourse.processing.org/t/minecraft-in-2d/29614)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 4\
**Last updated:** [October 7, 2021, 3:57pm UTC](https://discourse.processing.org/t/minecraft-in-2d/29614 "2021-10-07T15:57:29Z")

</div>

hello I plan to do Minecraft in 2d and already have a designer so blocks too … now I just don’t know how to start can someone help me ^^?

---

## [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 add Processing to Android Studio?](https://discourse.processing.org/t/how-to-add-processing-to-android-studio/32642)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 6\
**Last updated:** [October 7, 2021, 3:01pm UTC](https://discourse.processing.org/t/how-to-add-processing-to-android-studio/32642 "2021-10-07T15:01:52Z")

</div>

how to add processing to android studio?

---

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

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

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