# Processing

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

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

**Page:** 2

---

## [Help with code in the book Make: Getting Started with Arduino](https://discourse.processing.org/t/help-with-code-in-the-book-make-getting-started-with-arduino/48831)

<div class="topic-metadata">

**Author:** [@JTR](https://discourse.processing.org/u/JTR)\
**Replies:** 15\
**Last updated:** [June 25, 2026, 7:44pm UTC](https://discourse.processing.org/t/help-with-code-in-the-book-make-getting-started-with-arduino/48831 "2026-06-25T19:44:39Z")

</div>

Hello, I’m new and with no coding experience. I’m trying to learn Arduino with a book of Make, I purchased the book in 2020, yea procrastination sometimes is big. The thing is that when I try to write this code it gives…

---

## [RFC For a VSCode PDE](https://discourse.processing.org/t/rfc-for-a-vscode-pde/48779)

<div class="topic-metadata">

**Author:** [@moon](https://discourse.processing.org/u/moon)\
**Replies:** 5\
**Last updated:** [June 22, 2026, 2:46am UTC](https://discourse.processing.org/t/rfc-for-a-vscode-pde/48779 "2026-06-22T02:46:55Z")

</div>

Hi! We have a RFC (request for comment) around making the PDE a fork of VSCode. This is a pretty intriguing proposal, but we would absolutely love to hear what the community thinks about it! How would this make your l…

---

## [Multiple Sketches In One Export](https://discourse.processing.org/t/multiple-sketches-in-one-export/48705)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 20\
**Last updated:** [June 19, 2026, 10:16pm UTC](https://discourse.processing.org/t/multiple-sketches-in-one-export/48705 "2026-06-19T22:16:40Z")

</div>

I am developing a system containing multiple sketches (currently 4). I want to export them in one package. I believe that I will have to export each individually then put them in one folder. I am thinking that I may need…

---

## [Planned Downtime Monday, June 15th](https://discourse.processing.org/t/planned-downtime-monday-june-15th/48786)

<div class="topic-metadata">

**Author:** [@moon](https://discourse.processing.org/u/moon)\
**Replies:** 0\
**Last updated:** [June 9, 2026, 3:51pm UTC](https://discourse.processing.org/t/planned-downtime-monday-june-15th/48786 "2026-06-09T15:51:23Z")

</div>

Hi all, We have planned downtime for https://processing.org Monday June 15th as we migrate to a new host. If you’ve been using our website, you’ll notice 429 errors pop up eventually, and this is due to a rate-limiter …

---

## [Monitor the speed of my Code](https://discourse.processing.org/t/monitor-the-speed-of-my-code/48738)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 1\
**Last updated:** [June 6, 2026, 10:46am UTC](https://discourse.processing.org/t/monitor-the-speed-of-my-code/48738 "2026-06-06T10:46:03Z")

</div>

Hello all, is there an internal variable like width which tells us how many Code Lines were worked through during the last frame? That would help to monitor the efficiency of some parts of the Sketch in a simple way…

---

## [Mini Pen Plotter](https://discourse.processing.org/t/mini-pen-plotter/48734)

<div class="topic-metadata">

**Author:** [@SPW48](https://discourse.processing.org/u/SPW48)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 12:09am UTC](https://discourse.processing.org/t/mini-pen-plotter/48734 "2026-06-04T00:09:54Z")

</div>

\<Hello, The project is: Making a mini plotter from old CD-ROM stepper motors for the x-axis and y-axis, and a servo motor for the pen lifter. Control is via an Arduino UNO 3 board with a CNC shield and an A4988 stepper…

---

## [VSCode naming conflict issue](https://discourse.processing.org/t/vscode-naming-conflict-issue/48578)

<div class="topic-metadata">

**Author:** [@metrixgo](https://discourse.processing.org/u/metrixgo)\
**Replies:** 1\
**Last updated:** [May 22, 2026, 1:14am UTC](https://discourse.processing.org/t/vscode-naming-conflict-issue/48578 "2026-05-22T01:14:34Z")

</div>

So I made a project in processing and I used VSCode processing extension as the editor. In the code I created: abstract class Obstacle{...} class Rectangle extends Obstacle{...} class Beam extends Obstacle{...} class El…

---

## [Why are there individual keywords for different multiples of π](https://discourse.processing.org/t/why-are-there-individual-keywords-for-different-multiples-of/48519)

<div class="topic-metadata">

**Author:** [@FoxtheEpic](https://discourse.processing.org/u/FoxtheEpic)\
**Replies:** 10\
**Last updated:** [May 21, 2026, 6:02pm UTC](https://discourse.processing.org/t/why-are-there-individual-keywords-for-different-multiples-of/48519 "2026-05-21T18:02:36Z")

</div>

I don’t understand why there are individual keywords for different multiples of π. Why use TWO\_PI when you can just use 2\*PI? Doesn’t it allow for more compact and readable code? I would love it if someone could explain …

---

## [Processing float values: decimal output and IEEE 754 bit patterns](https://discourse.processing.org/t/processing-float-values-decimal-output-and-ieee-754-bit-patterns/48526)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 1\
**Last updated:** [May 21, 2026, 1:53pm UTC](https://discourse.processing.org/t/processing-float-values-decimal-output-and-ieee-754-bit-patterns/48526 "2026-05-21T13:53:10Z")

</div>

Hello folks! Inspired by this recent discussion: Why are there individual keywords for different multiples of π I thought float display and storage deserved a separate topic. Exploration of float display and storage: …

---

## [Displaying a Single Image Across Multiple Fullscreen Displays](https://discourse.processing.org/t/displaying-a-single-image-across-multiple-fullscreen-displays/48574)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 1\
**Last updated:** [May 20, 2026, 3:31pm UTC](https://discourse.processing.org/t/displaying-a-single-image-across-multiple-fullscreen-displays/48574 "2026-05-20T15:31:09Z")

</div>

Hi @MickaelLafontaine777, Following up from your comment on GitHub and prior message, I took a look at your example. The issue is that each fullscreen window currently draws the image independently, so every screen sta…

---

## [Linear compass display to use with a MPU](https://discourse.processing.org/t/linear-compass-display-to-use-with-a-mpu/48060)

<div class="topic-metadata">

**Author:** [@philtkp](https://discourse.processing.org/u/philtkp)\
**Replies:** 55\
**Last updated:** [May 15, 2026, 2:49pm UTC](https://discourse.processing.org/t/linear-compass-display-to-use-with-a-mpu/48060 "2026-05-15T14:49:03Z")

</div>

I’m trying to make a linear compass using a MPU(I2C) and Arduino. I was able to get a regular compass to function properly reading data from the Arduino. Now I’m trying this. I’m using the MouseX() to give me the 0-360 d…

---

## [Adding Processing's core.jar to VS Code](https://discourse.processing.org/t/adding-processings-core-jar-to-vs-code/48500)

<div class="topic-metadata">

**Author:** [@techsupport2544](https://discourse.processing.org/u/techsupport2544)\
**Replies:** 19\
**Last updated:** [May 8, 2026, 11:51am UTC](https://discourse.processing.org/t/adding-processings-core-jar-to-vs-code/48500 "2026-05-08T11:51:27Z")

</div>

Hello! I’m somewhat new to processing and have only used it in IntelliJ / Eclipse, yet I’m trying to configure it inside VSCode. Adding core.jar into referenced libraries allows the program to be run, yet VSCode complai…

---

## [Gradle Template for Processing 4.x with Java 17 (IntelliJ/VS Code ready)](https://discourse.processing.org/t/gradle-template-for-processing-4-x-with-java-17-intellij-vs-code-ready/48013)

<div class="topic-metadata">

**Author:** [@noah-devtech](https://discourse.processing.org/u/noah-devtech)\
**Replies:** 4\
**Last updated:** [May 6, 2026, 10:47pm UTC](https://discourse.processing.org/t/gradle-template-for-processing-4-x-with-java-17-intellij-vs-code-ready/48013 "2026-05-06T22:47:42Z")

</div>

Hi! I’ve been developing a cross-platform template for Processing 4.x using Gradle 9 and Java 17. This project enables the development of Processing sketches as standard Java projects within IDEs like IntelliJ IDEA, Ecli…

---

## [Capture.list() showing duplicate cameras](https://discourse.processing.org/t/capture-list-showing-duplicate-cameras/47153)

<div class="topic-metadata">

**Author:** [@danielcorbani](https://discourse.processing.org/u/danielcorbani)\
**Replies:** 12\
**Last updated:** [May 4, 2026, 2:44pm UTC](https://discourse.processing.org/t/capture-list-showing-duplicate-cameras/47153 "2026-05-04T14:44:30Z")

</div>

Hi everyone! I wonder if anyone could help me understand this issue with hte Video Library in Processing. When I want to select a camera to be used, I call Capture.list() to see all connected cameras, but sometimes it g…

---

## [FX2D renderer reporting lower case keys as upper case](https://discourse.processing.org/t/fx2d-renderer-reporting-lower-case-keys-as-upper-case/48495)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 2\
**Last updated:** [May 4, 2026, 7:28am UTC](https://discourse.processing.org/t/fx2d-renderer-reporting-lower-case-keys-as-upper-case/48495 "2026-05-04T07:28:27Z")

</div>

Hello, The FX2D renderer is reporting lower case key presses as upper case. On my Windows 10 PC this code only prints upper case characters to the console: import processing.javafx.\*; void setup() { size(100, 100…

---

## [Problems with window format](https://discourse.processing.org/t/problems-with-window-format/48463)

<div class="topic-metadata">

**Author:** [@Evolvingcoder](https://discourse.processing.org/u/Evolvingcoder)\
**Replies:** 6\
**Last updated:** [May 2, 2026, 9:27am UTC](https://discourse.processing.org/t/problems-with-window-format/48463 "2026-05-02T09:27:11Z")

</div>

Hi people. I have just started using Processing but already run into problem. I cannot see what is on the left side of the window. It simply seems like my code disappears… Also if I copypaste anything on a new line,…

---

## [IP Camera on Processing](https://discourse.processing.org/t/ip-camera-on-processing/48478)

<div class="topic-metadata">

**Author:** [@danielcorbani](https://discourse.processing.org/u/danielcorbani)\
**Replies:** 2\
**Last updated:** [April 29, 2026, 2:24am UTC](https://discourse.processing.org/t/ip-camera-on-processing/48478 "2026-04-29T02:24:39Z")

</div>

Hi! Is there a way to read an IP camera on Processing? I remember doing so years ago using a library, but I can’t find it anymore. I couldn’t find a way to do it with the regular video library. Thanks

---

## [OpenCV and ball tracking](https://discourse.processing.org/t/opencv-and-ball-tracking/48472)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 3\
**Last updated:** [April 27, 2026, 10:35am UTC](https://discourse.processing.org/t/opencv-and-ball-tracking/48472 "2026-04-27T10:35:08Z")

</div>

Hello Race Fans, It’s been a while since I’ve cobbled anything together in Processing. I’ve been practicing my golf swing and got the brilliant idea to make a shot tracer using opencv. Simple, right? Identify the bal…

---

## [A void function says "parameter p is not used" and giving a null pointer exception](https://discourse.processing.org/t/a-void-function-says-parameter-p-is-not-used-and-giving-a-null-pointer-exception/48469)

<div class="topic-metadata">

**Author:** [@Aribobari](https://discourse.processing.org/u/Aribobari)\
**Replies:** 4\
**Last updated:** [April 26, 2026, 5:32pm UTC](https://discourse.processing.org/t/a-void-function-says-parameter-p-is-not-used-and-giving-a-null-pointer-exception/48469 "2026-04-26T17:32:06Z")

</div>

I am working on a deck loading and shuffling program as a jumping off point to code a playable card game, but the function I am using to get the face of each card is returning a null pointer exception on the first if sta…

---

## [Keyboard Entry Seems To Need Mouse Click To Work](https://discourse.processing.org/t/keyboard-entry-seems-to-need-mouse-click-to-work/48454)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 15\
**Last updated:** [April 25, 2026, 2:35pm UTC](https://discourse.processing.org/t/keyboard-entry-seems-to-need-mouse-click-to-work/48454 "2026-04-25T14:35:32Z")

</div>

keyPressed() does not seem to work at all until I click the mouse. I think others have had this problem but I am not clear as to what the answer was.

---

## [keyPressed() only works sometimes](https://discourse.processing.org/t/keypressed-only-works-sometimes/22340)

<div class="topic-metadata">

**Author:** [@beckerc](https://discourse.processing.org/u/beckerc)\
**Replies:** 5\
**Last updated:** [April 23, 2026, 11:36pm UTC](https://discourse.processing.org/t/keypressed-only-works-sometimes/22340 "2026-04-23T23:36:41Z")

</div>

I have not seen this particular problem addressed here but maybe I have missed it despite searching. When I try to capture keyboard inputs in Processing (such as with the keyPressed function), the code works about 2/3 of…

---

## [Motu M4 Audio 4 channel setup](https://discourse.processing.org/t/motu-m4-audio-4-channel-setup/48446)

<div class="topic-metadata">

**Author:** [@TomC](https://discourse.processing.org/u/TomC)\
**Replies:** 1\
**Last updated:** [April 18, 2026, 8:51pm UTC](https://discourse.processing.org/t/motu-m4-audio-4-channel-setup/48446 "2026-04-18T20:51:05Z")

</div>

Hello: I have a Motu M4 connected to a Win11 machine. I would like to have independent control of 4 oscillators/sound sources. There seems to be a limitation that windows will only allow 2 channels of audio I/O. Is t…

---

## [Using surface.setLocation does not do same thing every time](https://discourse.processing.org/t/using-surface-setlocation-does-not-do-same-thing-every-time/11871)

<div class="topic-metadata">

**Author:** [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Replies:** 12\
**Last updated:** [April 15, 2026, 12:56am UTC](https://discourse.processing.org/t/using-surface-setlocation-does-not-do-same-thing-every-time/11871 "2026-04-15T00:56:55Z")

</div>

I’m using surface.setLocation to position my windows. With the arguments passed into my two windows they should be at the same X and one height difference in the Y. The Y seems ok but the X is off by about 10 or so pixel…

---

## [How do I create a fullscreen window with title bar on my second monitor?](https://discourse.processing.org/t/how-do-i-create-a-fullscreen-window-with-title-bar-on-my-second-monitor/41474)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 8\
**Last updated:** [April 14, 2026, 7:26pm UTC](https://discourse.processing.org/t/how-do-i-create-a-fullscreen-window-with-title-bar-on-my-second-monitor/41474 "2026-04-14T19:26:46Z")

</div>

The title describes the problem. I can use fullScreen() to cover the screen with a window on any monitor. But it doesn’t have a title bar. The following code creates a window with a title bar that covers the screen. Bu…

---

## [P2D transparency issue](https://discourse.processing.org/t/p2d-transparency-issue/48421)

<div class="topic-metadata">

**Author:** [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Replies:** 3\
**Last updated:** [April 12, 2026, 2:27pm UTC](https://discourse.processing.org/t/p2d-transparency-issue/48421 "2026-04-12T14:27:19Z")

</div>

I’ve run into a problem with transparency in the P2D renderer. When rendering an image in PG, the transparent pixels somehow blend into the background. I know I can use blendMode(REPLACE), but then the transparent pixels…

---

## [Could not run the sketch. (ERROR: transport error 202: bind failed:)](https://discourse.processing.org/t/could-not-run-the-sketch-error-transport-error-202-bind-failed/47420)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 5\
**Last updated:** [April 8, 2026, 8:48pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-error-transport-error-202-bind-failed/47420 "2026-04-08T20:48:59Z")

</div>

Hello folks! I occasionally encounter the following error when running sketches: Could not run the sketch: ERROR: transport error 202: bind failed: Permission denied Text copied from console (in blue in con…

---

## [How to get hits for Processing on search engine](https://discourse.processing.org/t/how-to-get-hits-for-processing-on-search-engine/48400)

<div class="topic-metadata">

**Author:** [@jsampson45](https://discourse.processing.org/u/jsampson45)\
**Replies:** 2\
**Last updated:** [April 7, 2026, 2:16am UTC](https://discourse.processing.org/t/how-to-get-hits-for-processing-on-search-engine/48400 "2026-04-07T02:16:36Z")

</div>

Hello? If I need to look something up on Google about Processing what is the best search term for getting relevant hits? “Processing” itself won’t do as it is too general.

---

## [Straight Skeleton - or how to draw a center line in a polygon or shape?](https://discourse.processing.org/t/straight-skeleton-or-how-to-draw-a-center-line-in-a-polygon-or-shape/17208)

<div class="topic-metadata">

**Author:** [@Maxs](https://discourse.processing.org/u/Maxs)\
**Replies:** 24\
**Last updated:** [April 6, 2026, 8:11pm UTC](https://discourse.processing.org/t/straight-skeleton-or-how-to-draw-a-center-line-in-a-polygon-or-shape/17208 "2026-04-06T20:11:27Z")

</div>

Hello, for a project I want to draw a “center line” into a shape/polygon. The picture below shows the letter “H” outlined (this is the data I have) and then the center line in red (this is the data I am looking for). I …

---

## [Can there exist multiple pairs of beginDraw() and endDraw() invoked on the same PGraphics in the same frame?](https://discourse.processing.org/t/can-there-exist-multiple-pairs-of-begindraw-and-enddraw-invoked-on-the-same-pgraphics-in-the-same-frame/48408)

<div class="topic-metadata">

**Author:** [@A-Bomb](https://discourse.processing.org/u/A-Bomb)\
**Replies:** 2\
**Last updated:** [April 6, 2026, 7:01pm UTC](https://discourse.processing.org/t/can-there-exist-multiple-pairs-of-begindraw-and-enddraw-invoked-on-the-same-pgraphics-in-the-same-frame/48408 "2026-04-06T19:01:07Z")

</div>

For example, would the following be legal and produce valid deterministic results: var A = createGraphics(...); var B = createGraphics(...); … // other stuff void draw() { A.beginDraw(); ... // draw shapes and …

---

## [Texture sampling NEAREST in P2D render](https://discourse.processing.org/t/texture-sampling-nearest-in-p2d-render/48399)

<div class="topic-metadata">

**Author:** [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Replies:** 9\
**Last updated:** [April 5, 2026, 9:39am UTC](https://discourse.processing.org/t/texture-sampling-nearest-in-p2d-render/48399 "2026-04-05T09:39:15Z")

</div>

Hi i work with PShader and i really want to get not smoothed pixels from texture2D. How do i set texture sampling NEAREST in PGraphics in P2D render?

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

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