# Processing

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

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

**Page:** 42

---

## [Processing OpenGL issue under Linux](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 4\
**Last updated:** [April 16, 2023, 2:52pm UTC](https://discourse.processing.org/t/processing-opengl-issue-under-linux/40677 "2023-04-16T14:52:33Z")

</div>

There seems to be a general issue with OpenGL at least since 3.5.4. under Linux. There are different threads for this and they stay mostly unresolved. I have the same issue and cannot use 3D in Processing after updating…

---

## [Why does my Arduino code not register data from Processing?](https://discourse.processing.org/t/why-does-my-arduino-code-not-register-data-from-processing/41719)

<div class="topic-metadata">

**Author:** [@REK166](https://discourse.processing.org/u/REK166)\
**Replies:** 4\
**Last updated:** [April 16, 2023, 2:47pm UTC](https://discourse.processing.org/t/why-does-my-arduino-code-not-register-data-from-processing/41719 "2023-04-16T14:47:22Z")

</div>

I am trying to control a 32x32 led matrix display using Processing. My Arduino code works fine, as far as i can tell. It can interact with my display and if i send text using the Arduino IDEs serial monitor, the LEDs lig…

---

## [List of cameras available but none accessible](https://discourse.processing.org/t/list-of-cameras-available-but-none-accessible/41721)

<div class="topic-metadata">

**Author:** [@loom](https://discourse.processing.org/u/loom)\
**Replies:** 2\
**Last updated:** [April 16, 2023, 1:11pm UTC](https://discourse.processing.org/t/list-of-cameras-available-but-none-accessible/41721 "2023-04-16T13:11:13Z")

</div>

Hi there! I’m trying to run a code that needs to use a camera using the processing.video library but would give me errors. After some trial and error, I found that processing is able to list out the cameras that are con…

---

## [Creating an equalizer in Processing 4 (preferably using the Minim library)](https://discourse.processing.org/t/creating-an-equalizer-in-processing-4-preferably-using-the-minim-library/41735)

<div class="topic-metadata">

**Author:** [@TT3overnot](https://discourse.processing.org/u/TT3overnot)\
**Replies:** 1\
**Last updated:** [April 16, 2023, 1:52pm UTC](https://discourse.processing.org/t/creating-an-equalizer-in-processing-4-preferably-using-the-minim-library/41735 "2023-04-16T13:52:13Z")

</div>

I recently started work on a simple music player in processing using the minim library. The program is almost ready just one thing left, equalization. Put simpler I am trying to play certain frequencies louder than other…

---

## ["Translation Trouble " while installing Processing 4.2](https://discourse.processing.org/t/translation-trouble-while-installing-processing-4-2/41730)

<div class="topic-metadata">

**Author:** [@Tawsif\_Khan](https://discourse.processing.org/u/Tawsif_Khan)\
**Replies:** 2\
**Last updated:** [April 15, 2023, 11:32am UTC](https://discourse.processing.org/t/translation-trouble-while-installing-processing-4-2/41730 "2023-04-15T11:32:29Z")

</div>

Hi Having problem while opening the Processing 4.2 .exe

---

## [Artificial intelligence for pong](https://discourse.processing.org/t/artificial-intelligence-for-pong/41713)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 5\
**Last updated:** [April 15, 2023, 7:16am UTC](https://discourse.processing.org/t/artificial-intelligence-for-pong/41713 "2023-04-15T07:16:57Z")

</div>

I’m trying to do the pong, I haven’t added the collision with the rackets yet because I’m trying to understand the collisions. What I would like to know is how to make the racket that controls the cpu have a little inte…

---

## [Preserving Stroke Color in PGS Library when subtracting Shapes](https://discourse.processing.org/t/preserving-stroke-color-in-pgs-library-when-subtracting-shapes/41612)

<div class="topic-metadata">

**Author:** [@hotti](https://discourse.processing.org/u/hotti)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 4:31am UTC](https://discourse.processing.org/t/preserving-stroke-color-in-pgs-library-when-subtracting-shapes/41612 "2023-04-14T04:31:40Z")

</div>

Hello everyone, I have a question about using the Processing Geometry Suite (PGS) library. I’m working on a code that subtracts a ‘circleShape’ from a collection of lines called ‘lines’. When generating the ‘lines’, I…

---

## [Game pause and return key issues](https://discourse.processing.org/t/game-pause-and-return-key-issues/41702)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 6\
**Last updated:** [April 13, 2023, 7:04pm UTC](https://discourse.processing.org/t/game-pause-and-return-key-issues/41702 "2023-04-13T19:04:41Z")

</div>

I have an application that manages the title screen and the game screen. I would like to know how to do so that when it is in the game screen and the “p” key is pressed, the game is paused and when it is paused and it is…

---

## [JFrame does not show top bar after it is exported as application](https://discourse.processing.org/t/jframe-does-not-show-top-bar-after-it-is-exported-as-application/41668)

<div class="topic-metadata">

**Author:** [@Martin\_The\_Sun](https://discourse.processing.org/u/Martin_The_Sun)\
**Replies:** 3\
**Last updated:** [April 13, 2023, 7:56am UTC](https://discourse.processing.org/t/jframe-does-not-show-top-bar-after-it-is-exported-as-application/41668 "2023-04-13T07:56:43Z")

</div>

Hi, my program displays an interface inside a JFrame and this JFrame has a top bar as what an usual JFrame has. When I used Processing 3, this top bar can be seen either when i run the program inside Processing or export…

---

## [Shape generator help (Armin Hofmann’s ‘rubber band’ shape generator) #2](https://discourse.processing.org/t/shape-generator-help-armin-hofmann-s-rubber-band-shape-generator-2/41693)

<div class="topic-metadata">

**Author:** [@SvenHW](https://discourse.processing.org/u/SvenHW)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 1:28am UTC](https://discourse.processing.org/t/shape-generator-help-armin-hofmann-s-rubber-band-shape-generator-2/41693 "2023-04-13T01:28:35Z")

</div>

Can someone help me with my code? I tried to auto generate the shapes from Armin Hofmann but don’t know how to get further. This is what I have now: This his how it should be:

---

## [Debayering images from cameras](https://discourse.processing.org/t/debayering-images-from-cameras/41520)

<div class="topic-metadata">

**Author:** [@animalfrommars](https://discourse.processing.org/u/animalfrommars)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 3:52pm UTC](https://discourse.processing.org/t/debayering-images-from-cameras/41520 "2023-04-12T15:52:29Z")

</div>

Hello, I’ve got to cameras from “Imaging Source”. I’ve just resolved the problem of connection but i receive raw images and need to Debayer it but don’t know how to do that… I’ have also a problem with the video Libra…

---

## [Chess board overfilling height](https://discourse.processing.org/t/chess-board-overfilling-height/41695)

<div class="topic-metadata">

**Author:** [@cornelius](https://discourse.processing.org/u/cornelius)\
**Replies:** 8\
**Last updated:** [April 12, 2023, 1:04pm UTC](https://discourse.processing.org/t/chess-board-overfilling-height/41695 "2023-04-12T13:04:18Z")

</div>

Hi I’ve just started using processing. I’ll put the code below, but first the problem. I have to setup a 14x14 chessboard in a 672x672 board (plus a 120 pixel-wide sidebar, where each tile is 48 pixels square. I set up…

---

## [Color differences between on-screen and saved image (Mac)](https://discourse.processing.org/t/color-differences-between-on-screen-and-saved-image-mac/41680)

<div class="topic-metadata">

**Author:** [@RichyHo](https://discourse.processing.org/u/RichyHo)\
**Replies:** 8\
**Last updated:** [April 11, 2023, 8:54pm UTC](https://discourse.processing.org/t/color-differences-between-on-screen-and-saved-image-mac/41680 "2023-04-11T20:54:15Z")

</div>

Similar to this, I am experiencing color consistency problems on my M1 Macbook Pro using the latest version of Processing. Image looks vibrant on screen. If I do a screen grab within the OS then the colors are maintaine…

---

## [Check a match with serial port. How to make a simple test? Should I use a class?](https://discourse.processing.org/t/check-a-match-with-serial-port-how-to-make-a-simple-test-should-i-use-a-class/41683)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [April 11, 2023, 2:30pm UTC](https://discourse.processing.org/t/check-a-match-with-serial-port-how-to-make-a-simple-test-should-i-use-a-class/41683 "2023-04-11T14:30:34Z")

</div>

Hi everyones! I tried to create a class to list what is plugged on serial port. Then if a string match with a specific port, I want to see if it is true or not. the program listing port is below import processing.ser…

---

## [Hi I need help with this question (triangle at mouse position)](https://discourse.processing.org/t/hi-i-need-help-with-this-question-triangle-at-mouse-position/41593)

<div class="topic-metadata">

**Author:** [@Computerscience](https://discourse.processing.org/u/Computerscience)\
**Replies:** 4\
**Last updated:** [April 9, 2023, 9:07pm UTC](https://discourse.processing.org/t/hi-i-need-help-with-this-question-triangle-at-mouse-position/41593 "2023-04-09T21:07:24Z")

</div>

Write a program to draw a triangle() with its center at the mouse pointer. The triangle should not change size or rotate as it moves. Give each triangle a different fill() colour. Try using a different mouse cursor.

---

## [addMouseWheelListener not recognized in MapThing example](https://discourse.processing.org/t/addmousewheellistener-not-recognized-in-mapthing-example/41662)

<div class="topic-metadata">

**Author:** [@mikLomba](https://discourse.processing.org/u/mikLomba)\
**Replies:** 6\
**Last updated:** [April 9, 2023, 8:51pm UTC](https://discourse.processing.org/t/addmousewheellistener-not-recognized-in-mapthing-example/41662 "2023-04-09T20:51:31Z")

</div>

I installed the MapThing library. When i try to run the example i get the error “addMouseWheelListener dindn’t exist”. This occurs both using processing 3 or 4 and on different PC. What’s wrong ?

---

## [Flat bed scanner image input to Processing](https://discourse.processing.org/t/flat-bed-scanner-image-input-to-processing/41663)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 0\
**Last updated:** [April 9, 2023, 4:46pm UTC](https://discourse.processing.org/t/flat-bed-scanner-image-input-to-processing/41663 "2023-04-09T16:46:22Z")

</div>

Has anyone found a lib or way to communicate with a usb flatbed scanner to scan and input images for processing program directly? I don’t want to use a different app to scan the images, I want to scan them with processi…

---

## [How can i improve the performance of this code?](https://discourse.processing.org/t/how-can-i-improve-the-performance-of-this-code/41645)

<div class="topic-metadata">

**Author:** [@Drachenbauer](https://discourse.processing.org/u/Drachenbauer)\
**Replies:** 2\
**Last updated:** [April 9, 2023, 7:50pm UTC](https://discourse.processing.org/t/how-can-i-improve-the-performance-of-this-code/41645 "2023-04-09T19:50:08Z")

</div>

Hello i made this work on recent Processing 4: yoyleCityWords But rendering the city in full style (press “T” while running the code) takes about a minute. it takes a red and green picture of 120 pixels width and 80 p…

---

## [\`keyPressed\` event does not trigger with Java project referencing \`core.jar\`](https://discourse.processing.org/t/keypressed-event-does-not-trigger-with-java-project-referencing-core-jar/41655)

<div class="topic-metadata">

**Author:** [@benjamin-thomas](https://discourse.processing.org/u/benjamin-thomas)\
**Replies:** 4\
**Last updated:** [April 8, 2023, 5:27pm UTC](https://discourse.processing.org/t/keypressed-event-does-not-trigger-with-java-project-referencing-core-jar/41655 "2023-04-08T17:27:18Z")

</div>

Hello! I’d like to play with Processing, but I’d favor using IntelliJ rather than the custom IDE. I’ve managed to get a basic project running, however the key events don’t seem to register. Here’s a minimal example. i…

---

## [Group SVG loaded shape](https://discourse.processing.org/t/group-svg-loaded-shape/41636)

<div class="topic-metadata">

**Author:** [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Replies:** 5\
**Last updated:** [April 7, 2023, 7:37am UTC](https://discourse.processing.org/t/group-svg-loaded-shape/41636 "2023-04-07T07:37:24Z")

</div>

Hello, i’m playing with drawn letters in svg, and put together to build words. Something to make poster drawn by an axidraw I would like to group letters to manipulate group easily. (center word in the screen, etc, et…

---

## [What is used instead of \`void processing.core.PVector.add(processing.core.PVector)\` now?](https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639)

<div class="topic-metadata">

**Author:** [@Drachenbauer](https://discourse.processing.org/u/Drachenbauer)\
**Replies:** 2\
**Last updated:** [April 6, 2023, 5:36pm UTC](https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639 "2023-04-06T17:36:04Z")

</div>

\[Video about image to 3d-city generator(https://www.youtube.com/watch?v=y0nsXiI\_I9c) I am interested in the application, that he shows here and he shares it for free through github (link in video-description). In his v…

---

## [2 PApplets synchronization](https://discourse.processing.org/t/2-papplets-synchronization/41623)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 2\
**Last updated:** [April 6, 2023, 11:21am UTC](https://discourse.processing.org/t/2-papplets-synchronization/41623 "2023-04-06T11:21:48Z")

</div>

In my Java programme (running on Win10) I have several PApplets created with runSketch(). Sometimes an error occurs (see below). I suspect it is caused by one thread being called before some precomputations in another th…

---

## [Could not load Java Mode, please reinstall processing?](https://discourse.processing.org/t/could-not-load-java-mode-please-reinstall-processing/41626)

<div class="topic-metadata">

**Author:** [@llsummer](https://discourse.processing.org/u/llsummer)\
**Replies:** 1\
**Last updated:** [April 5, 2023, 6:27pm UTC](https://discourse.processing.org/t/could-not-load-java-mode-please-reinstall-processing/41626 "2023-04-05T18:27:00Z")

</div>

Hi all. The Arduino processing 4.2 on win11can’t be open and got error as title, how to fix please? Thanks adam

---

## [SelectInput() fails](https://discourse.processing.org/t/selectinput-fails/38735)

<div class="topic-metadata">

**Author:** [@blippr](https://discourse.processing.org/u/blippr)\
**Replies:** 14\
**Last updated:** [April 5, 2023, 5:15pm UTC](https://discourse.processing.org/t/selectinput-fails/38735 "2023-04-05T17:15:53Z")

</div>

Hi, I get this error message in the console: The method selectInput(String, String) in the type PApplet is not applicable for the arguments (String) when trying to run this script: import java.awt.datatransfer.\*; i…

---

## [Software for industrial automation using Arduino](https://discourse.processing.org/t/software-for-industrial-automation-using-arduino/39786)

<div class="topic-metadata">

**Author:** [@Spidoug](https://discourse.processing.org/u/Spidoug)\
**Replies:** 2\
**Last updated:** [April 5, 2023, 10:18am UTC](https://discourse.processing.org/t/software-for-industrial-automation-using-arduino/39786 "2023-04-05T10:18:45Z")

</div>

Hello guys. I come here to present my software and firmware that I developed for my monograph. The system consists of acquiring data from an Arduino and the possibility of recording them in .TXT or .CSV files. The syste…

---

## [How do I animate this ring without the values going crazy after 20 frames?](https://discourse.processing.org/t/how-do-i-animate-this-ring-without-the-values-going-crazy-after-20-frames/41587)

<div class="topic-metadata">

**Author:** [@JamOne](https://discourse.processing.org/u/JamOne)\
**Replies:** 4\
**Last updated:** [April 4, 2023, 12:39pm UTC](https://discourse.processing.org/t/how-do-i-animate-this-ring-without-the-values-going-crazy-after-20-frames/41587 "2023-04-04T12:39:08Z")

</div>

The first 20 frames are ok, but after that the range of the noiseX and noiseY values gets to big. Yet I need these values being multiplied by pos so the animation is concentric and does not move into one direction. Any …

---

## [Processing Video Example -- Background Subtraction](https://discourse.processing.org/t/processing-video-example-background-subtraction/26634)

<div class="topic-metadata">

**Author:** [@alenmartel](https://discourse.processing.org/u/alenmartel)\
**Replies:** 3\
**Last updated:** [April 4, 2023, 11:35am UTC](https://discourse.processing.org/t/processing-video-example-background-subtraction/26634 "2023-04-04T11:35:09Z")

</div>

Hi all – I’ve been playing around with the BackgroundSubtraction example by Golan Levin in the Processing Video examples and have gotten comfortable with manipulating most aspects of the code in relationship to the image…

---

## [Reducing latency when capturing and displaying an RTSP stream](https://discourse.processing.org/t/reducing-latency-when-capturing-and-displaying-an-rtsp-stream/26531)

<div class="topic-metadata">

**Author:** [@angelofarina](https://discourse.processing.org/u/angelofarina)\
**Replies:** 6\
**Last updated:** [April 4, 2023, 4:29am UTC](https://discourse.processing.org/t/reducing-latency-when-capturing-and-displaying-an-rtsp-stream/26531 "2023-04-04T04:29:19Z")

</div>

I am trying to display the video being streamed by an IP camera through the RTSP protocol. After finding many outdated examples (which did rely on the old codeanticode.GSvideo library, which is not available for Proces…

---

## [Classes and subclases](https://discourse.processing.org/t/classes-and-subclases/41583)

<div class="topic-metadata">

**Author:** [@carl\_extends\_code](https://discourse.processing.org/u/carl_extends_code)\
**Replies:** 2\
**Last updated:** [April 3, 2023, 3:53pm UTC](https://discourse.processing.org/t/classes-and-subclases/41583 "2023-04-03T15:53:17Z")

</div>

Hi, Im working on a smal game and I have different enemies. They all have the same amount of animation frames and therfore I thought that there was a possibility to use an Animation class and let all the monsters extend…

---

## [Make a specific PGraphics not smooth in P2D](https://discourse.processing.org/t/make-a-specific-pgraphics-not-smooth-in-p2d/41560)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 8\
**Last updated:** [April 3, 2023, 2:37pm UTC](https://discourse.processing.org/t/make-a-specific-pgraphics-not-smooth-in-p2d/41560 "2023-04-03T14:37:17Z")

</div>

Does anybody know if theres a way to render a pgraphics that is mabye 16x16 px so it looks looks pixelated and not smooth but just the specific one?

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

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