# Processing

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

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

**Page:** 30

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Getting accented typed chars from keys (like "é")](https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 2\
**Last updated:** [October 30, 2023, 4:40pm UTC](https://discourse.processing.org/t/getting-accented-typed-chars-from-keys-like-e/43099 "2023-10-30T16:40:03Z")

</div>

I found this answer from @George on StackOverflow but it doesn’t work for me: I’m on Linux using a Portuguese Layout that uses “dead keys”(?) like “backtick” + a to make à or “acute” + e to make é. Any tips?

---

## [P3D transparency Issue](https://discourse.processing.org/t/p3d-transparency-issue/43089)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 0\
**Last updated:** [October 29, 2023, 4:40pm UTC](https://discourse.processing.org/t/p3d-transparency-issue/43089 "2023-10-29T16:40:49Z")

</div>

Hi! I tried drawing a transparent image in P3D, and it does not look correct. I heard on other posts, you could firstly draw the non transparent blocks and then the transparent ones, but that is a bad option, because in …

---

## [Video delay effect, adjustable delay time](https://discourse.processing.org/t/video-delay-effect-adjustable-delay-time/43067)

<div class="topic-metadata">

**Author:** [@ilya.z](https://discourse.processing.org/u/ilya.z)\
**Replies:** 4\
**Last updated:** [October 29, 2023, 4:42pm UTC](https://discourse.processing.org/t/video-delay-effect-adjustable-delay-time/43067 "2023-10-29T16:42:50Z")

</div>

I want to create a (live) video delay effect with adjustable delay time. (tweaking delay time with mouseX). Works ok at start, but then delayed image suddenly disappears. Two video images: one without delay, and on to…

---

## [Minecraft-Like Clone Lagging too much](https://discourse.processing.org/t/minecraft-like-clone-lagging-too-much/43083)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 4\
**Last updated:** [October 29, 2023, 12:45am UTC](https://discourse.processing.org/t/minecraft-like-clone-lagging-too-much/43083 "2023-10-29T00:45:44Z")

</div>

Hi! I am programming a Minecraft Like Clone in processing to learn more about the language. I have an RTX3050 but rendering 6800 triangles is only running at 20FPS. It would be helpfull if someone could explain me why it…

---

## [I don't understand why when I use surface.setResizable(true); my draw stops working.](https://discourse.processing.org/t/i-dont-understand-why-when-i-use-surface-setresizable-true-my-draw-stops-working/43080)

<div class="topic-metadata">

**Author:** [@Nokuraion](https://discourse.processing.org/u/Nokuraion)\
**Replies:** 4\
**Last updated:** [October 28, 2023, 3:43pm UTC](https://discourse.processing.org/t/i-dont-understand-why-when-i-use-surface-setresizable-true-my-draw-stops-working/43080 "2023-10-28T15:43:42Z")

</div>

Here’s my code. int canvasWidth = 800; int canvasHeight = 600; int i=0; void setup() { surface.setResizable(true); } void draw() { circle(100,100,100); i++; println(i); } void settings() { size(canvasWidt…

---

## [Make window be always focused](https://discourse.processing.org/t/make-window-be-always-focused/43059)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 2\
**Last updated:** [October 28, 2023, 1:52pm UTC](https://discourse.processing.org/t/make-window-be-always-focused/43059 "2023-10-28T13:52:51Z")

</div>

Hi! Is there a possibility to make a window be forced to always stay focused? Thanks for any advice in advance, -Libby :slight\_smile:

---

## [Jump in Processing?](https://discourse.processing.org/t/jump-in-processing/43025)

<div class="topic-metadata">

**Author:** [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Replies:** 4\
**Last updated:** [October 27, 2023, 10:31am UTC](https://discourse.processing.org/t/jump-in-processing/43025 "2023-10-27T10:31:40Z")

</div>

Hello, I know that processing is not very suitable for this purpose but I want to make a small pixel game with it. I need the character to jump a certain height in a certain time. I’ve already written some code. main: …

---

## [BoofCV not working properly with P2D/P3D](https://discourse.processing.org/t/boofcv-not-working-properly-with-p2d-p3d/42969)

<div class="topic-metadata">

**Author:** [@Shchahliak\_Stas](https://discourse.processing.org/u/Shchahliak_Stas)\
**Replies:** 1\
**Last updated:** [October 25, 2023, 7:36pm UTC](https://discourse.processing.org/t/boofcv-not-working-properly-with-p2d-p3d/42969 "2023-10-25T19:36:26Z")

</div>

I’ve been trying to make webcam QR code detection with BoofCV. I use the DetectQrCode example from BoofCV repository. For my application I need it to work at 60fps (with resizing the image from 640\*480 to 1440x1080), whi…

---

## [Creating detached windows](https://discourse.processing.org/t/creating-detached-windows/42987)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 34\
**Last updated:** [October 24, 2023, 7:29pm UTC](https://discourse.processing.org/t/creating-detached-windows/42987 "2023-10-24T19:29:37Z")

</div>

Hi! I found some code by others here, who helped me to create processing applications that don’t have a default windows title bar. This inspired me to try this, I just don’t know on how to start. Now, I want to know, i…

---

## [Video library problems -- loop() and initiation location](https://discourse.processing.org/t/video-library-problems-loop-and-initiation-location/43041)

<div class="topic-metadata">

**Author:** [@LuisGranados](https://discourse.processing.org/u/LuisGranados)\
**Replies:** 0\
**Last updated:** [October 23, 2023, 6:52pm UTC](https://discourse.processing.org/t/video-library-problems-loop-and-initiation-location/43041 "2023-10-23T18:52:07Z")

</div>

I am encountering problems trying to use the video library in Processing 4.3 on Windows 11. First, the loop() method within the Movie object does not work as it is supposed to. Even when I cut and paste the exact code f…

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

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