# Processing

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

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

**Page:** 68

---

## [Sketch running in a container](https://discourse.processing.org/t/sketch-running-in-a-container/33928)

<div class="topic-metadata">

**Author:** [@mancpato](https://discourse.processing.org/u/mancpato)\
**Replies:** 2\
**Last updated:** [September 17, 2022, 5:26pm UTC](https://discourse.processing.org/t/sketch-running-in-a-container/33928 "2022-09-17T17:26:51Z")

</div>

Can I use Processing sketch with a container? Something like Docker.

---

## [Null Pointer Exceptions problem](https://discourse.processing.org/t/null-pointer-exceptions-problem/38830)

<div class="topic-metadata">

**Author:** [@Emmanuel](https://discourse.processing.org/u/Emmanuel)\
**Replies:** 6\
**Last updated:** [September 17, 2022, 11:49pm UTC](https://discourse.processing.org/t/null-pointer-exceptions-problem/38830 "2022-09-17T23:49:57Z")

</div>

hello hi, sorry am trying to get data from arduino through serial port to processing ide but a getting an error that say Null Pointer Exceptions. below is my full processing code. // Import Meter library import meter.\*;…

---

## [Enable maximize button from frame](https://discourse.processing.org/t/enable-maximize-button-from-frame/14977)

<div class="topic-metadata">

**Author:** [@carbonne](https://discourse.processing.org/u/carbonne)\
**Replies:** 3\
**Last updated:** [September 17, 2022, 1:46pm UTC](https://discourse.processing.org/t/enable-maximize-button-from-frame/14977 "2022-09-17T13:46:34Z")

</div>

In mac the maximize window button on my sketch is disabled. I would like to enable it. I tried surface.setResizable(true) but it doesn’t enable the button, only allows to manually resize the window. How do I do this? …

---

## [Pg graphics window is always square, even if main window size is rectangular](https://discourse.processing.org/t/pg-graphics-window-is-always-square-even-if-main-window-size-is-rectangular/38806)

<div class="topic-metadata">

**Author:** [@ishmalish](https://discourse.processing.org/u/ishmalish)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 6:16pm UTC](https://discourse.processing.org/t/pg-graphics-window-is-always-square-even-if-main-window-size-is-rectangular/38806 "2022-09-16T18:16:59Z")

</div>

PFont font; PGraphics pg; void setup() { size(400, 600, P2D); font = createFont("helvetica\_bold.otf", 30); pg = createGraphics(1000, 1000, P2D); //pg = createGraphics(400, 600, P2D); //or the same size as the si…

---

## [How to make an overlay that overlays over other program](https://discourse.processing.org/t/how-to-make-an-overlay-that-overlays-over-other-program/38784)

<div class="topic-metadata">

**Author:** [@5x9x7x2x7x9](https://discourse.processing.org/u/5x9x7x2x7x9)\
**Replies:** 8\
**Last updated:** [September 15, 2022, 7:03pm UTC](https://discourse.processing.org/t/how-to-make-an-overlay-that-overlays-over-other-program/38784 "2022-09-15T19:03:43Z")

</div>

Hello, I was wondering if there was any way to make it so I could have a program, that if you switch to another program, it would still be on your screen and you could interact with the other program normally? For examp…

---

## [How should this one-to-one link be modelled?](https://discourse.processing.org/t/how-should-this-one-to-one-link-be-modelled/38802)

<div class="topic-metadata">

**Author:** [@neon124](https://discourse.processing.org/u/neon124)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 1:32pm UTC](https://discourse.processing.org/t/how-should-this-one-to-one-link-be-modelled/38802 "2022-09-16T13:32:40Z")

</div>

I have a number of entities that represent the various user kinds that must be able to access a certain system. They also come with a variety of information attached to them. ​ ​ For instance, “admin user” has a workst…

---

## [Processing-java - python multiprocessing pool](https://discourse.processing.org/t/processing-java-python-multiprocessing-pool/38732)

<div class="topic-metadata">

**Author:** [@superumam](https://discourse.processing.org/u/superumam)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 12:18pm UTC](https://discourse.processing.org/t/processing-java-python-multiprocessing-pool/38732 "2022-09-16T12:18:11Z")

</div>

Hi, everyone. I’m finding an expert who has some experience on multiprocessing with processing-java. I’ve developed a python script to run processing-java command with multiprocessing pool. — Python Script— from multi…

---

## [How to use robot.mousePress(int) and robot.mouseRelease(int)?](https://discourse.processing.org/t/how-to-use-robot-mousepress-int-and-robot-mouserelease-int/27768)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [September 16, 2022, 9:06am UTC](https://discourse.processing.org/t/how-to-use-robot-mousepress-int-and-robot-mouserelease-int/27768 "2022-09-16T09:06:11Z")

</div>

Hi! I recently started using the robot library. I tried using inputEvent. and mouseEvent with the BUTTON\_MASK1… (I saw those methods on forums) However; I can’t use robot.mousePress(int) and robot.mouseRelease(int) I…

---

## [Reproducing JPG image from script to make it editable](https://discourse.processing.org/t/reproducing-jpg-image-from-script-to-make-it-editable/38760)

<div class="topic-metadata">

**Author:** [@techmouse](https://discourse.processing.org/u/techmouse)\
**Replies:** 10\
**Last updated:** [September 16, 2022, 7:29am UTC](https://discourse.processing.org/t/reproducing-jpg-image-from-script-to-make-it-editable/38760 "2022-09-16T07:29:02Z")

</div>

Hi, I want to ask, is there a script I could use to recreate an image I have and convert to a suitable format where I can make modifications to the image ?

---

## [How to load JSON multidimensional arrays and set them in a table](https://discourse.processing.org/t/how-to-load-json-multidimensional-arrays-and-set-them-in-a-table/38797)

<div class="topic-metadata">

**Author:** [@codeconfuser](https://discourse.processing.org/u/codeconfuser)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 7:26am UTC](https://discourse.processing.org/t/how-to-load-json-multidimensional-arrays-and-set-them-in-a-table/38797 "2022-09-16T07:26:25Z")

</div>

Hi, I’m trying to get data from a JSON array that is outputted from a sensor, but I’m struggling to parse the data into easy columns and rows. this is a sample of the data output \[\[1643935200000,1\],\[1643941200000,1\],\[…

---

## [Begginer here, trying to reduce code with a for loop iteration](https://discourse.processing.org/t/begginer-here-trying-to-reduce-code-with-a-for-loop-iteration/38763)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 6\
**Last updated:** [September 16, 2022, 5:49am UTC](https://discourse.processing.org/t/begginer-here-trying-to-reduce-code-with-a-for-loop-iteration/38763 "2022-09-16T05:49:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I used for loop for simple things before… but now I have to do some addition in every increment. My brain froze… I am drowning in code… Is t…

---

## [Can't run exported application on Windows](https://discourse.processing.org/t/cant-run-exported-application-on-windows/38777)

<div class="topic-metadata">

**Author:** [@Eastern](https://discourse.processing.org/u/Eastern)\
**Replies:** 4\
**Last updated:** [September 15, 2022, 7:38pm UTC](https://discourse.processing.org/t/cant-run-exported-application-on-windows/38777 "2022-09-15T19:38:06Z")

</div>

I’m currently using Processing 4.0.1 (Apple silicon version). It always shows “This application requires a Java Runtime Environment 17” when I try to open the exported application on Windows. Even after I download from h…

---

## [The operator \> is undefined for the argument - HOW TO RESOLVE ERROR (OOP)](https://discourse.processing.org/t/the-operator-is-undefined-for-the-argument-how-to-resolve-error-oop/38705)

<div class="topic-metadata">

**Author:** [@sosophia10](https://discourse.processing.org/u/sosophia10)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 7:01pm UTC](https://discourse.processing.org/t/the-operator-is-undefined-for-the-argument-how-to-resolve-error-oop/38705 "2022-09-13T19:01:29Z")

</div>

Why is this error occuring and what can I do to solve it? The operator \> is undefined for the argument type(s) int Main.Cards is indicated where cardX, cardY, cardH, and cardW are being called in mousePressed(); and…

---

## [How can I save an OSC message inside a variable?](https://discourse.processing.org/t/how-can-i-save-an-osc-message-inside-a-variable/38723)

<div class="topic-metadata">

**Author:** [@JoeHut](https://discourse.processing.org/u/JoeHut)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 4:31am UTC](https://discourse.processing.org/t/how-can-i-save-an-osc-message-inside-a-variable/38723 "2022-09-15T04:31:04Z")

</div>

Hi everyone! I’m quite new to processing, so please forgive me if there are any obvious/dumb mistakes here. I’m working on a sketch where I’m trying to have the webcam read a QR code via BoofCV and have oscP5 deliver t…

---

## [Projection in Processing](https://discourse.processing.org/t/projection-in-processing/38741)

<div class="topic-metadata">

**Author:** [@xfred53](https://discourse.processing.org/u/xfred53)\
**Replies:** 1\
**Last updated:** [September 14, 2022, 3:34pm UTC](https://discourse.processing.org/t/projection-in-processing/38741 "2022-09-14T15:34:11Z")

</div>

Hi, Using P3D, I’m looking for a way to draw projections of a shape on a plane. Are there some libraries that could help me ? Thanks.

---

## [Easing equations with 'Influence' and 'In-/Outgoing Velocity' like in Adobe After Effects](https://discourse.processing.org/t/easing-equations-with-influence-and-in-outgoing-velocity-like-in-adobe-after-effects/38687)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 3\
**Last updated:** [September 14, 2022, 1:00pm UTC](https://discourse.processing.org/t/easing-equations-with-influence-and-in-outgoing-velocity-like-in-adobe-after-effects/38687 "2022-09-14T13:00:15Z")

</div>

Hello, I want to synchronise the easing of something I coded to something I made in After Effects as exactly as possible. In After Effects, when animating something you can more precisely control the motion of that ani…

---

## [Is there a way to pass a PNG image with the PImage.set() command?](https://discourse.processing.org/t/is-there-a-way-to-pass-a-png-image-with-the-pimage-set-command/38731)

<div class="topic-metadata">

**Author:** [@michele\_rinaldi](https://discourse.processing.org/u/michele_rinaldi)\
**Replies:** 5\
**Last updated:** [September 14, 2022, 12:16am UTC](https://discourse.processing.org/t/is-there-a-way-to-pass-a-png-image-with-the-pimage-set-command/38731 "2022-09-14T00:16:28Z")

</div>

I need to copy a PNG image to a JPG image. Using the command: pimg.set (x, y, img); I paste the image not as a PNG but as a JPG, thus inserting the background. Any advice to solve this problem?

---

## [Get coordinates from a rectangle](https://discourse.processing.org/t/get-coordinates-from-a-rectangle/38740)

<div class="topic-metadata">

**Author:** [@xfred53](https://discourse.processing.org/u/xfred53)\
**Replies:** 1\
**Last updated:** [September 13, 2022, 3:55pm UTC](https://discourse.processing.org/t/get-coordinates-from-a-rectangle/38740 "2022-09-13T15:55:02Z")

</div>

Hi, Is it possible to get the coordinates of the angles of a rectangle after some transformations ? See following code : size(200,200,P3D); rectMode(CENTER); pushMatrix(); translate(50,100,0); rotateX(45); rect(50,50,…

---

## [Display Table data from a csv and return the rowID when the user clicks on a row](https://discourse.processing.org/t/display-table-data-from-a-csv-and-return-the-rowid-when-the-user-clicks-on-a-row/38548)

<div class="topic-metadata">

**Author:** [@TEACHMYSTERY](https://discourse.processing.org/u/TEACHMYSTERY)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 4:44pm UTC](https://discourse.processing.org/t/display-table-data-from-a-csv-and-return-the-rowid-when-the-user-clicks-on-a-row/38548 "2022-09-13T16:44:09Z")

</div>

I want to display some of the columns from a Table object (it is loaded from a csv file) and then retrieve the row of information when the user clicks on the row. I do not see a “native” mechanism to do this in processin…

---

## [Perlin Noise in Static Sketch Examples](https://discourse.processing.org/t/perlin-noise-in-static-sketch-examples/38711)

<div class="topic-metadata">

**Author:** [@i-draw-monkeys](https://discourse.processing.org/u/i-draw-monkeys)\
**Replies:** 5\
**Last updated:** [September 13, 2022, 2:25pm UTC](https://discourse.processing.org/t/perlin-noise-in-static-sketch-examples/38711 "2022-09-13T14:25:54Z")

</div>

I am learning and using Processing to build files for my pen plotter. I love using the random function and want to start subbing in the noise function and see what happens. However, as it is not a one to one substitution…

---

## [Pro Question: get ALL in-between points from beginShape curveVertex() endShape](https://discourse.processing.org/t/pro-question-get-all-in-between-points-from-beginshape-curvevertex-endshape/38693)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [September 12, 2022, 3:35pm UTC](https://discourse.processing.org/t/pro-question-get-all-in-between-points-from-beginshape-curvevertex-endshape/38693 "2022-09-12T15:35:09Z")

</div>

Hello all! as we all know, we can use beginShape curveVertex() endShape to make long complex curves. See Reference / Processing.org But it’s pretty much a black box. How can I receive ALL points that are shown by cu…

---

## [Getting enum inside a class constructor](https://discourse.processing.org/t/getting-enum-inside-a-class-constructor/38722)

<div class="topic-metadata">

**Author:** [@iudividnal](https://discourse.processing.org/u/iudividnal)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 11:13am UTC](https://discourse.processing.org/t/getting-enum-inside-a-class-constructor/38722 "2022-09-12T11:13:01Z")

</div>

Hello, I ran into this problem while working on simple object check box / onoff button. I wanted to be able to determin the type(looks) of my button in the costructor by an enum for example: checkbox\_box, checkbox\_cir…

---

## [Detect collision side for balls and rectangles](https://discourse.processing.org/t/detect-collision-side-for-balls-and-rectangles/38699)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 11\
**Last updated:** [September 12, 2022, 12:55am UTC](https://discourse.processing.org/t/detect-collision-side-for-balls-and-rectangles/38699 "2022-09-12T00:55:18Z")

</div>

I am creating a “physics simulation” with objects that are affected by gravity, friction and wind. The main object is a ball that bounces around the screen, in realistic ways according to the physics modifiers the user c…

---

## [Using QR detection to send an osc message to Resolume Arena](https://discourse.processing.org/t/using-qr-detection-to-send-an-osc-message-to-resolume-arena/38708)

<div class="topic-metadata">

**Author:** [@JoeHut](https://discourse.processing.org/u/JoeHut)\
**Replies:** 0\
**Last updated:** [September 11, 2022, 8:26am UTC](https://discourse.processing.org/t/using-qr-detection-to-send-an-osc-message-to-resolume-arena/38708 "2022-09-11T08:26:52Z")

</div>

Hi everyone! Let me start saying that I’m a complete beginner, so I hope this is the right place to ask this question, but I’m (obviously) having some troubles with the code I’m trying to make work… What I’m trying to …

---

## [Arduino filling the serial Buffer with nulls](https://discourse.processing.org/t/arduino-filling-the-serial-buffer-with-nulls/38674)

<div class="topic-metadata">

**Author:** [@maro](https://discourse.processing.org/u/maro)\
**Replies:** 12\
**Last updated:** [September 10, 2022, 12:57pm UTC](https://discourse.processing.org/t/arduino-filling-the-serial-buffer-with-nulls/38674 "2022-09-10T12:57:43Z")

</div>

I just wrote some code that sends a String from Arduino to Processing. Processing prints the String and display the number of characters in the buffer… After uploading the sketch to the Arduino and starting Processing f…

---

## [G4P trouble trying to hide a window when the operating system close button is pressed](https://discourse.processing.org/t/g4p-trouble-trying-to-hide-a-window-when-the-operating-system-close-button-is-pressed/9209)

<div class="topic-metadata">

**Author:** [@graysonh](https://discourse.processing.org/u/graysonh)\
**Replies:** 6\
**Last updated:** [September 10, 2022, 8:57am UTC](https://discourse.processing.org/t/g4p-trouble-trying-to-hide-a-window-when-the-operating-system-close-button-is-pressed/9209 "2022-09-10T08:57:27Z")

</div>

First off, thank you @quark for the great libraries and gui building tools. They have been really helpful recently! I am working on a project that involves several windows, all of which I need to be reusable while the p…

---

## [Trying to modifiy a variable in a class and access it from a subclass](https://discourse.processing.org/t/trying-to-modifiy-a-variable-in-a-class-and-access-it-from-a-subclass/38691)

<div class="topic-metadata">

**Author:** [@xfred53](https://discourse.processing.org/u/xfred53)\
**Replies:** 5\
**Last updated:** [September 9, 2022, 1:27pm UTC](https://discourse.processing.org/t/trying-to-modifiy-a-variable-in-a-class-and-access-it-from-a-subclass/38691 "2022-09-09T13:27:36Z")

</div>

Hi, A beginner question for sure but cannot solve it all alone. I have a first class (One) with a single field that is initiated with its constructor. I can access it from method (display) of this class. I then have …

---

## [Java / SpringBoot / Processing - How to launch a PApplet within a Spring Boot application?](https://discourse.processing.org/t/java-springboot-processing-how-to-launch-a-papplet-within-a-spring-boot-application/38688)

<div class="topic-metadata">

**Author:** [@MrJenkins](https://discourse.processing.org/u/MrJenkins)\
**Replies:** 0\
**Last updated:** [September 9, 2022, 10:36am UTC](https://discourse.processing.org/t/java-springboot-processing-how-to-launch-a-papplet-within-a-spring-boot-application/38688 "2022-09-09T10:36:40Z")

</div>

Hi, I’m building a web application in Java, with Spring Boot, including Processing (4) as a library. I’m using Intellij IDEA. I have posted this question on StackOverflow as well: Click I’m stuck with the integration o…

---

## [Processing halts program before it even runs, how do I stop this?](https://discourse.processing.org/t/processing-halts-program-before-it-even-runs-how-do-i-stop-this/38676)

<div class="topic-metadata">

**Author:** [@JellyJam](https://discourse.processing.org/u/JellyJam)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 6:54am UTC](https://discourse.processing.org/t/processing-halts-program-before-it-even-runs-how-do-i-stop-this/38676 "2022-09-09T06:54:37Z")

</div>

There is an “error” in my code that processing thinks is an error but really isn’t. It refuses to run because of this. Here is my code. import java.io.\*; import java.lang.\*; import java.util.\*; ArrayList\<Object\> objec…

---

## [Get main processing file to have access to other files in other directories](https://discourse.processing.org/t/get-main-processing-file-to-have-access-to-other-files-in-other-directories/38667)

<div class="topic-metadata">

**Author:** [@Theis](https://discourse.processing.org/u/Theis)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 8:41pm UTC](https://discourse.processing.org/t/get-main-processing-file-to-have-access-to-other-files-in-other-directories/38667 "2022-09-07T20:41:23Z")

</div>

Hey, I would like to know if it is possible to have the main processing file be able to read from other processing files in subfolders?

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

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