# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=26

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

**Page:** 27

---

## [3D physics library for Processing?](https://discourse.processing.org/t/3d-physics-library-for-processing/43618)

<div class="topic-metadata">

**Author:** [@floatinginspace](https://discourse.processing.org/u/floatinginspace)\
**Replies:** 0\
**Last updated:** [January 4, 2024, 8:22pm UTC](https://discourse.processing.org/t/3d-physics-library-for-processing/43618 "2024-01-04T20:22:53Z")

</div>

Is there a library for making simple physics simulations in 3D with Processing? I want to make something like a series of cubes dropping into a “container” object (think like ice-cubes dropping into a glass). I’ve used …

---

## [Proper buffer memory management for PImage created inside a function, and used outside it](https://discourse.processing.org/t/proper-buffer-memory-management-for-pimage-created-inside-a-function-and-used-outside-it/43616)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 1\
**Last updated:** [January 4, 2024, 4:08pm UTC](https://discourse.processing.org/t/proper-buffer-memory-management-for-pimage-created-inside-a-function-and-used-outside-it/43616 "2024-01-04T16:08:06Z")

</div>

This code works, as you can see, but I’m not sure if it SHOULD work. I am reserving the buffer space for the Test Pimage inside a function, and returning the values that have been set inside the function. I have a wei…

---

## [Puzzle - effect of alpha value depends on RGB value of pixel?](https://discourse.processing.org/t/puzzle-effect-of-alpha-value-depends-on-rgb-value-of-pixel/42983)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 5\
**Last updated:** [January 4, 2024, 12:14pm UTC](https://discourse.processing.org/t/puzzle-effect-of-alpha-value-depends-on-rgb-value-of-pixel/42983 "2024-01-04T12:14:31Z")

</div>

Here is a little test case that illustrates my puzzle. In both c1 and c3, alpha is set to 255. We should see the fill value showing over the background as declared via the RGB values, and this is what happens. In c1…

---

## [The use of PJOGL.setIcon() for macOS](https://discourse.processing.org/t/the-use-of-pjogl-seticon-for-macos/43541)

<div class="topic-metadata">

**Author:** [@Nach](https://discourse.processing.org/u/Nach)\
**Replies:** 11\
**Last updated:** [January 4, 2024, 12:53am UTC](https://discourse.processing.org/t/the-use-of-pjogl-seticon-for-macos/43541 "2024-01-04T00:53:23Z")

</div>

Hello Processing community, I’m facing a peculiar issue with an application I’ve developed using Processing. I’ve created a custom icon for my application, but after installing it on macOS using the .pkg, upon running i…

---

## [Editor freezed, Weird Beeping sound](https://discourse.processing.org/t/editor-freezed-weird-beeping-sound/43614)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 0\
**Last updated:** [January 3, 2024, 8:51pm UTC](https://discourse.processing.org/t/editor-freezed-weird-beeping-sound/43614 "2024-01-03T20:51:06Z")

</div>

Hello, here’s what happend. I was editing code in the IDE, tried to move my cursor in the text, then a weird beeping sound started. Sometimes there are longer pauses between it. Im using this version of windows: I do…

---

## [How use Serial object inside a class](https://discourse.processing.org/t/how-use-serial-object-inside-a-class/43568)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 6:51pm UTC](https://discourse.processing.org/t/how-use-serial-object-inside-a-class/43568 "2024-01-03T18:51:43Z")

</div>

I had myself a fine working program. But I had to refactor some things. I added a class and inside that class I would like all to do all the serial data handling. I only have no clue how java works with this. I keep get…

---

## [Convert spreadsheet into academic references (Help!)](https://discourse.processing.org/t/convert-spreadsheet-into-academic-references-help/43608)

<div class="topic-metadata">

**Author:** [@isabela](https://discourse.processing.org/u/isabela)\
**Replies:** 4\
**Last updated:** [January 3, 2024, 12:45am UTC](https://discourse.processing.org/t/convert-spreadsheet-into-academic-references-help/43608 "2024-01-03T00:45:19Z")

</div>

Hello! I’m (trying) to write a simple code to transform job references written in a spreadsheet into text. I started with a test spreadsheet converted into CSV, but I’m having some formatting problems: the information al…

---

## [Pong Game Doesn't Restart](https://discourse.processing.org/t/pong-game-doesnt-restart/38890)

<div class="topic-metadata">

**Author:** [@isabela](https://discourse.processing.org/u/isabela)\
**Replies:** 6\
**Last updated:** [January 2, 2024, 10:49pm UTC](https://discourse.processing.org/t/pong-game-doesnt-restart/38890 "2024-01-02T22:49:17Z")

</div>

Hi! I am working on a Pong Game for school and wanted to add another ball when you get 5 points. The problem is, when you loose with the second ball, the game dosen’t restart. Can you help me? (the notes in the code are …

---

## [STL export for 3D printing](https://discourse.processing.org/t/stl-export-for-3d-printing/43581)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 8\
**Last updated:** [January 2, 2024, 1:30am UTC](https://discourse.processing.org/t/stl-export-for-3d-printing/43581 "2024-01-02T01:30:51Z")

</div>

Happy Holidays, Processing Community! I have been making bump maps from images with processing.js for the past year and I was wondering if there is a way to translate that code so that it can export to an .STL file to 3…

---

## [How do I write a formula that rotates a point around the coordination systems center?](https://discourse.processing.org/t/how-do-i-write-a-formula-that-rotates-a-point-around-the-coordination-systems-center/43591)

<div class="topic-metadata">

**Author:** [@Erik](https://discourse.processing.org/u/Erik)\
**Replies:** 3\
**Last updated:** [January 1, 2024, 12:45am UTC](https://discourse.processing.org/t/how-do-i-write-a-formula-that-rotates-a-point-around-the-coordination-systems-center/43591 "2024-01-01T00:45:09Z")

</div>

I have a 3D coordination system where x, y, and z dimensions span from 0 to 1000. I have a point randomly placed within these coordinates, and want it to rotate around the center (x, y and z = 500) by a given angle. I wa…

---

## [How does Processing handle methods drawing objects outside of the screen coordinates?](https://discourse.processing.org/t/how-does-processing-handle-methods-drawing-objects-outside-of-the-screen-coordinates/43590)

<div class="topic-metadata">

**Author:** [@Erik](https://discourse.processing.org/u/Erik)\
**Replies:** 2\
**Last updated:** [December 31, 2023, 3:00pm UTC](https://discourse.processing.org/t/how-does-processing-handle-methods-drawing-objects-outside-of-the-screen-coordinates/43590 "2023-12-31T15:00:04Z")

</div>

The reason I ask is because my code generates points that travels in a 3d trajectory within and outside of the screen coordinates. (Please note that I’m not using translate()). Currently, the point() method - that handl…

---

## [Exporting lines drawn by mouse to SVG](https://discourse.processing.org/t/exporting-lines-drawn-by-mouse-to-svg/43586)

<div class="topic-metadata">

**Author:** [@aFewScrewsLoose](https://discourse.processing.org/u/aFewScrewsLoose)\
**Replies:** 6\
**Last updated:** [December 30, 2023, 10:59pm UTC](https://discourse.processing.org/t/exporting-lines-drawn-by-mouse-to-svg/43586 "2023-12-30T22:59:00Z")

</div>

Hello, I’ve been trying to make a Processing script that: Draws a line when the mouse is pressed . Exports these lines to an .svg file. Here is my code: Codeimport processing.svg.\*; // setup runs before the main lo…

---

## [Type Serial is ambiguous](https://discourse.processing.org/t/type-serial-is-ambiguous/43584)

<div class="topic-metadata">

**Author:** [@rototbob](https://discourse.processing.org/u/rototbob)\
**Replies:** 3\
**Last updated:** [December 30, 2023, 11:41pm UTC](https://discourse.processing.org/t/type-serial-is-ambiguous/43584 "2023-12-30T23:41:22Z")

</div>

I’m new to the Processing language. I am trying to run the code for the Arduino Networked Lamp as detailed in the Getting started with Arduino book. I’ve downloaded the program titled ex06 01 processing and I get the fo…

---

## [Force directed graphs](https://discourse.processing.org/t/force-directed-graphs/43579)

<div class="topic-metadata">

**Author:** [@Lee14](https://discourse.processing.org/u/Lee14)\
**Replies:** 0\
**Last updated:** [December 29, 2023, 7:32pm UTC](https://discourse.processing.org/t/force-directed-graphs/43579 "2023-12-29T19:32:25Z")

</div>

i am a relative newby to processing … but would like to develop a pedagogical tool which uses force directed graphs … which would link to a generated database in the background (nodes would be places for user to input a …

---

## [Problems with hashmap](https://discourse.processing.org/t/problems-with-hashmap/43567)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 2\
**Last updated:** [December 29, 2023, 6:58pm UTC](https://discourse.processing.org/t/problems-with-hashmap/43567 "2023-12-29T18:58:01Z")

</div>

Hello, I’m going to comment on the code that I’m going to show and then ask the question. I have a file called parent which has a hashmap and two classes to manage that hashmap. Then I have a player class and I shoot, …

---

## [Processing 4.3 \> Contribution Manager \> Libraries Status not showing installed libraries (W10)](https://discourse.processing.org/t/processing-4-3-contribution-manager-libraries-status-not-showing-installed-libraries-w10/42871)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 2\
**Last updated:** [December 28, 2023, 2:30pm UTC](https://discourse.processing.org/t/processing-4-3-contribution-manager-libraries-status-not-showing-installed-libraries-w10/42871 "2023-12-28T14:30:59Z")

</div>

Hello folks! Are others experiencing this? My Processing 4.3 \> Contribution Manager \> Libraries status is not showing installed libraries on two different W10 Pro PCs. Fortunately, the libraries I do have installed ar…

---

## [Greeking-project - need triangles on different positions to point to my mouse](https://discourse.processing.org/t/greeking-project-need-triangles-on-different-positions-to-point-to-my-mouse/43575)

<div class="topic-metadata">

**Author:** [@ina1](https://discourse.processing.org/u/ina1)\
**Replies:** 0\
**Last updated:** [December 29, 2023, 12:52am UTC](https://discourse.processing.org/t/greeking-project-need-triangles-on-different-positions-to-point-to-my-mouse/43575 "2023-12-29T00:52:59Z")

</div>

Hi! For a school project I need to realize a creative greeking-project. Therefore I’ve got a template which I have to use, that includes different symbol-systems. I have to use it as the base of my project. Just to giv…

---

## [Did anyone use a 3D physics engine with Processing?](https://discourse.processing.org/t/did-anyone-use-a-3d-physics-engine-with-processing/43569)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 0\
**Last updated:** [December 28, 2023, 11:15am UTC](https://discourse.processing.org/t/did-anyone-use-a-3d-physics-engine-with-processing/43569 "2023-12-28T11:15:28Z")

</div>

Did anyone use a 3D physics engine with processing? Which one can you recommend? Are there processing examples? Thank you all! Like this:

---

## [Can you set a process timeout](https://discourse.processing.org/t/can-you-set-a-process-timeout/43534)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 2\
**Last updated:** [December 27, 2023, 8:41pm UTC](https://discourse.processing.org/t/can-you-set-a-process-timeout/43534 "2023-12-27T20:41:42Z")

</div>

I can succesfully invoke arduino-cli to build and upload programs to an arduino board. The problem that I am having, is that the upload process takes 2 minutes before a status is returned. When I select the wrong board…

---

## [How can I get/fetch a response from invoked (launch() ) command?](https://discourse.processing.org/t/how-can-i-get-fetch-a-response-from-invoked-launch-command/43511)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 8:25pm UTC](https://discourse.processing.org/t/how-can-i-get-fetch-a-response-from-invoked-launch-command/43511 "2023-12-27T20:25:18Z")

</div>

I used launch() to invoke a batch script. The batch script would than launch Arduino-cli to build and upload an arduino program to a board. That was this fine working line. launch("rundll32 SHELL32.DLL,ShellExec\_RunDLL…

---

## [Make program not be opened until it is done loading](https://discourse.processing.org/t/make-program-not-be-opened-until-it-is-done-loading/43560)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 4\
**Last updated:** [December 26, 2023, 3:49pm UTC](https://discourse.processing.org/t/make-program-not-be-opened-until-it-is-done-loading/43560 "2023-12-26T15:49:01Z")

</div>

Hi! Ive been trying to make my programm be minimized till it is done loading. My code doesn’t work however and I haven’t seen a topic asking this. void setup() { surface.setVisible(false); size(960, 540, P2D); …

---

## [Error in compile Processing file through polargraphcontroller](https://discourse.processing.org/t/error-in-compile-processing-file-through-polargraphcontroller/43472)

<div class="topic-metadata">

**Author:** [@freesheida1984](https://discourse.processing.org/u/freesheida1984)\
**Replies:** 5\
**Last updated:** [December 26, 2023, 12:51pm UTC](https://discourse.processing.org/t/error-in-compile-processing-file-through-polargraphcontroller/43472 "2023-12-26T12:51:50Z")

</div>

hi everyone, I want to run a processing code through polargraphcontroller but I got this error, what seems to be the problem? the code is n existed processing code in this polargraphcontroller but it is not working …

---

## [Moving and closing PApplets (Processing 4.2)](https://discourse.processing.org/t/moving-and-closing-papplets-processing-4-2/43547)

<div class="topic-metadata">

**Author:** [@Edenstudent](https://discourse.processing.org/u/Edenstudent)\
**Replies:** 7\
**Last updated:** [December 24, 2023, 6:52pm UTC](https://discourse.processing.org/t/moving-and-closing-papplets-processing-4-2/43547 "2023-12-24T18:52:05Z")

</div>

I have a program I am trying to make that requires opening multiple additional windows on the screen and using them, setting them up in specific locations, and closing them… The issue is that, although I’ve been trying …

---

## [Proposal for IDE - zip upload (enhancing the forum)](https://discourse.processing.org/t/proposal-for-ide-zip-upload-enhancing-the-forum/43284)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 12\
**Last updated:** [December 23, 2023, 2:31pm UTC](https://discourse.processing.org/t/proposal-for-ide-zip-upload-enhancing-the-forum/43284 "2023-12-23T14:31:37Z")

</div>

Proposal In the IDE is a new fixed inbuilt Tool “Upload and share in Processing Forum”. It : executes ctrl-t on all tabs, zips all files and uploads to a server (like weshare) that the Foundation provides and return…

---

## [Doubled lines with SVG export](https://discourse.processing.org/t/doubled-lines-with-svg-export/43539)

<div class="topic-metadata">

**Author:** [@okelk](https://discourse.processing.org/u/okelk)\
**Replies:** 5\
**Last updated:** [December 22, 2023, 10:08pm UTC](https://discourse.processing.org/t/doubled-lines-with-svg-export/43539 "2023-12-22T22:08:47Z")

</div>

Hi! I have a problem with exporting SVGs. The code underneath is a adaptation of the star example . I added SVG export but have the problem theat the resulting lines are doubled on top of each other. this might be in…

---

## [java.lang.ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/java-lang-arrayindexoutofboundsexception/43529)

<div class="topic-metadata">

**Author:** [@Kaluz](https://discourse.processing.org/u/Kaluz)\
**Replies:** 4\
**Last updated:** [December 22, 2023, 7:31am UTC](https://discourse.processing.org/t/java-lang-arrayindexoutofboundsexception/43529 "2023-12-22T07:31:48Z")

</div>

Hello, i’m new here and a beginner in Java. Also english is not my native language, but i hope u can understand my problem. I have a problem with my code and can’t solve it myself. I get this error: “java.lang.ArrayIn…

---

## [PGraphics thread issues](https://discourse.processing.org/t/pgraphics-thread-issues/43494)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 2\
**Last updated:** [December 21, 2023, 12:42pm UTC](https://discourse.processing.org/t/pgraphics-thread-issues/43494 "2023-12-21T12:42:41Z")

</div>

So, i have a program in processing, that creates a grid of pgraphics to use a canvas. Basically what it does, is loop through a list of different sized pgraphics, and in a thread creates a new pgraphics and sets the old…

---

## [Musical Notation Symbols?](https://discourse.processing.org/t/musical-notation-symbols/43483)

<div class="topic-metadata">

**Author:** [@bachrock](https://discourse.processing.org/u/bachrock)\
**Replies:** 9\
**Last updated:** [December 20, 2023, 11:36am UTC](https://discourse.processing.org/t/musical-notation-symbols/43483 "2023-12-20T11:36:33Z")

</div>

I would like to create a program that uses musical notation. What would the best way be to use musical notation in Processing?

---

## [3D walker in a 3D grid / cube: what are the directions he can go to?](https://discourse.processing.org/t/3d-walker-in-a-3d-grid-cube-what-are-the-directions-he-can-go-to/24419)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 8\
**Last updated:** [December 15, 2023, 11:43pm UTC](https://discourse.processing.org/t/3d-walker-in-a-3d-grid-cube-what-are-the-directions-he-can-go-to/24419 "2023-12-15T23:43:53Z")

</div>

Hello all, I was doing a 3D walker in a 3D-grid. What are the directions he can go to? I plan to have a list of PVectors and depending which one is active, we add it to his position again and again so he moves in that…

---

## [Having troubles parsing JSON data](https://discourse.processing.org/t/having-troubles-parsing-json-data/43513)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 2:08pm UTC](https://discourse.processing.org/t/having-troubles-parsing-json-data/43513 "2023-12-19T14:08:33Z")

</div>

Hello, I am trying to parse some json data for the first time in processing, but I meet with fail. I want to process data fetched from arduino-cli.exe to determen to which com port an arduino is connected and what it’s…

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

[Next page](https://discourse.processing.org/c/processing/6.md?page=27)
