# Latest

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

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

**Page:** 57

---

## [Interface with launchpad x](https://discourse.processing.org/t/interface-with-launchpad-x/43176)

<div class="topic-metadata">

**Author:** [@artomat](https://discourse.processing.org/u/artomat)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 3:17pm UTC](https://discourse.processing.org/t/interface-with-launchpad-x/43176 "2023-11-09T15:17:47Z")

</div>

Looking for a working solution to use launchpad x to trigger processing functions. Thanks

---

## [Halftone like effect](https://discourse.processing.org/t/halftone-like-effect/43172)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 11:59am UTC](https://discourse.processing.org/t/halftone-like-effect/43172 "2023-11-09T11:59:25Z")

</div>

Hallo, i saw this image, and i wonde how can it be achieved I mean, it is NOT following any grid / matrix pattern or wave pattern so to follow and test the images brightness on every spot, so to draw bigger / smaller wh…

---

## [Simple animation displaying inconsistently](https://discourse.processing.org/t/simple-animation-displaying-inconsistently/43116)

<div class="topic-metadata">

**Author:** [@MKCreating](https://discourse.processing.org/u/MKCreating)\
**Replies:** 3\
**Last updated:** [November 7, 2023, 7:47pm UTC](https://discourse.processing.org/t/simple-animation-displaying-inconsistently/43116 "2023-11-07T19:47:51Z")

</div>

Hello, I have created a sketch and the println function shows it all seems to work but the animation just doesn’t seem to show for me. Sometimes when I minimise and then expand the window the lines do show but its very …

---

## [Sorting circles by radius and avoiding overlap between random circles?](https://discourse.processing.org/t/sorting-circles-by-radius-and-avoiding-overlap-between-random-circles/43157)

<div class="topic-metadata">

**Author:** [@i-draw-monkeys](https://discourse.processing.org/u/i-draw-monkeys)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 11:49am UTC](https://discourse.processing.org/t/sorting-circles-by-radius-and-avoiding-overlap-between-random-circles/43157 "2023-11-08T11:49:43Z")

</div>

I have code that generates a certain number of circles of random radii that don’t overlap. I want to be able to order them from smallest to largest in terms of radius so that circle\[0\] is the smallest. I want them sorted…

---

## [Filling the overlap of 2 circles](https://discourse.processing.org/t/filling-the-overlap-of-2-circles/43165)

<div class="topic-metadata">

**Author:** [@SkaterDodo](https://discourse.processing.org/u/SkaterDodo)\
**Replies:** 1\
**Last updated:** [November 8, 2023, 4:56am UTC](https://discourse.processing.org/t/filling-the-overlap-of-2-circles/43165 "2023-11-08T04:56:17Z")

</div>

Hi everyone! So I was wondering if its possible to fill the part that is overlaping of 2 circles overlaping and leave the rest white or in a different color. The problem extends a little from this, but I feel that if I…

---

## [Is it a good way to empty an arrayList?](https://discourse.processing.org/t/is-it-a-good-way-to-empty-an-arraylist/43167)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 4\
**Last updated:** [November 8, 2023, 4:18am UTC](https://discourse.processing.org/t/is-it-a-good-way-to-empty-an-arraylist/43167 "2023-11-08T04:18:25Z")

</div>

Hello, I use an arrayList to store points making a polyline and I want to replace the points each time I press the mouse button. Instead of using a for loop to iterate through the arrayList and remove the items one by …

---

## [Pin Processing to taskbar](https://discourse.processing.org/t/pin-processing-to-taskbar/43160)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 2:07am UTC](https://discourse.processing.org/t/pin-processing-to-taskbar/43160 "2023-11-08T02:07:29Z")

</div>

Hi! I’m using Windows 11 and i can’t pin Processing to my taskbar for some reason, i want it tho. Processing doesn’t seem to be an installed programm. -Libby

---

## [Underlap and overlap](https://discourse.processing.org/t/underlap-and-overlap/43158)

<div class="topic-metadata">

**Author:** [@Ernest](https://discourse.processing.org/u/Ernest)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 11:30pm UTC](https://discourse.processing.org/t/underlap-and-overlap/43158 "2023-11-07T23:30:38Z")

</div>

Hi all, Basic question, sorry. When we draw overlapping circles in a circular pattern - a bit like the petals of a flower - using a for loop, each new circle overlaps the former. However, the first circle is overlappe…

---

## [Basic drawing of circles with segments of lines doesn't function - must be really basic](https://discourse.processing.org/t/basic-drawing-of-circles-with-segments-of-lines-doesnt-function-must-be-really-basic/43161)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 4:06pm UTC](https://discourse.processing.org/t/basic-drawing-of-circles-with-segments-of-lines-doesnt-function-must-be-really-basic/43161 "2023-11-07T16:06:48Z")

</div>

Hello, Tthis sketch doesn’t draw circles using segments of lines as it is expected to do. The positions do not evolve and I don’t understand why. It must be as plain as the nose on your face but I can’t see it… …

---

## [Why does frameRate go slow after exactly 100 get() calls?](https://discourse.processing.org/t/why-does-framerate-go-slow-after-exactly-100-get-calls/43055)

<div class="topic-metadata">

**Author:** [@timpickup1](https://discourse.processing.org/u/timpickup1)\
**Replies:** 5\
**Last updated:** [November 7, 2023, 2:03pm UTC](https://discourse.processing.org/t/why-does-framerate-go-slow-after-exactly-100-get-calls/43055 "2023-11-07T14:03:36Z")

</div>

If you make a get(x,y) call every frame in P5JS, after 100 frames the frameRate suddenly drops from 60fps (or whatever it was set to) to about 14fps (or even slower). This only happens if there are some image objects dra…

---

## [Odd-Even horizontal pixel sorting using fragment shader. Why doesn't it work properly?](https://discourse.processing.org/t/odd-even-horizontal-pixel-sorting-using-fragment-shader-why-doesnt-it-work-properly/43150)

<div class="topic-metadata">

**Author:** [@obry](https://discourse.processing.org/u/obry)\
**Replies:** 0\
**Last updated:** [November 5, 2023, 1:13pm UTC](https://discourse.processing.org/t/odd-even-horizontal-pixel-sorting-using-fragment-shader-why-doesnt-it-work-properly/43150 "2023-11-05T13:13:57Z")

</div>

UPD1: I added the line below right after defining vec2 uv. this solved flipping. But now, it’s clear that pixel sorting doesn’t work properly, THRESHOLD value of 1.0 shouldn’t sort pixels and it indeed isn’t, while valu…

---

## [Restricting touches to be used by P5.js and not the browser: possible?](https://discourse.processing.org/t/restricting-touches-to-be-used-by-p5-js-and-not-the-browser-possible/43149)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 0\
**Last updated:** [November 5, 2023, 1:07pm UTC](https://discourse.processing.org/t/restricting-touches-to-be-used-by-p5-js-and-not-the-browser-possible/43149 "2023-11-05T13:07:44Z")

</div>

Hello, I want to have a multitouch interaction on a sketch using touches. However as soon as I have two or more fingers on the touchscreen the browser interprets the distance between the two first contacts as the zoom f…

---

## [Save 2 pictures at same time with different stroke & fill parameters](https://discourse.processing.org/t/save-2-pictures-at-same-time-with-different-stroke-fill-parameters/43152)

<div class="topic-metadata">

**Author:** [@Gabriel](https://discourse.processing.org/u/Gabriel)\
**Replies:** 3\
**Last updated:** [November 6, 2023, 8:27pm UTC](https://discourse.processing.org/t/save-2-pictures-at-same-time-with-different-stroke-fill-parameters/43152 "2023-11-06T20:27:17Z")

</div>

Hello, I’m not a coder but wish to solve a little problem : How do i save 2 pictures at same time with mousePressed fonction with 2 different “stroke” & “fill” parameters like : PImage img; // Variable init int count…

---

## [Check if mouse is in an arc](https://discourse.processing.org/t/check-if-mouse-is-in-an-arc/43154)

<div class="topic-metadata">

**Author:** [@Batman](https://discourse.processing.org/u/Batman)\
**Replies:** 2\
**Last updated:** [November 5, 2023, 10:36pm UTC](https://discourse.processing.org/t/check-if-mouse-is-in-an-arc/43154 "2023-11-05T22:36:27Z")

</div>

"float cx, cy; float arcRadius; float startAngle, endAngle, rotation; void setup() { size(400, 400); background(255); cx = width / 2; cy = height / 2; arcRadius = 150; } void draw() { background(255); transla…

---

## [Arduino Nano 33 IoT Basic LSM6DS3 Yaw Pitch & Roll on p5js via BLE \[working\]](https://discourse.processing.org/t/arduino-nano-33-iot-basic-lsm6ds3-yaw-pitch-roll-on-p5js-via-ble-working/43125)

<div class="topic-metadata">

**Author:** [@dgomba](https://discourse.processing.org/u/dgomba)\
**Replies:** 1\
**Last updated:** [November 5, 2023, 9:42am UTC](https://discourse.processing.org/t/arduino-nano-33-iot-basic-lsm6ds3-yaw-pitch-roll-on-p5js-via-ble-working/43125 "2023-11-05T09:42:27Z")

</div>

Hi! I’m trying to create a basic cube visualisation of the LSM6DS3 on the Arduino 33 IoT in p5js using ble.js- But I have to say the data I receive is totally random. This is the Arduino code This is the P5js I ex…

---

## [New to Arrays, help making a simple less than 10 lines code](https://discourse.processing.org/t/new-to-arrays-help-making-a-simple-less-than-10-lines-code/43147)

<div class="topic-metadata">

**Author:** [@beginn](https://discourse.processing.org/u/beginn)\
**Replies:** 3\
**Last updated:** [November 5, 2023, 12:54pm UTC](https://discourse.processing.org/t/new-to-arrays-help-making-a-simple-less-than-10-lines-code/43147 "2023-11-05T12:54:21Z")

</div>

Create an array of size 100 and fill it up with random numbers using a loop. Using a loop print all the numbers located at the “odd” indexes (i.e. numbers located at \[1\], \[3\], \[5\] etc.) of the array. I have– int array…

---

## [AI Digits Recognition. Could you share your code?](https://discourse.processing.org/t/ai-digits-recognition-could-you-share-your-code/43145)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 0\
**Last updated:** [November 5, 2023, 1:21am UTC](https://discourse.processing.org/t/ai-digits-recognition-could-you-share-your-code/43145 "2023-11-05T01:21:36Z")

</div>

Hi has anybody written down a Processing script (/library) for handwritten digits recognition? I appreciate the chance to download it and look at it. Thanks Cheers

---

## [A "tool picker" roulette made with p5.js and svelte](https://discourse.processing.org/t/a-tool-picker-roulette-made-with-p5-js-and-svelte/43144)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 0\
**Last updated:** [November 4, 2023, 7:46pm UTC](https://discourse.processing.org/t/a-tool-picker-roulette-made-with-p5-js-and-svelte/43144 "2023-11-04T19:46:52Z")

</div>

I made a small tool for picking a web framework (p5, hydra, svelte, …) using p5.js (I know it sounds recursive and a bit confusing - the aim was for the “code jam” on Glitch - Code Jams) https://code-jam-tool-picker.gli…

---

## [Use GPU instead of iGPU for shaders](https://discourse.processing.org/t/use-gpu-instead-of-igpu-for-shaders/43143)

<div class="topic-metadata">

**Author:** [@TellAJoke](https://discourse.processing.org/u/TellAJoke)\
**Replies:** 1\
**Last updated:** [November 4, 2023, 6:06pm UTC](https://discourse.processing.org/t/use-gpu-instead-of-igpu-for-shaders/43143 "2023-11-04T18:06:16Z")

</div>

How could I force the program to use the GPU instead of the iGPU? \_ Hello. Been developing a program on my desktop, where it runs fine. The issues show when I try to run it on my old laptop. Program uses shaders, rel…

---

## [A possible bug of Processing (?) - cannot resize window by Java2D, but ok by P2D and P3D](https://discourse.processing.org/t/a-possible-bug-of-processing-cannot-resize-window-by-java2d-but-ok-by-p2d-and-p3d/43139)

<div class="topic-metadata">

**Author:** [@Martin\_The\_Sun](https://discourse.processing.org/u/Martin_The_Sun)\
**Replies:** 0\
**Last updated:** [November 4, 2023, 2:06am UTC](https://discourse.processing.org/t/a-possible-bug-of-processing-cannot-resize-window-by-java2d-but-ok-by-p2d-and-p3d/43139 "2023-11-04T02:06:21Z")

</div>

My project allows the users to resize windows. It works fine before in my old PC with Win10 and Processing 4.1.1. Now I change my PC to a new one with Win 11, and with graphics card NVIDIA RTX A4000. I find that I cannot…

---

## [previously, the 3D display was working by reading the information from the sensor, but now the 3D display screen opens, but the figure does not appear.](https://discourse.processing.org/t/previously-the-3d-display-was-working-by-reading-the-information-from-the-sensor-but-now-the-3d-display-screen-opens-but-the-figure-does-not-appear/43132)

<div class="topic-metadata">

**Author:** [@S1ERRA](https://discourse.processing.org/u/S1ERRA)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 1:36pm UTC](https://discourse.processing.org/t/previously-the-3d-display-was-working-by-reading-the-information-from-the-sensor-but-now-the-3d-display-screen-opens-but-the-figure-does-not-appear/43132 "2023-11-03T13:36:07Z")

</div>

import processing.serial.\*; import java.awt.event.KeyEvent; import java.io.IOException; Serial myPort; String data=“”; float roll, pitch; void setup() { size (960, 640, P3D); myPort = new Serial(this, “COM255”, 9…

---

## [Gradient line in p5js webgl context](https://discourse.processing.org/t/gradient-line-in-p5js-webgl-context/43123)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 2\
**Last updated:** [November 3, 2023, 1:14am UTC](https://discourse.processing.org/t/gradient-line-in-p5js-webgl-context/43123 "2023-11-03T01:14:29Z")

</div>

How could one color a line or a group of lines in p5 webgl canvas with linear gradient?

---

## [Unsatisfied link for glvideo](https://discourse.processing.org/t/unsatisfied-link-for-glvideo/43026)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 1\
**Last updated:** [November 2, 2023, 7:02pm UTC](https://discourse.processing.org/t/unsatisfied-link-for-glvideo/43026 "2023-11-02T19:02:43Z")

</div>

Hi everybody I’m working with the up to date version of Processing 4, the last version of Raspberry OS, and I downloaded GL Video using the library manager. It didn’t work so I eventually used Processing video library, …

---

## [Processing can't find the camera - Video Libraries don't work](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128)

<div class="topic-metadata">

**Author:** [@fozon](https://discourse.processing.org/u/fozon)\
**Replies:** 44\
**Last updated:** [November 1, 2023, 11:33pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128 "2023-11-01T23:33:37Z")

</div>

Hey! For some reason whenever I try an example from a library, it doesn’t work. It opens a gray window and after it freezers for a while and then reports an error. For example when I run GettingStartedCapture I get: …

---

## [Raspberry 4 export failure](https://discourse.processing.org/t/raspberry-4-export-failure/38746)

<div class="topic-metadata">

**Author:** [@hugo1](https://discourse.processing.org/u/hugo1)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 10:36am UTC](https://discourse.processing.org/t/raspberry-4-export-failure/38746 "2023-11-01T10:36:44Z")

</div>

Hi! Trying to export an app running great launched via processing IDE, still when it’s exported in “Raspberry Pi 32-bit arm” mode and launched in the terminal I get this error: java.lang.UnsatisfiedLinkError: no proces…

---

## [controlP5 Button solution for android / adpe](https://discourse.processing.org/t/controlp5-button-solution-for-android-adpe/43102)

<div class="topic-metadata">

**Author:** [@anon15123282](https://discourse.processing.org/u/anon15123282)\
**Replies:** 4\
**Last updated:** [November 1, 2023, 1:52am UTC](https://discourse.processing.org/t/controlp5-button-solution-for-android-adpe/43102 "2023-11-01T01:52:34Z")

</div>

Here a solution for the weird behavior of the buttons from controlP5 on Android/adpe where you have to click twice to actually click the button. This solution works with a single click and also with sliding the finger o…

---

## [Processing Java mode return Index of sorted array](https://discourse.processing.org/t/processing-java-mode-return-index-of-sorted-array/43063)

<div class="topic-metadata">

**Author:** [@seany](https://discourse.processing.org/u/seany)\
**Replies:** 1\
**Last updated:** [October 31, 2023, 9:13am UTC](https://discourse.processing.org/t/processing-java-mode-return-index-of-sorted-array/43063 "2023-10-31T09:13:39Z")

</div>

Hello This is my first post. I am using: Processing 4 1293 for Linux In Java mode, I want to sort an array, but want to get the index of the sorted array. Example: array = {1,4,2,4,1,4,3,4,5}; // this is my input} s…

---

## [FTDI USB DMX device (Mac)](https://discourse.processing.org/t/ftdi-usb-dmx-device-mac/24149)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 7\
**Last updated:** [October 31, 2023, 12:08am UTC](https://discourse.processing.org/t/ftdi-usb-dmx-device-mac/24149 "2023-10-31T00:08:13Z")

</div>

I have a cheap ftdi usb to dmx device. I have it working with 3rd party software but I want to try with Processing. There is the OpenDMX library but it is windows only. Anyone know of a similar library for osx? Or mayb…

---

## [Shader breaking when used with createGraphics](https://discourse.processing.org/t/shader-breaking-when-used-with-creategraphics/43088)

<div class="topic-metadata">

**Author:** [@slone](https://discourse.processing.org/u/slone)\
**Replies:** 2\
**Last updated:** [October 30, 2023, 9:02pm UTC](https://discourse.processing.org/t/shader-breaking-when-used-with-creategraphics/43088 "2023-10-30T21:02:00Z")

</div>

Hello :smiling\_face: I’ve ran into some trouble trying to use shaders in conjunction with createGraphics. The shader works fine drawing to the main canvas, and can be used within a createGraphics canvas once, however af…

---

## [How to use computer shaders with Processing](https://discourse.processing.org/t/how-to-use-computer-shaders-with-processing/43092)

<div class="topic-metadata">

**Author:** [@Batman](https://discourse.processing.org/u/Batman)\
**Replies:** 2\
**Last updated:** [October 30, 2023, 7:41pm UTC](https://discourse.processing.org/t/how-to-use-computer-shaders-with-processing/43092 "2023-10-30T19:41:48Z")

</div>

Hello. I am trying to create Boids but there limits to just using the CPU especially when you want about 50000 birds flying about. I am pretty experienced in processing but I have never dived into the shader side of it …

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

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