# Processing

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

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

**Page:** 13

---

## [Spreadsheet - how to store data on the Hard Drive?](https://discourse.processing.org/t/spreadsheet-how-to-store-data-on-the-hard-drive/45733)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [February 17, 2025, 1:04pm UTC](https://discourse.processing.org/t/spreadsheet-how-to-store-data-on-the-hard-drive/45733 "2025-02-17T13:04:19Z")

</div>

Hello all! I wrote a Spreadsheet like Excel. Data is stored as a Table on the Hard Drive and for displaying it on the screen and to use the mouse in the cells, I use a grid of a class Cell. There are text, numbers or …

---

## [For Linux, is Video Library 2.2. broken?](https://discourse.processing.org/t/for-linux-is-video-library-2-2-broken/44456)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 1\
**Last updated:** [February 16, 2025, 4:27pm UTC](https://discourse.processing.org/t/for-linux-is-video-library-2-2-broken/44456 "2025-02-16T16:27:51Z")

</div>

Please check https://github.com/processing/processing-video/issues/221. For Linux, Is Video Library 2.2 broken? (I use it on Win and Mac without any problem).

---

## [Tint function not working on image](https://discourse.processing.org/t/tint-function-not-working-on-image/45763)

<div class="topic-metadata">

**Author:** [@crendon](https://discourse.processing.org/u/crendon)\
**Replies:** 7\
**Last updated:** [February 15, 2025, 10:08pm UTC](https://discourse.processing.org/t/tint-function-not-working-on-image/45763 "2025-02-15T22:08:14Z")

</div>

Hello everyone! Brand new here. :slight\_smile: I am doing the DVD Logo bounce on screen. Everything works except the changing of the color of the image. The image is a PNG. No matter what I try it just stays black. T…

---

## [Rotating a Block of Points About Another Point Magnifies and Diminishes the Block Size](https://discourse.processing.org/t/rotating-a-block-of-points-about-another-point-magnifies-and-diminishes-the-block-size/45757)

<div class="topic-metadata">

**Author:** [@Ermi](https://discourse.processing.org/u/Ermi)\
**Replies:** 1\
**Last updated:** [February 15, 2025, 8:54am UTC](https://discourse.processing.org/t/rotating-a-block-of-points-about-another-point-magnifies-and-diminishes-the-block-size/45757 "2025-02-15T08:54:59Z")

</div>

I am trying to rotate points about another point, but the rotated points are either further away from each other or they are closer to each other than their original separation. I want to rotate them so that when they ar…

---

## [Why does .getConstructor fail with a NoSuchMethodException despite zero-arg constructors existing for the class?](https://discourse.processing.org/t/why-does-getconstructor-fail-with-a-nosuchmethodexception-despite-zero-arg-constructors-existing-for-the-class/45748)

<div class="topic-metadata">

**Author:** [@PeterAmbos](https://discourse.processing.org/u/PeterAmbos)\
**Replies:** 10\
**Last updated:** [February 12, 2025, 7:43pm UTC](https://discourse.processing.org/t/why-does-getconstructor-fail-with-a-nosuchmethodexception-despite-zero-arg-constructors-existing-for-the-class/45748 "2025-02-12T19:43:33Z")

</div>

I’m programming a game for a programming course in college, and I’ve run into some trouble with the .getConstructor method. What I’m trying to do is pass a class that has to be a subclass of another class as an argument …

---

## [Standalone app does not work after downloading from a website or sent by e-mail](https://discourse.processing.org/t/standalone-app-does-not-work-after-downloading-from-a-website-or-sent-by-e-mail/45743)

<div class="topic-metadata">

**Author:** [@gomiza](https://discourse.processing.org/u/gomiza)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 8:59pm UTC](https://discourse.processing.org/t/standalone-app-does-not-work-after-downloading-from-a-website-or-sent-by-e-mail/45743 "2025-02-11T20:59:26Z")

</div>

I wrote a Processing app that I want to share, so far only for Mac. When I export as an app Mac OS Intel64 everything is ok, a standalone app that uses a .png image file works great after putting the image in the same fo…

---

## [How to change the brace/indentation style for auto-format?](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723)

<div class="topic-metadata">

**Author:** [@kryt](https://discourse.processing.org/u/kryt)\
**Replies:** 3\
**Last updated:** [February 10, 2025, 11:56am UTC](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723 "2025-02-10T11:56:22Z")

</div>

Apologies if this is the wrong place for this. Ever since Processing changed to 2, the indentations and curly braces have not worked very well to cover different styles, when using auto-format to fix the code. https://…

---

## [Processing on NixOS: "core does not run on this architecture: linux-amd64"](https://discourse.processing.org/t/processing-on-nixos-core-does-not-run-on-this-architecture-linux-amd64/45736)

<div class="topic-metadata">

**Author:** [@pcarr](https://discourse.processing.org/u/pcarr)\
**Replies:** 0\
**Last updated:** [February 9, 2025, 8:54pm UTC](https://discourse.processing.org/t/processing-on-nixos-core-does-not-run-on-this-architecture-linux-amd64/45736 "2025-02-09T20:54:07Z")

</div>

Hello! I’m just starting out with Processing. I am using Processing 4 v1293, which is what’s packaged for NixOS. My code runs fine, however in the console at runtime I get this message: core does not run on this archite…

---

## [ESP32 Bluetooth transmission problem](https://discourse.processing.org/t/esp32-bluetooth-transmission-problem/45730)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 5\
**Last updated:** [February 9, 2025, 2:33pm UTC](https://discourse.processing.org/t/esp32-bluetooth-transmission-problem/45730 "2025-02-09T14:33:11Z")

</div>

Part of the Arduino function is as follows： void sendDataThroughUART(void){ DataPacket\[0\] = ecgFilterout; DataPacket\[1\] = ecgFilterout \>\> 8; DataPacket\[2\] = resWaveBuff; DataPacket\[3\] = resWaveBuff \>\> 8; Dat…

---

## [3D scene without any shading](https://discourse.processing.org/t/3d-scene-without-any-shading/45716)

<div class="topic-metadata">

**Author:** [@qualidat](https://discourse.processing.org/u/qualidat)\
**Replies:** 2\
**Last updated:** [February 9, 2025, 1:58pm UTC](https://discourse.processing.org/t/3d-scene-without-any-shading/45716 "2025-02-09T13:58:43Z")

</div>

Hello, I need the objects in a rotating 3d scene without light and shadow, only with solid “smooth” colors. The idea is to use the touchscreen to select individual objects in the rotating scene, even if they cover each o…

---

## [Failing constructor intentionally to stop the instantiation of an object](https://discourse.processing.org/t/failing-constructor-intentionally-to-stop-the-instantiation-of-an-object/45719)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [February 9, 2025, 9:29am UTC](https://discourse.processing.org/t/failing-constructor-intentionally-to-stop-the-instantiation-of-an-object/45719 "2025-02-09T09:29:48Z")

</div>

I had a function outside a class that performs some checks before making the object from the class. If the incoming parameter was faulty, it would return null instead of the object. Then it occured to me that it would b…

---

## [How Can I Create Two Mediums with Different Drag Properties Inside VerletPhysics2D World?](https://discourse.processing.org/t/how-can-i-create-two-mediums-with-different-drag-properties-inside-verletphysics2d-world/45728)

<div class="topic-metadata">

**Author:** [@Ermi](https://discourse.processing.org/u/Ermi)\
**Replies:** 1\
**Last updated:** [February 8, 2025, 1:12pm UTC](https://discourse.processing.org/t/how-can-i-create-two-mediums-with-different-drag-properties-inside-verletphysics2d-world/45728 "2025-02-08T13:12:06Z")

</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…

---

## [How can I check if a line is touching a specific point?](https://discourse.processing.org/t/how-can-i-check-if-a-line-is-touching-a-specific-point/45725)

<div class="topic-metadata">

**Author:** [@Sel](https://discourse.processing.org/u/Sel)\
**Replies:** 1\
**Last updated:** [February 7, 2025, 11:49pm UTC](https://discourse.processing.org/t/how-can-i-check-if-a-line-is-touching-a-specific-point/45725 "2025-02-07T23:49:33Z")

</div>

How can i check if a line is touching a specific point?

---

## [Perlin noise range does not go all the way from 0.0 - 1.0](https://discourse.processing.org/t/perlin-noise-range-does-not-go-all-the-way-from-0-0-1-0/45722)

<div class="topic-metadata">

**Author:** [@TomToad](https://discourse.processing.org/u/TomToad)\
**Replies:** 1\
**Last updated:** [February 7, 2025, 11:08am UTC](https://discourse.processing.org/t/perlin-noise-range-does-not-go-all-the-way-from-0-0-1-0/45722 "2025-02-07T11:08:22Z")

</div>

I realize that the noise() function won’t go all the way to 1.0, but I’d think that it would at least get as high as 0.999, but it only reaches around 0.846, and it only goes down to about 0.0735. That means when I’m pl…

---

## [Generative collage error](https://discourse.processing.org/t/generative-collage-error/45714)

<div class="topic-metadata">

**Author:** [@jbanales](https://discourse.processing.org/u/jbanales)\
**Replies:** 9\
**Last updated:** [February 7, 2025, 9:41am UTC](https://discourse.processing.org/t/generative-collage-error/45714 "2025-02-07T09:41:42Z")

</div>

Hello, when I run this code I get this message. There are only 16 images in the sketch and they are in the data/images folder. loading… 32images loaded! The file data/images/.\_04.jpg contains bad image data, or may not …

---

## [G4P multiple windows and noSmooth()](https://discourse.processing.org/t/g4p-multiple-windows-and-nosmooth/45690)

<div class="topic-metadata">

**Author:** [@joejoe](https://discourse.processing.org/u/joejoe)\
**Replies:** 8\
**Last updated:** [February 2, 2025, 5:38pm UTC](https://discourse.processing.org/t/g4p-multiple-windows-and-nosmooth/45690 "2025-02-02T17:38:17Z")

</div>

I’m trying to display different images in different G4P windows without smoothing the image as I need sharp edges. I have set the noSmooth() in the setup() just after the size() instruction for the main window. This wor…

---

## [Serial Library: Clarity needed on SerialEvent() comment](https://discourse.processing.org/t/serial-library-clarity-needed-on-serialevent-comment/45663)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 3\
**Last updated:** [February 1, 2025, 10:26pm UTC](https://discourse.processing.org/t/serial-library-clarity-needed-on-serialevent-comment/45663 "2025-02-01T22:26:20Z")

</div>

Hello folks! Can someone help provide clarity on a comment in the Serial library? The comment is here: processing/java/libraries/serial/src/processing/serial/Serial.java at master · processing/processing · GitHub and…

---

## [Reinforcement learning Java Processing](https://discourse.processing.org/t/reinforcement-learning-java-processing/45680)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 10:23pm UTC](https://discourse.processing.org/t/reinforcement-learning-java-processing/45680 "2025-01-31T22:23:08Z")

</div>

OK, I’m trying to make a fun ai challenge between a bunch of different types of learning, but when I try to code Qlearning I am running into trouble. It will just sit still and do nothing. here is sketch int s = 25; //…

---

## [Trouble exporting music visualiser (vid not same length as song)](https://discourse.processing.org/t/trouble-exporting-music-visualiser-vid-not-same-length-as-song/45681)

<div class="topic-metadata">

**Author:** [@RevAustin](https://discourse.processing.org/u/RevAustin)\
**Replies:** 0\
**Last updated:** [January 29, 2025, 4:22pm UTC](https://discourse.processing.org/t/trouble-exporting-music-visualiser-vid-not-same-length-as-song/45681 "2025-01-29T16:22:47Z")

</div>

Heyyooo. I’ve put together a music visualiser based on the Minim FFT example that ‘reads’ the audio from the left and right channels, and managed to merge it with hamoid’s updated video export ‘withAudioViz’ example, bu…

---

## [Mover on a force-controlled circular orbit](https://discourse.processing.org/t/mover-on-a-force-controlled-circular-orbit/45632)

<div class="topic-metadata">

**Author:** [@eightohnine](https://discourse.processing.org/u/eightohnine)\
**Replies:** 1\
**Last updated:** [January 29, 2025, 2:51pm UTC](https://discourse.processing.org/t/mover-on-a-force-controlled-circular-orbit/45632 "2025-01-29T14:51:14Z")

</div>

Hi all, This particular issue has been bugging me far longer than I’d like to admit. Essentially I’m trying to put a Mover onto a circular path around a centerpoint. I know how to do this using an incrementing angle a…

---

## [Send message from Processing to Touch OSC Mk1 to update a led status](https://discourse.processing.org/t/send-message-from-processing-to-touch-osc-mk1-to-update-a-led-status/34767)

<div class="topic-metadata">

**Author:** [@dams2007](https://discourse.processing.org/u/dams2007)\
**Replies:** 21\
**Last updated:** [January 29, 2025, 9:13am UTC](https://discourse.processing.org/t/send-message-from-processing-to-touch-osc-mk1-to-update-a-led-status/34767 "2025-01-29T09:13:17Z")

</div>

Hi everyone, I am actually working on a processing Sketch to link with Touch OSC app on Iphone / Ipad to create a custom MIDI controller I am almost done to cover the functionalities that I need to build my interface. …

---

## [SpriteManipulation](https://discourse.processing.org/t/spritemanipulation/45590)

<div class="topic-metadata">

**Author:** [@JALAJ\_0106](https://discourse.processing.org/u/JALAJ_0106)\
**Replies:** 2\
**Last updated:** [January 29, 2025, 12:38pm UTC](https://discourse.processing.org/t/spritemanipulation/45590 "2025-01-29T12:38:17Z")

</div>

I was thinking maybe we could update the PImage class to include graphics rendered sprite tessalation. Example: Pimage texture = createImage(8, 8, ARGB); PImage spritemap = loadImage("some.png"); texture.sampleSprite(…

---

## [How can I use the Processing Sound Library to visualise rhythm?](https://discourse.processing.org/t/how-can-i-use-the-processing-sound-library-to-visualise-rhythm/45678)

<div class="topic-metadata">

**Author:** [@nadine](https://discourse.processing.org/u/nadine)\
**Replies:** 0\
**Last updated:** [January 29, 2025, 10:40am UTC](https://discourse.processing.org/t/how-can-i-use-the-processing-sound-library-to-visualise-rhythm/45678 "2025-01-29T10:40:59Z")

</div>

Hi! I am working on a live sound visualiser that involves image processing. So far, I have only manage to find amplitude related coding examples in the Processing Sound Library, but little to none for rhythm – can anyon…

---

## [Make Z axis alternate between 'growing' and 'shrinking'...?](https://discourse.processing.org/t/make-z-axis-alternate-between-growing-and-shrinking/45661)

<div class="topic-metadata">

**Author:** [@RevAustin](https://discourse.processing.org/u/RevAustin)\
**Replies:** 7\
**Last updated:** [January 29, 2025, 1:20am UTC](https://discourse.processing.org/t/make-z-axis-alternate-between-growing-and-shrinking/45661 "2025-01-29T01:20:31Z")

</div>

Hi all! I’m new to Processing and, in short, I’d like the Z axis of an object to keep ‘growing’ and ‘shrinking’ but I don’t know the best way to do this. I thought maybe having two alternating timers might work, but th…

---

## [New Nature of Code Processing Examples Are Here!](https://discourse.processing.org/t/new-nature-of-code-processing-examples-are-here/45669)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [January 27, 2025, 3:35pm UTC](https://discourse.processing.org/t/new-nature-of-code-processing-examples-are-here/45669 "2025-01-27T15:35:34Z")

</div>

Just a quick heads up that the Processing examples for the new Nature of Code (2024) are now available at the link below: Thanks @shiffman for porting the examples to Processing! You can get the book in paper form or…

---

## [Language translation](https://discourse.processing.org/t/language-translation/45668)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 3\
**Last updated:** [January 27, 2025, 2:44pm UTC](https://discourse.processing.org/t/language-translation/45668 "2025-01-27T14:44:13Z")

</div>

I am working with an old open processing sktech I translated to processing. It used to work but it does not, coul you please help me? color\[\] colors = { color(#edb218), color(#029cc2), color(#6b8c87), color(#a5…

---

## [Keyboard shortcuts greyed out & not working after update from 4.0 to 4.32, Sonoma 14.5](https://discourse.processing.org/t/keyboard-shortcuts-greyed-out-not-working-after-update-from-4-0-to-4-32-sonoma-14-5/45623)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 4\
**Last updated:** [January 26, 2025, 6:03pm UTC](https://discourse.processing.org/t/keyboard-shortcuts-greyed-out-not-working-after-update-from-4-0-to-4-32-sonoma-14-5/45623 "2025-01-26T18:03:02Z")

</div>

I use the native IDE and after updating from 4.0 to 4.32, all the keyboard shortcuts are greyed out and don’t work. I am running Sonoma 14.5 on a Mac M1. Any hints about what’s happened here and how to fix? I didn’t c…

---

## [Needed example of .toStringArray()](https://discourse.processing.org/t/needed-example-of-tostringarray/45653)

<div class="topic-metadata">

**Author:** [@dneilan](https://discourse.processing.org/u/dneilan)\
**Replies:** 6\
**Last updated:** [January 26, 2025, 4:48pm UTC](https://discourse.processing.org/t/needed-example-of-tostringarray/45653 "2025-01-26T16:48:53Z")

</div>

I have tried evey which way to get this function to work… Anybody got a working example ? Here is my Json array: \[{“id”: “1”}\] I couldn’t make it any simpler. Or am I barking up the wrong tree ?

---

## [How to draw real-time data in a specific canvas area？](https://discourse.processing.org/t/how-to-draw-real-time-data-in-a-specific-canvas-area/45631)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 38\
**Last updated:** [January 26, 2025, 4:26pm UTC](https://discourse.processing.org/t/how-to-draw-real-time-data-in-a-specific-canvas-area/45631 "2025-01-26T16:26:52Z")

</div>

Excuse me, I am testing multiple physiological parameters and hope to draw real-time waveforms in a specific canvas area, taking ECG as an example, how should I do it? I have three channels of data. The data received…

---

## [Converting decimal number to ternary number](https://discourse.processing.org/t/converting-decimal-number-to-ternary-number/45658)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 2\
**Last updated:** [January 26, 2025, 12:00pm UTC](https://discourse.processing.org/t/converting-decimal-number-to-ternary-number/45658 "2025-01-26T12:00:37Z")

</div>

So here is my attempt (below). Sadly it does not work: Void methods cannot return a value I am trying to use a recursive function. Can it be done? void setup() { noLoop(); } void draw() { for (int i = 0; i \< 34;…

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

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