# Processing

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

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

**Page:** 39

---

## [Why can't I create my class after I declare a variable with it?](https://discourse.processing.org/t/why-cant-i-create-my-class-after-i-declare-a-variable-with-it/41884)

<div class="topic-metadata">

**Author:** [@Hha2011](https://discourse.processing.org/u/Hha2011)\
**Replies:** 12\
**Last updated:** [June 9, 2023, 5:43pm UTC](https://discourse.processing.org/t/why-cant-i-create-my-class-after-i-declare-a-variable-with-it/41884 "2023-06-09T17:43:10Z")

</div>

\< Ball ball; class Ball { } I swear this code worked in processing 4.1.1 or maybe 4.0b7 cause that was how the tutorial worked(well the class is in a different file but processing reads it like tht so it does not …

---

## [BlobDetection library: Can it find light-colored blobs instead of only dark ones?](https://discourse.processing.org/t/blobdetection-library-can-it-find-light-colored-blobs-instead-of-only-dark-ones/36755)

<div class="topic-metadata">

**Author:** [@jamshark70](https://discourse.processing.org/u/jamshark70)\
**Replies:** 2\
**Last updated:** [June 8, 2023, 3:52pm UTC](https://discourse.processing.org/t/blobdetection-library-can-it-find-light-colored-blobs-instead-of-only-dark-ones/36755 "2023-06-08T15:52:28Z")

</div>

Hi. A bit puzzled with something in the blobDetection library (Julien ‘v3ga’ Gachadoat, BlobDetection library / v3ga). I adapted the webcam script to display the blobs and also send blob coordinates over OSC. It ident…

---

## [Translate camera moving](https://discourse.processing.org/t/translate-camera-moving/42089)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 3\
**Last updated:** [June 7, 2023, 10:24am UTC](https://discourse.processing.org/t/translate-camera-moving/42089 "2023-06-07T10:24:49Z")

</div>

I’m trying to make a settlement building camera scroll game, after I scroll to the side a few it won’t stop going sideways. here my code: sketch int s = 25; boolean buildBase = false; ArrayList\<Ground\> ground = new Ar…

---

## [Can't import toxiclibs library](https://discourse.processing.org/t/cant-import-toxiclibs-library/42157)

<div class="topic-metadata">

**Author:** [@alex119](https://discourse.processing.org/u/alex119)\
**Replies:** 2\
**Last updated:** [June 6, 2023, 6:00pm UTC](https://discourse.processing.org/t/cant-import-toxiclibs-library/42157 "2023-06-06T18:00:05Z")

</div>

Hello, I am following natureofcode examples and I am stuck at the physics chapter where I need to import toxiclibs library. I got it from the github, unzipped it on the library folder from processing sketchbook, restart…

---

## [ControlP5 Vertical Toggle](https://discourse.processing.org/t/controlp5-vertical-toggle/39091)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 4\
**Last updated:** [June 6, 2023, 9:52am UTC](https://discourse.processing.org/t/controlp5-vertical-toggle/39091 "2023-06-06T09:52:07Z")

</div>

Is there any easy way to draw the controlP5 toggle vertically ? (as shown in following way.)

---

## [MQTT-Library: Failed to connect, timeout during waiting for the server, Linux Mint](https://discourse.processing.org/t/mqtt-library-failed-to-connect-timeout-during-waiting-for-the-server-linux-mint/42153)

<div class="topic-metadata">

**Author:** [@ahgbs](https://discourse.processing.org/u/ahgbs)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 8:22am UTC](https://discourse.processing.org/t/mqtt-library-failed-to-connect-timeout-during-waiting-for-the-server-linux-mint/42153 "2023-06-06T08:22:27Z")

</div>

Hello everyone, on my Linux-Machine i get the Error-Message “Failed to connect … timeout during waiting for the server” when i start the MQTT-Example as normal user. If i start Processing as root, connection is ok. With…

---

## [Changing the ellipses size with the movement of the mouse (scale a shape)](https://discourse.processing.org/t/changing-the-ellipses-size-with-the-movement-of-the-mouse-scale-a-shape/42139)

<div class="topic-metadata">

**Author:** [@Bots](https://discourse.processing.org/u/Bots)\
**Replies:** 23\
**Last updated:** [June 5, 2023, 8:54pm UTC](https://discourse.processing.org/t/changing-the-ellipses-size-with-the-movement-of-the-mouse-scale-a-shape/42139 "2023-06-05T20:54:51Z")

</div>

In the following code , I am trying to increase and decrease the size of the ellipses as my mouse moves from left to right on the canvas, I would appreciate any help int logoSize = 250; void setup(){ size(500,500); } …

---

## [I am trying to make 3d platform game](https://discourse.processing.org/t/i-am-trying-to-make-3d-platform-game/42128)

<div class="topic-metadata">

**Author:** [@marslanaras](https://discourse.processing.org/u/marslanaras)\
**Replies:** 1\
**Last updated:** [June 5, 2023, 11:30am UTC](https://discourse.processing.org/t/i-am-trying-to-make-3d-platform-game/42128 "2023-06-05T11:30:45Z")

</div>

i have a project in Processing. i am trying to create basic platform game but i could not do it. Can someone help? In this code, I am trying to create a player and this player should go left and right and can jump with s…

---

## [G4P GPanel behaviour](https://discourse.processing.org/t/g4p-gpanel-behaviour/42134)

<div class="topic-metadata">

**Author:** [@harrih](https://discourse.processing.org/u/harrih)\
**Replies:** 2\
**Last updated:** [June 5, 2023, 11:28am UTC](https://discourse.processing.org/t/g4p-gpanel-behaviour/42134 "2023-06-05T11:28:00Z")

</div>

Hello, Regarding behaviour of GPanel I am trying to make the entire surface of a GPanel responsive to an .isOver type event It appears that normal behaviour is for only the tab area to respond to mouseEvents not the…

---

## [Fatal Error has been detected by the JVM](https://discourse.processing.org/t/fatal-error-has-been-detected-by-the-jvm/42131)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 0\
**Last updated:** [June 3, 2023, 2:52pm UTC](https://discourse.processing.org/t/fatal-error-has-been-detected-by-the-jvm/42131 "2023-06-03T14:52:09Z")

</div>

Im using Linux Mint 21.1 using KDE Plasma 5.24.7. The errors happen at random, sometimes when the frameRate is over 300 Error reads the following: # # A fatal error has been detected by the Java Runtime Environment: …

---

## [The MIDI Bus array of devices](https://discourse.processing.org/t/the-midi-bus-array-of-devices/42126)

<div class="topic-metadata">

**Author:** [@Grumpy\_Mike](https://discourse.processing.org/u/Grumpy_Mike)\
**Replies:** 2\
**Last updated:** [June 3, 2023, 6:23am UTC](https://discourse.processing.org/t/the-midi-bus-array-of-devices/42126 "2023-06-03T06:23:31Z")

</div>

I like to search for specific interfaces when I use the serial port, I have examples of how an array can be created with all the available serial devices. Is there something similar for the MIDI Bus? This is so my code …

---

## [Processing Java file into HTML](https://discourse.processing.org/t/processing-java-file-into-html/42123)

<div class="topic-metadata">

**Author:** [@rrnn](https://discourse.processing.org/u/rrnn)\
**Replies:** 2\
**Last updated:** [June 3, 2023, 4:41am UTC](https://discourse.processing.org/t/processing-java-file-into-html/42123 "2023-06-03T04:41:43Z")

</div>

Hello, a very noob question, forgive me :grin: but is it possible to use a sketch made with Java in Processing app into a html page? If yes, how? is there some tutorial?

---

## [Looking for a date function that can calculate the day of the year from a given date](https://discourse.processing.org/t/looking-for-a-date-function-that-can-calculate-the-day-of-the-year-from-a-given-date/42125)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 2\
**Last updated:** [June 3, 2023, 1:03am UTC](https://discourse.processing.org/t/looking-for-a-date-function-that-can-calculate-the-day-of-the-year-from-a-given-date/42125 "2023-06-03T01:03:05Z")

</div>

I am looking for a date function that can calculate the day of the year from a given date (YYYYMMDD) eg. 20230603 Thanks for help/tips with coding.

---

## [Despite color mode being on 255, it only allows to go to 230!](https://discourse.processing.org/t/despite-color-mode-being-on-255-it-only-allows-to-go-to-230/42096)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 2\
**Last updated:** [June 3, 2023, 12:45am UTC](https://discourse.processing.org/t/despite-color-mode-being-on-255-it-only-allows-to-go-to-230/42096 "2023-06-03T00:45:32Z")

</div>

In my Project color mode is set to HSB 255. but if i use “red(color)” it goes up only to 230. i figured out i made an error with my sliders. im sorry

---

## [JDBC: Data from external SQL database, e.g. SQLITE](https://discourse.processing.org/t/jdbc-data-from-external-sql-database-e-g-sqlite/42119)

<div class="topic-metadata">

**Author:** [@pelton](https://discourse.processing.org/u/pelton)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 1:15pm UTC](https://discourse.processing.org/t/jdbc-data-from-external-sql-database-e-g-sqlite/42119 "2023-06-02T13:15:26Z")

</div>

For graphically representing Collatz-series distribution, I need selective access to a big DB (60M records+). Downloading an re-reading TABLE requires too much space (since user interaction should allow Mandelbrot-like z…

---

## [Processing - Part Tracer (3D digitizer)](https://discourse.processing.org/t/processing-part-tracer-3d-digitizer/42020)

<div class="topic-metadata">

**Author:** [@AussieBoy](https://discourse.processing.org/u/AussieBoy)\
**Replies:** 20\
**Last updated:** [June 2, 2023, 9:08am UTC](https://discourse.processing.org/t/processing-part-tracer-3d-digitizer/42020 "2023-06-02T09:08:22Z")

</div>

Hi, I haven’t used an Arduino in a number of years. Tied up with life. Starting again from scratch to be honest. But hoping to fast track. Building the project is my aim not to reinvent the entire wheel. Never used pr…

---

## [Processing + Variable Font](https://discourse.processing.org/t/processing-variable-font/36445)

<div class="topic-metadata">

**Author:** [@Giaco](https://discourse.processing.org/u/Giaco)\
**Replies:** 2\
**Last updated:** [June 1, 2023, 8:24am UTC](https://discourse.processing.org/t/processing-variable-font/36445 "2023-06-01T08:24:32Z")

</div>

Hello everyone, I designed a variable font with a weight and width axis. I was wondering if there is a way to animate variable fonts with processing. Do you know any examples of processing projects using variable fonts? …

---

## [Object walk with trail (footprints)](https://discourse.processing.org/t/object-walk-with-trail-footprints/42059)

<div class="topic-metadata">

**Author:** [@kenkt](https://discourse.processing.org/u/kenkt)\
**Replies:** 16\
**Last updated:** [May 30, 2023, 8:51pm UTC](https://discourse.processing.org/t/object-walk-with-trail-footprints/42059 "2023-05-30T20:51:00Z")

</div>

Can I combine object with trail and object with no trail?

---

## [PGraphics not exporting to PDF](https://discourse.processing.org/t/pgraphics-not-exporting-to-pdf/42081)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 16\
**Last updated:** [May 30, 2023, 1:03pm UTC](https://discourse.processing.org/t/pgraphics-not-exporting-to-pdf/42081 "2023-05-30T13:03:18Z")

</div>

I have a sketch that I am trying to export to PDF so it can be plotted. I can export to SVG, but it doesn’t preserve any of the underlying vectors graphics, only exports embedded images so it isn’t much use for this appl…

---

## [How can I make a star?](https://discourse.processing.org/t/how-can-i-make-a-star/42100)

<div class="topic-metadata">

**Author:** [@minsu1995](https://discourse.processing.org/u/minsu1995)\
**Replies:** 5\
**Last updated:** [May 30, 2023, 12:26am UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100 "2023-05-30T00:26:14Z")

</div>

i’m very new to coding (started 3 days ago) and am wondering what variables i would need to consider when making a star. however, i’m not animating yet, so i’m not very familiar with the void setup things. any help appre…

---

## [Game Control Plus - avoid config pop up](https://discourse.processing.org/t/game-control-plus-avoid-config-pop-up/42086)

<div class="topic-metadata">

**Author:** [@Edenstudent](https://discourse.processing.org/u/Edenstudent)\
**Replies:** 5\
**Last updated:** [May 29, 2023, 5:03pm UTC](https://discourse.processing.org/t/game-control-plus-avoid-config-pop-up/42086 "2023-05-29T17:03:21Z")

</div>

I am Quark’s Game Control Plus library and have been going through it for the past few days, setting it up. However, I want to run it without the configuration window popping up, which I can get it to do if I set it up i…

---

## [Exported soundboard application not loading on macOS](https://discourse.processing.org/t/exported-soundboard-application-not-loading-on-macos/42084)

<div class="topic-metadata">

**Author:** [@Diriz](https://discourse.processing.org/u/Diriz)\
**Replies:** 0\
**Last updated:** [May 27, 2023, 8:05pm UTC](https://discourse.processing.org/t/exported-soundboard-application-not-loading-on-macos/42084 "2023-05-27T20:05:01Z")

</div>

Hi there, Forgive me as I’m very removed from Processing and only used it 5 years ago for this specific project in college. I’m coming back to it as I’d like to share it with a friend, but can’t seem to find a solution. …

---

## [Creating PGraphics2D/PGraphics3D without PApplet](https://discourse.processing.org/t/creating-pgraphics2d-pgraphics3d-without-papplet/42072)

<div class="topic-metadata">

**Author:** [@DavidGR74](https://discourse.processing.org/u/DavidGR74)\
**Replies:** 6\
**Last updated:** [May 27, 2023, 9:30am UTC](https://discourse.processing.org/t/creating-pgraphics2d-pgraphics3d-without-papplet/42072 "2023-05-27T09:30:53Z")

</div>

Hello, I am trying to use Processing as a rendering engine outside the PApplet context. The following test code works fine: public static void main(String\[\] args) { PGraphicsJava2D pg=new PGraphicsJava2D(); pg.s…

---

## [First-person camera (3D)](https://discourse.processing.org/t/first-person-camera-3d/42082)

<div class="topic-metadata">

**Author:** [@09husky](https://discourse.processing.org/u/09husky)\
**Replies:** 3\
**Last updated:** [May 27, 2023, 12:08am UTC](https://discourse.processing.org/t/first-person-camera-3d/42082 "2023-05-27T00:08:28Z")

</div>

My first-person camera code is having the following problems: changing the \[starting\] position of the camera makes the reference sphere disappear, replaced by a white screen; when playing around with the commented-out “b…

---

## [Moving shape with rotate](https://discourse.processing.org/t/moving-shape-with-rotate/42071)

<div class="topic-metadata">

**Author:** [@Janoer](https://discourse.processing.org/u/Janoer)\
**Replies:** 10\
**Last updated:** [May 27, 2023, 12:01am UTC](https://discourse.processing.org/t/moving-shape-with-rotate/42071 "2023-05-27T00:01:06Z")

</div>

hello, I’m new at this. can a rotating shape be moved with mouseX and mouseY?

---

## [Climate temperature and rain API](https://discourse.processing.org/t/climate-temperature-and-rain-api/42026)

<div class="topic-metadata">

**Author:** [@isabela](https://discourse.processing.org/u/isabela)\
**Replies:** 5\
**Last updated:** [May 26, 2023, 5:25pm UTC](https://discourse.processing.org/t/climate-temperature-and-rain-api/42026 "2023-05-26T17:25:29Z")

</div>

Hello! I am looking for a simple API for weather forecasts, any suggestions? (also, I am a beginner!) Thanks, Isabela

---

## [Error moving object (using quad())](https://discourse.processing.org/t/error-moving-object-using-quad/42067)

<div class="topic-metadata">

**Author:** [@kenkt](https://discourse.processing.org/u/kenkt)\
**Replies:** 15\
**Last updated:** [May 26, 2023, 2:42pm UTC](https://discourse.processing.org/t/error-moving-object-using-quad/42067 "2023-05-26T14:42:39Z")

</div>

I want this object moving by mouse x and mouse y, but this code error. anybody, can help me? That’s my code: void setup() { size (700,700); } void draw() { background(255); quad(mouseX+1,mouseY-5,mouseX+75,mouseY+…

---

## [Adding background when outputting PDF in Processing 4 JAVA](https://discourse.processing.org/t/adding-background-when-outputting-pdf-in-processing-4-java/42063)

<div class="topic-metadata">

**Author:** [@cans](https://discourse.processing.org/u/cans)\
**Replies:** 1\
**Last updated:** [May 25, 2023, 1:31am UTC](https://discourse.processing.org/t/adding-background-when-outputting-pdf-in-processing-4-java/42063 "2023-05-25T01:31:08Z")

</div>

With Processing 4, I can save my data in PDF format. But it doesn’t happen when I try to add an image behind the PDF output. I have to use beginRecord() function because I need to record data continuously. public void s…

---

## [Which instance actually executes beginDraw() and endDraw()?](https://discourse.processing.org/t/which-instance-actually-executes-begindraw-and-enddraw/42057)

<div class="topic-metadata">

**Author:** [@vjwada](https://discourse.processing.org/u/vjwada)\
**Replies:** 4\
**Last updated:** [May 24, 2023, 9:57am UTC](https://discourse.processing.org/t/which-instance-actually-executes-begindraw-and-enddraw/42057 "2023-05-24T09:57:56Z")

</div>

I want to have two PGraphics instances and create an image for each separately. I wanted to prevent the creation of two different images due to changes in the argument contents during a long draw() execution, so I appli…

---

## [Blank PDF output for one particular sketch - checking before submitting a bug report](https://discourse.processing.org/t/blank-pdf-output-for-one-particular-sketch-checking-before-submitting-a-bug-report/42053)

<div class="topic-metadata">

**Author:** [@andrewcooke](https://discourse.processing.org/u/andrewcooke)\
**Replies:** 7\
**Last updated:** [May 23, 2023, 11:45pm UTC](https://discourse.processing.org/t/blank-pdf-output-for-one-particular-sketch-checking-before-submitting-a-bug-report/42053 "2023-05-23T23:45:14Z")

</div>

Hi, I’ve only been using processing (v4) for a short time, but am having a lot of fun generating various images. These are all based on a similar structure (I tend to develop the code incrementally, saving each step as…

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

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