# Processing

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

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

**Page:** 12

---

## [Using the Processing core library in .jar format in my now-MIT-licensed Java program](https://discourse.processing.org/t/using-the-processing-core-library-in-jar-format-in-my-now-mit-licensed-java-program/46066)

<div class="topic-metadata">

**Author:** [@LangdonS](https://discourse.processing.org/u/LangdonS)\
**Replies:** 4\
**Last updated:** [March 25, 2025, 4:43pm UTC](https://discourse.processing.org/t/using-the-processing-core-library-in-jar-format-in-my-now-mit-licensed-java-program/46066 "2025-03-25T16:43:57Z")

</div>

I have a Java program that used the Processing core.jar as a library to function. I want to use the MIT license. How do I license this properly?

---

## [PGS: problem invoking centroid()](https://discourse.processing.org/t/pgs-problem-invoking-centroid/46030)

<div class="topic-metadata">

**Author:** [@Eamoex](https://discourse.processing.org/u/Eamoex)\
**Replies:** 4\
**Last updated:** [March 22, 2025, 1:59am UTC](https://discourse.processing.org/t/pgs-problem-invoking-centroid/46030 "2025-03-22T01:59:07Z")

</div>

Hi, coming back to Processing after a long while; just dicovered the amazing PGS library. Problem: how do I make Processing see method centroid()? I have included line import micycle.pgs.\*;, but my instruction to get a …

---

## [How to combine mouse clicks in 3D and processing to be able to click on items in 3D to switch interfaces](https://discourse.processing.org/t/how-to-combine-mouse-clicks-in-3d-and-processing-to-be-able-to-click-on-items-in-3d-to-switch-interfaces/46036)

<div class="topic-metadata">

**Author:** [@camelia](https://discourse.processing.org/u/camelia)\
**Replies:** 2\
**Last updated:** [March 20, 2025, 3:05pm UTC](https://discourse.processing.org/t/how-to-combine-mouse-clicks-in-3d-and-processing-to-be-able-to-click-on-items-in-3d-to-switch-interfaces/46036 "2025-03-20T15:05:48Z")

</div>

How to combine mouse clicks in 3D and processing to be able to click on items in 3D to switch interfaces, I need to do a 3D scan of the room and can click on the items in the room, but I don’t know how to use mouse clic…

---

## [Artistic display of processing animations in home](https://discourse.processing.org/t/artistic-display-of-processing-animations-in-home/46028)

<div class="topic-metadata">

**Author:** [@David1](https://discourse.processing.org/u/David1)\
**Replies:** 1\
**Last updated:** [March 19, 2025, 12:37pm UTC](https://discourse.processing.org/t/artistic-display-of-processing-animations-in-home/46028 "2025-03-19T12:37:41Z")

</div>

Hi there, Has anyone made any sort of artistic or aesthetically pleasing displays of animations or Processing artwork in their homes? I have a number of animations I quite like and think are pleasing that I’d like to m…

---

## [CRC Libraries for Processing?](https://discourse.processing.org/t/crc-libraries-for-processing/44449)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 18\
**Last updated:** [July 24, 2024, 1:04pm UTC](https://discourse.processing.org/t/crc-libraries-for-processing/44449 "2024-07-24T13:04:58Z")

</div>

Hi, I’m working up a serial communications app with a Teensy/Arduino and a processing sketch. It’s going well, and I want to implement some checksums to safeguard data transmissions. I’ve found several libraries on the A…

---

## [Pointless variable declaration in source code](https://discourse.processing.org/t/pointless-variable-declaration-in-source-code/45923)

<div class="topic-metadata">

**Author:** [@LangdonS](https://discourse.processing.org/u/LangdonS)\
**Replies:** 28\
**Last updated:** [March 15, 2025, 11:27pm UTC](https://discourse.processing.org/t/pointless-variable-declaration-in-source-code/45923 "2025-03-15T23:27:56Z")

</div>

public static void hideMenuBar() { if (platform == 2) { try { String td = "processing.core.ThinkDifferent"; Class\<?\> thinkDifferent = PApplet.class.getClassLoader(…

---

## [Problem sin() cos() Java to Processing 4.0](https://discourse.processing.org/t/problem-sin-cos-java-to-processing-4-0/45567)

<div class="topic-metadata">

**Author:** [@RadioG](https://discourse.processing.org/u/RadioG)\
**Replies:** 13\
**Last updated:** [January 14, 2025, 1:03am UTC](https://discourse.processing.org/t/problem-sin-cos-java-to-processing-4-0/45567 "2025-01-14T01:03:34Z")

</div>

Hi, Under Processing4.0 this formula does not give me the expected result of: 18.6063731708993. Do you have a solution with a better syntax? (Math.asin(sin(12.34\*PI/180) \* Math.cos(1000/6371)+cos(12.34\*PI/180)\*Math.sin…

---

## [Play video with sound](https://discourse.processing.org/t/play-video-with-sound/45924)

<div class="topic-metadata">

**Author:** [@poppanona](https://discourse.processing.org/u/poppanona)\
**Replies:** 8\
**Last updated:** [March 15, 2025, 2:45pm UTC](https://discourse.processing.org/t/play-video-with-sound/45924 "2025-03-15T14:45:21Z")

</div>

Is there a way to incorparate the sound in a movie in one’s sketch

---

## [Arrayindexoutofboundsexception: 55 Error, no idea what's gone wrong](https://discourse.processing.org/t/arrayindexoutofboundsexception-55-error-no-idea-whats-gone-wrong/2799)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 4\
**Last updated:** [March 15, 2025, 2:38pm UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-55-error-no-idea-whats-gone-wrong/2799 "2025-03-15T14:38:35Z")

</div>

Hi, does anyone know how to fix this error, my sketch works when I use a different svg file but not on other svg files. I can’t work out what might be causing this? This is the error that comes up : arrayindexoutofbounds…

---

## [Artwork recreation Edoardo Lanzi](https://discourse.processing.org/t/artwork-recreation-edoardo-lanzi/45979)

<div class="topic-metadata">

**Author:** [@maumanto16](https://discourse.processing.org/u/maumanto16)\
**Replies:** 5\
**Last updated:** [March 13, 2025, 2:16pm UTC](https://discourse.processing.org/t/artwork-recreation-edoardo-lanzi/45979 "2025-03-13T14:16:18Z")

</div>

How would you go about recreating this artwork in processing? (or a similar one on concept) I’ve been squeezing my brain around it but can’t find a good solution. Can somebody help me?

---

## [2D Array: what's the order of x and y (Chess board)](https://discourse.processing.org/t/2d-array-whats-the-order-of-x-and-y-chess-board/45966)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [March 11, 2025, 10:03pm UTC](https://discourse.processing.org/t/2d-array-whats-the-order-of-x-and-y-chess-board/45966 "2025-03-11T22:03:53Z")

</div>

Hello all, I just wrote a simple chess board and make a mcve to demonstrate my problem. It’s that when you have a 2d array that stores the x,y position for each of the 64 cells, you need in setup() to make the for-loop…

---

## [How to manually install VLCJVideo library](https://discourse.processing.org/t/how-to-manually-install-vlcjvideo-library/45960)

<div class="topic-metadata">

**Author:** [@Seamiki](https://discourse.processing.org/u/Seamiki)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 1:18pm UTC](https://discourse.processing.org/t/how-to-manually-install-vlcjvideo-library/45960 "2025-03-11T13:18:47Z")

</div>

I tried to install VLCJVideo library using the contribution manager but the download fails all the time. Seems like a dead link because i can install other libraries without problems. So i downloaded the github reposito…

---

## [GWindow 'g4p' / Draws incorrectly. (Windows 'new window' problem)](https://discourse.processing.org/t/gwindow-g4p-draws-incorrectly-windows-new-window-problem/45942)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [March 11, 2025, 8:50am UTC](https://discourse.processing.org/t/gwindow-g4p-draws-incorrectly-windows-new-window-problem/45942 "2025-03-11T08:50:09Z")

</div>

GWindow ‘g4p’ / Draws incorrectly. (Windows ‘new window’ problem) Please check 2 images. If it is drawn correctly, if it is drawn incorrectly Draw stops after 1 operation with ‘noLoop’. Is there a way to inc…

---

## [How to lock the resolution in JAVA2D rendering environment](https://discourse.processing.org/t/how-to-lock-the-resolution-in-java2d-rendering-environment/45936)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 1\
**Last updated:** [March 9, 2025, 10:03am UTC](https://discourse.processing.org/t/how-to-lock-the-resolution-in-java2d-rendering-environment/45936 "2025-03-09T10:03:44Z")

</div>

Hello everyone! I am doing resolution adaptation in the JAVA2D environment, hoping that the UI interface will be distorted when switching screens. How to lock the resolution in JAVA2D rendering environment？ Thanks! publ…

---

## [Canvas size is wrong on external monitor on Ubuntu 24.04 LTS](https://discourse.processing.org/t/canvas-size-is-wrong-on-external-monitor-on-ubuntu-24-04-lts/45927)

<div class="topic-metadata">

**Author:** [@LangdonS](https://discourse.processing.org/u/LangdonS)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 11:39pm UTC](https://discourse.processing.org/t/canvas-size-is-wrong-on-external-monitor-on-ubuntu-24-04-lts/45927 "2025-03-08T23:39:56Z")

</div>

I have a Java/Processing app that I am developing on my Lenovo T490 laptop running Ubuntu 24.04 LTS. I have the canvas size set in the settings method to 416x416px On the laptop’s screen, the drawable canvas is 416x416…

---

## [Creating a Vector-Based "Texture" and filling a shape](https://discourse.processing.org/t/creating-a-vector-based-texture-and-filling-a-shape/45911)

<div class="topic-metadata">

**Author:** [@revived](https://discourse.processing.org/u/revived)\
**Replies:** 7\
**Last updated:** [March 7, 2025, 11:12am UTC](https://discourse.processing.org/t/creating-a-vector-based-texture-and-filling-a-shape/45911 "2025-03-07T11:12:35Z")

</div>

Hi all - I’d like to create an SVG file of an arbitrarily-sided polygon that is filled with triangles (or other drawings, potentially.). I have no idea how to do this in Processing or if it is even possible. I was hop…

---

## [\[Solved\] Chromebook installation OK but all code fails to run](https://discourse.processing.org/t/solved-chromebook-installation-ok-but-all-code-fails-to-run/45900)

<div class="topic-metadata">

**Author:** [@mb668](https://discourse.processing.org/u/mb668)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 12:06pm UTC](https://discourse.processing.org/t/solved-chromebook-installation-ok-but-all-code-fails-to-run/45900 "2025-03-06T12:06:04Z")

</div>

Even sample code fails to run with a vanilla installation of Processing 4.3.3 in a Linux container on an ARM Chromebook (installed using these instructions). Is there anything in the following error messages that would …

---

## [Problem with for() loops](https://discourse.processing.org/t/problem-with-for-loops/45897)

<div class="topic-metadata">

**Author:** [@JALAJ\_0106](https://discourse.processing.org/u/JALAJ_0106)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 11:39am UTC](https://discourse.processing.org/t/problem-with-for-loops/45897 "2025-03-04T11:39:24Z")

</div>

int th = 36; int tw = 36; for(int y = 0; y \< th - 1; y++) { for(int x = 0; x \< tw - 1; x++) { PVector p1 = normals\[x\]\[y\]; //works PVector p2 = normals\[34\]\[y\]; // works PVector p3…

---

## [How to create a buffer to send JSON data to the server quantitatively](https://discourse.processing.org/t/how-to-create-a-buffer-to-send-json-data-to-the-server-quantitatively/45848)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 0\
**Last updated:** [February 27, 2025, 1:20pm UTC](https://discourse.processing.org/t/how-to-create-a-buffer-to-send-json-data-to-the-server-quantitatively/45848 "2025-02-27T13:20:32Z")

</div>

Hello,everyone！I want to create a buffer to store ecg\<2384\>,emg\<2384\> data, each time only storing 2 channels and 384 data points, and once enough data points are obtained, send the data in json format to the server. The…

---

## [How Can I Create a Rectangle Whose Inside Has a Different Drag Properties than the VerletPhysics2D World It Is In?](https://discourse.processing.org/t/how-can-i-create-a-rectangle-whose-inside-has-a-different-drag-properties-than-the-verletphysics2d-world-it-is-in/45839)

<div class="topic-metadata">

**Author:** [@Ermi](https://discourse.processing.org/u/Ermi)\
**Replies:** 3\
**Last updated:** [February 27, 2025, 11:04pm UTC](https://discourse.processing.org/t/how-can-i-create-a-rectangle-whose-inside-has-a-different-drag-properties-than-the-verletphysics2d-world-it-is-in/45839 "2025-02-27T23:04:45Z")

</div>

I am trying to modify the example Attraction2D so that the drag increases from half of the screen(world), making the particles appear to be falling into water. Is it possible to create two different mediums whose drag va…

---

## [Concept for moving in a direction for ship in game asteroids](https://discourse.processing.org/t/concept-for-moving-in-a-direction-for-ship-in-game-asteroids/20456)

<div class="topic-metadata">

**Author:** [@Arsenii](https://discourse.processing.org/u/Arsenii)\
**Replies:** 9\
**Last updated:** [February 27, 2025, 8:15pm UTC](https://discourse.processing.org/t/concept-for-moving-in-a-direction-for-ship-in-game-asteroids/20456 "2025-02-27T20:15:53Z")

</div>

I want to recreate asteroids game but don’t know how to program ship moving in the direction of it’s aim.

---

## [Webcam video for Linux workaround](https://discourse.processing.org/t/webcam-video-for-linux-workaround/45784)

<div class="topic-metadata">

**Author:** [@Seamiki](https://discourse.processing.org/u/Seamiki)\
**Replies:** 0\
**Last updated:** [February 16, 2025, 4:03pm UTC](https://discourse.processing.org/t/webcam-video-for-linux-workaround/45784 "2025-02-16T16:03:58Z")

</div>

I share below a workaround for whoever got issues on linux with the video library. I was trying to get the video feed from the webcam but only got errors related to libsoup and gstreamer. the workaround that i found us…

---

## [Packet loss when transmitting using Bluetooth](https://discourse.processing.org/t/packet-loss-when-transmitting-using-bluetooth/45754)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 2\
**Last updated:** [February 27, 2025, 2:18am UTC](https://discourse.processing.org/t/packet-loss-when-transmitting-using-bluetooth/45754 "2025-02-27T02:18:21Z")

</div>

I use the Bluetooth serial port to transmit data. There is data output but it cannot be output in real time. Because multiple data packets are transmitted, is it because my unpacking process affects the drawing? Here is …

---

## [Processing old release download](https://discourse.processing.org/t/processing-old-release-download/45834)

<div class="topic-metadata">

**Author:** [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 8:07pm UTC](https://discourse.processing.org/t/processing-old-release-download/45834 "2025-02-25T20:07:56Z")

</div>

Hello, i’m trying to work with the midiBus library, on some mac computer, the library does not work. if we use an older version of Processing v3.x is working. but i was looking for older versions of v4, but on github …

---

## [Sound, Perlin Noise, and Processing. Looking for a demo](https://discourse.processing.org/t/sound-perlin-noise-and-processing-looking-for-a-demo/45732)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 10:33pm UTC](https://discourse.processing.org/t/sound-perlin-noise-and-processing-looking-for-a-demo/45732 "2025-02-21T22:33:04Z")

</div>

Hi Simple question: has anybody developed In Processing a couple of simple examples as those at What Does Perlin Noise Sound Like? ? If you did, I appreciate if you may share your code. Thanks a lot.

---

## [ClassCastException using ttslib](https://discourse.processing.org/t/classcastexception-using-ttslib/45805)

<div class="topic-metadata">

**Author:** [@john55](https://discourse.processing.org/u/john55)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 2:10am UTC](https://discourse.processing.org/t/classcastexception-using-ttslib/45805 "2025-02-21T02:10:23Z")

</div>

Running ttstest example sketch on Mac results in ClassCastException. ClassCastException: class com.sun.speech.freetts.en.us.cmu\_time\_awb.AlanVoiceDirectory cannot be cast to class com.sun.speech.freetts.VoiceDirectory (…

---

## [PC files don't open properly on Mac](https://discourse.processing.org/t/pc-files-dont-open-properly-on-mac/45803)

<div class="topic-metadata">

**Author:** [@Gadger](https://discourse.processing.org/u/Gadger)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 4:02pm UTC](https://discourse.processing.org/t/pc-files-dont-open-properly-on-mac/45803 "2025-02-20T16:02:15Z")

</div>

I created a pde file on a PC and saved in Dropbox. When I open the file with Processing on a Mac (Apple silicon) the tabs open correctly but all the code is missing. If I create a file on the Mac, save to Dropbox, open …

---

## [USB Camera(CAM) Library Recommendations](https://discourse.processing.org/t/usb-camera-cam-library-recommendations/45802)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 5:25am UTC](https://discourse.processing.org/t/usb-camera-cam-library-recommendations/45802 "2025-02-20T05:25:12Z")

</div>

USB Camera(CAM) Library Recommendations Hello. Nice to meet you. Model name: e-con See3CAM\_CU135 13MP USB Camera What kind of ‘library’ is there for ‘USB’ Camera? I think there will be a lag with ‘13MP’. Is th…

---

## [Advice on what graphic card to buy](https://discourse.processing.org/t/advice-on-what-graphic-card-to-buy/45798)

<div class="topic-metadata">

**Author:** [@lucedan](https://discourse.processing.org/u/lucedan)\
**Replies:** 0\
**Last updated:** [February 19, 2025, 10:37am UTC](https://discourse.processing.org/t/advice-on-what-graphic-card-to-buy/45798 "2025-02-19T10:37:47Z")

</div>

Hello everybody, I started creating an audiovisual work, playing my Processing and SuperCollider simultaneously. However, I see some limitations due to my integrated graphic card, and I was considering whether buying an…

---

## [Eclipse IDE with Processing - Can't play video](https://discourse.processing.org/t/eclipse-ide-with-processing-cant-play-video/45772)

<div class="topic-metadata">

**Author:** [@Ojey](https://discourse.processing.org/u/Ojey)\
**Replies:** 0\
**Last updated:** [February 15, 2025, 10:38pm UTC](https://discourse.processing.org/t/eclipse-ide-with-processing-cant-play-video/45772 "2025-02-15T22:38:29Z")

</div>

Hi I want to play just a video, it work great in processing IDE with the librairy processing.video.\*; But with Eclipse i can’t play anything, it seems that there is a problem with gstreamer. I have this error. Can yo…

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

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