# Processing

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

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

**Page:** 19

---

## [Parsing and Reading Serial JSON data](https://discourse.processing.org/t/parsing-and-reading-serial-json-data/44806)

<div class="topic-metadata">

**Author:** [@mfusco](https://discourse.processing.org/u/mfusco)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 3:36am UTC](https://discourse.processing.org/t/parsing-and-reading-serial-json-data/44806 "2024-07-24T03:36:10Z")

</div>

Hi, I’m trying to send serial JSON data from an Arduino to Processing. I found documentation on reading JSON data from a file, but I’d like to read the JSON data from a Serial input. I tried the following code: val = m…

---

## [Takashi Murakami Code](https://discourse.processing.org/t/takashi-murakami-code/44758)

<div class="topic-metadata">

**Author:** [@chipadelic](https://discourse.processing.org/u/chipadelic)\
**Replies:** 3\
**Last updated:** [July 13, 2024, 1:08pm UTC](https://discourse.processing.org/t/takashi-murakami-code/44758 "2024-07-13T13:08:36Z")

</div>

Hey Everyone! i am struggling to figure out how to create the Takashi Murikami flower using shapes, bezier curves, vertecies and shapes. this is a little above and beyond for the class that I am taking, and i am really …

---

## [Help with Neural Network Visualization Bug In Processing](https://discourse.processing.org/t/help-with-neural-network-visualization-bug-in-processing/44794)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 3\
**Last updated:** [July 23, 2024, 1:47pm UTC](https://discourse.processing.org/t/help-with-neural-network-visualization-bug-in-processing/44794 "2024-07-23T13:47:32Z")

</div>

I’m currently working on a project using Processing where I’m implementing an Othello game with a genetic algorithm AI. The project consists of multiple files including OthelloGame.pde, AIPlayer.pde, Button.pde, GraphWin…

---

## [VideoExport: NoSuchFieldError: You may be using a library that's incompatible with this version of Processing](https://discourse.processing.org/t/videoexport-nosuchfielderror-you-may-be-using-a-library-thats-incompatible-with-this-version-of-processing/44782)

<div class="topic-metadata">

**Author:** [@minusminus](https://discourse.processing.org/u/minusminus)\
**Replies:** 10\
**Last updated:** [July 23, 2024, 6:51am UTC](https://discourse.processing.org/t/videoexport-nosuchfielderror-you-may-be-using-a-library-thats-incompatible-with-this-version-of-processing/44782 "2024-07-23T06:51:31Z")

</div>

Hey friends, I installed Processing 4 on an M1 Macbook Pro, installed VideoExport and got a NoSuchFieldError. I googled it and came across this github bug from a few years back. I though I’d just switch to P3, so I in…

---

## [Opening numbered images](https://discourse.processing.org/t/opening-numbered-images/44791)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.processing.org/u/fra)\
**Replies:** 4\
**Last updated:** [July 21, 2024, 4:36pm UTC](https://discourse.processing.org/t/opening-numbered-images/44791 "2024-07-21T16:36:32Z")

</div>

Hi, in a folder I saved three .png files: “1.png”, “2.png”, “3.png” In the Processing code I use a constant: int A = 3; Now: I would like open an “A.png” image , with A set by the variable above. So, for example: i…

---

## [.dxf export to smaller file size\_Where is superCAD?](https://discourse.processing.org/t/dxf-export-to-smaller-file-size-where-is-supercad/44790)

<div class="topic-metadata">

**Author:** [@Mindbogged](https://discourse.processing.org/u/Mindbogged)\
**Replies:** 0\
**Last updated:** [July 21, 2024, 8:29am UTC](https://discourse.processing.org/t/dxf-export-to-smaller-file-size-where-is-supercad/44790 "2024-07-21T08:29:54Z")

</div>

Hi everyone. I am extremely novice in coding but mange my way somehow. I am trying to reduce the file size of my dxf since files are too large to open in the CAD software I am using. I managed to open files in Freecad,…

---

## [Receiving numbers from Pure Data via OSC](https://discourse.processing.org/t/receiving-numbers-from-pure-data-via-osc/44786)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.processing.org/u/fra)\
**Replies:** 6\
**Last updated:** [July 20, 2024, 5:55pm UTC](https://discourse.processing.org/t/receiving-numbers-from-pure-data-via-osc/44786 "2024-07-20T17:55:15Z")

</div>

Hi, I built a patch in Pure Data to send numbers via OSC: and I verified that the numbers were received (in the Pure Data console, not in Processing), and they are received correctly. Now, what is the way to receive…

---

## [Run code from terminal \[Linux\]](https://discourse.processing.org/t/run-code-from-terminal-linux/44774)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.processing.org/u/fra)\
**Replies:** 6\
**Last updated:** [July 19, 2024, 1:04am UTC](https://discourse.processing.org/t/run-code-from-terminal-linux/44774 "2024-07-19T01:04:47Z")

</div>

Hi, is it possible to run code directly in the terminal? Something like this: :~$ processing\> size(400, 400); rect(120, 80, 50, 50); I read in a previous post that I need to install “processing-java”, but I can’t fin…

---

## [Increase dot size (point())](https://discourse.processing.org/t/increase-dot-size-point/44771)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.processing.org/u/fra)\
**Replies:** 3\
**Last updated:** [July 18, 2024, 5:27pm UTC](https://discourse.processing.org/t/increase-dot-size-point/44771 "2024-07-18T17:27:58Z")

</div>

Hi, with this code I draw some points: size(400, 400); noSmooth(); point(120, 80); point(340, 80); point(340, 300); point(120, 300); So they are drawn with the size of one pixel. Is there a way to increase the dot si…

---

## [Change Icon in GWindow in G4P?](https://discourse.processing.org/t/change-icon-in-gwindow-in-g4p/44780)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 6\
**Last updated:** [July 18, 2024, 5:02pm UTC](https://discourse.processing.org/t/change-icon-in-gwindow-in-g4p/44780 "2024-07-18T17:02:46Z")

</div>

Hi Peter, Was wondering if there’s a way to swap out the GWindow icon on the upper left corner of new GWindows? Spent a couple hours researching and experimenting before posting here. I found one old post where you gav…

---

## [G4P Close Window Vs Hide Window](https://discourse.processing.org/t/g4p-close-window-vs-hide-window/44761)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 9\
**Last updated:** [July 15, 2024, 2:47pm UTC](https://discourse.processing.org/t/g4p-close-window-vs-hide-window/44761 "2024-07-15T14:47:05Z")

</div>

Hi Peter, This was discussed in another thread, but I felt it needed its own dedicated thread. I want to be able to handle when a user clicks the “x” button to close a GWindow, and also be able to “hide” it using a butt…

---

## [Processing library template using Gradle](https://discourse.processing.org/t/processing-library-template-using-gradle/44739)

<div class="topic-metadata">

**Author:** [@enkatsu](https://discourse.processing.org/u/enkatsu)\
**Replies:** 9\
**Last updated:** [July 14, 2024, 8:36pm UTC](https://discourse.processing.org/t/processing-library-template-using-gradle/44739 "2024-07-14T20:36:11Z")

</div>

Hi! I have been developing a Processing libraries using Gradle for a while now. You can develop this way using your favorite editor such as Eclipse, IntelliJ IDEA, VSCode, etc. I have created a template repository that y…

---

## [Project approach (height map from image)](https://discourse.processing.org/t/project-approach-height-map-from-image/44281)

<div class="topic-metadata">

**Author:** [@Qprocessing](https://discourse.processing.org/u/Qprocessing)\
**Replies:** 7\
**Last updated:** [July 13, 2024, 2:17pm UTC](https://discourse.processing.org/t/project-approach-height-map-from-image/44281 "2024-07-13T14:17:26Z")

</div>

Hello I’m figuring out a project to make a topography of a mountain. I have an example image as a goal. I did a test with still image (final goals is video) The result is not really anything near what I want …

---

## [G4P One More Small Refinement for Droplists](https://discourse.processing.org/t/g4p-one-more-small-refinement-for-droplists/44762)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 5\
**Last updated:** [July 14, 2024, 9:55am UTC](https://discourse.processing.org/t/g4p-one-more-small-refinement-for-droplists/44762 "2024-07-14T09:55:37Z")

</div>

Hi Peter, don’t kill me, but there is one more little thing that would be amazing to add to the droplists at some point - the ability to click into the scrollbar track to move a screenful at a time, or click and hold to …

---

## [Shaders: Drawing layers on top of each other](https://discourse.processing.org/t/shaders-drawing-layers-on-top-of-each-other/44724)

<div class="topic-metadata">

**Author:** [@hoend008](https://discourse.processing.org/u/hoend008)\
**Replies:** 14\
**Last updated:** [July 14, 2024, 5:58am UTC](https://discourse.processing.org/t/shaders-drawing-layers-on-top-of-each-other/44724 "2024-07-14T05:58:36Z")

</div>

Hey all, I want to draw moving shapes on top of an image (a world map), for example ellipses representing airplanes moving over the map to their destination. I am also practicing using a shader to improve performance, b…

---

## [Rotate Camera Image only, blend with Image from Animation](https://discourse.processing.org/t/rotate-camera-image-only-blend-with-image-from-animation/44747)

<div class="topic-metadata">

**Author:** [@qualidat](https://discourse.processing.org/u/qualidat)\
**Replies:** 3\
**Last updated:** [July 11, 2024, 3:37pm UTC](https://discourse.processing.org/t/rotate-camera-image-only-blend-with-image-from-animation/44747 "2024-07-11T15:37:34Z")

</div>

Rotating an image is not normally a complicated matter. However, I have a somewhat complicated problem: I get an image from a live camera I read an image from an animation I mix the images with blend and then show them…

---

## [How to draw a perfect flower](https://discourse.processing.org/t/how-to-draw-a-perfect-flower/44734)

<div class="topic-metadata">

**Author:** [@Ruka](https://discourse.processing.org/u/Ruka)\
**Replies:** 8\
**Last updated:** [July 10, 2024, 3:56am UTC](https://discourse.processing.org/t/how-to-draw-a-perfect-flower/44734 "2024-07-10T03:56:11Z")

</div>

I tried to draw a zinnia, but the first petal is always at the bottom and cannot form a perfect loop with the last petal. How can I modify the code? float r=400; float kuan=200; float chang=400; void setup() { fullSc…

---

## [Merging tiles into paths](https://discourse.processing.org/t/merging-tiles-into-paths/44670)

<div class="topic-metadata">

**Author:** [@eightohnine](https://discourse.processing.org/u/eightohnine)\
**Replies:** 21\
**Last updated:** [July 10, 2024, 5:17pm UTC](https://discourse.processing.org/t/merging-tiles-into-paths/44670 "2024-07-10T17:17:06Z")

</div>

Hi all, I’d like to pick your brains for a sketch I’m tackling. I’m building off of this: It’s a basic tile placement generator that for this example uses two tile types – straight and 90° curve – to fill the canvas …

---

## [G4P java Concurrent Modification Exception Error when exit() called](https://discourse.processing.org/t/g4p-java-concurrent-modification-exception-error-when-exit-called/44532)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 27\
**Last updated:** [July 10, 2024, 5:14pm UTC](https://discourse.processing.org/t/g4p-java-concurrent-modification-exception-error-when-exit-called/44532 "2024-07-10T17:14:43Z")

</div>

Hi all, Just getting a strange java.util.ConcurrentModificationException message when using multiple windows in G4P. It all seems to work fine until I try to use an “Exit” button (calling exit()), and then I get the fo…

---

## [3D modeling from the front camera](https://discourse.processing.org/t/3d-modeling-from-the-front-camera/44641)

<div class="topic-metadata">

**Author:** [@mimi](https://discourse.processing.org/u/mimi)\
**Replies:** 15\
**Last updated:** [July 10, 2024, 10:10am UTC](https://discourse.processing.org/t/3d-modeling-from-the-front-camera/44641 "2024-07-10T10:10:40Z")

</div>

Hello everyone, I will need to see help I am starting on processing. I have already started the code I would like to have but I can’t get a correct result, I attach an image of the result I would like. I would like to…

---

## [White flash on fullscreen](https://discourse.processing.org/t/white-flash-on-fullscreen/44654)

<div class="topic-metadata">

**Author:** [@larry](https://discourse.processing.org/u/larry)\
**Replies:** 5\
**Last updated:** [July 10, 2024, 4:30am UTC](https://discourse.processing.org/t/white-flash-on-fullscreen/44654 "2024-07-10T04:30:03Z")

</div>

Hello Does anyone know if it is possible to remove the white screen that appears for the first at the start of fullscreen apps ? I am using processing in a live show and would like to launch the app during the show with…

---

## [Hitting up against variable scope issue with OSC messages](https://discourse.processing.org/t/hitting-up-against-variable-scope-issue-with-osc-messages/44736)

<div class="topic-metadata">

**Author:** [@dom](https://discourse.processing.org/u/dom)\
**Replies:** 2\
**Last updated:** [July 9, 2024, 10:57am UTC](https://discourse.processing.org/t/hitting-up-against-variable-scope-issue-with-osc-messages/44736 "2024-07-09T10:57:50Z")

</div>

Hello all, I’m having a problem passing OSC into processing. Everything is working in the code below except for the fact that the ellipse does not find the variable pan. I even know why this is: variable scope. However,…

---

## [Image to Audio, Spectrogram Player](https://discourse.processing.org/t/image-to-audio-spectrogram-player/44731)

<div class="topic-metadata">

**Author:** [@karmakarma](https://discourse.processing.org/u/karmakarma)\
**Replies:** 0\
**Last updated:** [July 8, 2024, 11:18am UTC](https://discourse.processing.org/t/image-to-audio-spectrogram-player/44731 "2024-07-08T11:18:00Z")

</div>

dear all, i’m aiming at doing a Processing version of this: Image to Audio, Spectrogram Player basically what I want is to encode an image generated in Processing in an audio file, and make Processing itself play this …

---

## [How to find the coordinates of a bitmap shape](https://discourse.processing.org/t/how-to-find-the-coordinates-of-a-bitmap-shape/44699)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 13\
**Last updated:** [July 7, 2024, 7:08am UTC](https://discourse.processing.org/t/how-to-find-the-coordinates-of-a-bitmap-shape/44699 "2024-07-07T07:08:11Z")

</div>

I have a sketch that divides a rectangle into three cells (picture 1). Everything is working as it should, but now I want to know the xy coordinates of the start and end of each border/edge. To show what I mean, I have m…

---

## [Sketch canvas does not change](https://discourse.processing.org/t/sketch-canvas-does-not-change/44675)

<div class="topic-metadata">

**Author:** [@Crinqe](https://discourse.processing.org/u/Crinqe)\
**Replies:** 1\
**Last updated:** [July 7, 2024, 1:08am UTC](https://discourse.processing.org/t/sketch-canvas-does-not-change/44675 "2024-07-07T01:08:24Z")

</div>

My sketch runs fine, but when I try to change the canvas size, it does not change. I tried to change the ratio of the sketch ex: 100, 200; 1000, 800; but the sketch only pops up with a canvas size of I would say about 10…

---

## [Can't render OpenGL mesh and P3D components at the same time](https://discourse.processing.org/t/cant-render-opengl-mesh-and-p3d-components-at-the-same-time/44624)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 1\
**Last updated:** [July 7, 2024, 12:54am UTC](https://discourse.processing.org/t/cant-render-opengl-mesh-and-p3d-components-at-the-same-time/44624 "2024-07-07T00:54:01Z")

</div>

I don’t know why I can’t use JOML meshes and P3D components at the same time. I followed the opengl tutorial for processing ( Advanced OpenGL · processing/processing Wiki · GitHub) And I was able to successfully render…

---

## [G4P Droplist scroll bar](https://discourse.processing.org/t/g4p-droplist-scroll-bar/44503)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 13\
**Last updated:** [July 5, 2024, 5:00pm UTC](https://discourse.processing.org/t/g4p-droplist-scroll-bar/44503 "2024-07-05T17:00:55Z")

</div>

Hi Peter, simple question - if I’m using the mousewheel event to change the droplist items, I notice the vertical scrollbar stays put. The scrollbar only moves if I click the down or up arrows. Also, I cannot drag the s…

---

## [G4P Tooltip underneath other controls](https://discourse.processing.org/t/g4p-tooltip-underneath-other-controls/44662)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 13\
**Last updated:** [July 5, 2024, 5:00pm UTC](https://discourse.processing.org/t/g4p-tooltip-underneath-other-controls/44662 "2024-07-05T17:00:11Z")

</div>

What a great library! Just a small issue, for some reason if controls are near each other, the tooltips go under other controls. See pic: Is there any way to fix this, or just move the controls? It makes it harder …

---

## [Getting a PShape from an emoji...?](https://discourse.processing.org/t/getting-a-pshape-from-an-emoji/44479)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 20\
**Last updated:** [July 5, 2024, 5:44am UTC](https://discourse.processing.org/t/getting-a-pshape-from-an-emoji/44479 "2024-07-05T05:44:19Z")

</div>

Processing has this PFont method, “undocumented” (not in the main public reference), called .getShape(), that will give you a PShape of a glyph from a font object: PFont docs But there is a catch… it will only take a…

---

## [Data type: very high integer](https://discourse.processing.org/t/data-type-very-high-integer/44680)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 7\
**Last updated:** [July 3, 2024, 3:08pm UTC](https://discourse.processing.org/t/data-type-very-high-integer/44680 "2024-07-03T15:08:15Z")

</div>

simple question: we just try to calculate the length of a lightyear. using int a = 300000 \* // m/s — error ---- km/s 60\*60 \* // to km/h 24 \* // day 365; // year But rounding error occurs Unclear why (I unders…

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

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