# Processing

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

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

**Page:** 31

---

## [Error with importing javax.xml.bind.DatatypeConverter](https://discourse.processing.org/t/error-with-importing-javax-xml-bind-datatypeconverter/43019)

<div class="topic-metadata">

**Author:** [@Shivam](https://discourse.processing.org/u/Shivam)\
**Replies:** 2\
**Last updated:** [October 21, 2023, 4:43am UTC](https://discourse.processing.org/t/error-with-importing-javax-xml-bind-datatypeconverter/43019 "2023-10-21T04:43:46Z")

</div>

While running the code, i am getting the following error “The package “javax.xml.bind” does not exist. You might be missing a library.” \</ import processing.serial.; import java.nio.ByteBuffer; import java.nio.ByteOr…

---

## [Label is not updated inside a for loop](https://discourse.processing.org/t/label-is-not-updated-inside-a-for-loop/43018)

<div class="topic-metadata">

**Author:** [@Jose\_Luis](https://discourse.processing.org/u/Jose_Luis)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 9:42am UTC](https://discourse.processing.org/t/label-is-not-updated-inside-a-for-loop/43018 "2023-10-20T09:42:20Z")

</div>

I try to update a label inside a for loop but it is not updated until the loop ends, I use processin 4.3 G4P GUI Builder 4.4.2 on linux Mint my code is the following public void button1\_click1(GButton source, GEvent ev…

---

## [Problem with Spektrum (library)](https://discourse.processing.org/t/problem-with-spektrum-library/43006)

<div class="topic-metadata">

**Author:** [@itan21](https://discourse.processing.org/u/itan21)\
**Replies:** 19\
**Last updated:** [October 20, 2023, 5:50am UTC](https://discourse.processing.org/t/problem-with-spektrum-library/43006 "2023-10-20T05:50:36Z")

</div>

Hello everyone I have a problem connecting the library. I am trying to run the Spektrum program (GitHub - pavels/spektrum: rtl-sdr spectrum analyzer ) I don’t get the problem No library found for rtlspektrum Libraries m…

---

## [Can't use size() in setup()](https://discourse.processing.org/t/cant-use-size-in-setup/43008)

<div class="topic-metadata">

**Author:** [@berndbausch](https://discourse.processing.org/u/berndbausch)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 7:50am UTC](https://discourse.processing.org/t/cant-use-size-in-setup/43008 "2023-10-19T07:50:48Z")

</div>

Trying to run a large sketch I cloned from Github, I get the error size() cannot be used here, see https://processing.org/reference/size\_.html Documentation says: the size() function must be the first line of code in…

---

## [Mapping PVector heading() to another range](https://discourse.processing.org/t/mapping-pvector-heading-to-another-range/42999)

<div class="topic-metadata">

**Author:** [@gomako](https://discourse.processing.org/u/gomako)\
**Replies:** 2\
**Last updated:** [October 18, 2023, 10:19am UTC](https://discourse.processing.org/t/mapping-pvector-heading-to-another-range/42999 "2023-10-18T10:19:22Z")

</div>

I am creating a PVector using the .fromAngle() method. I use an variable that increments from 0 to TWO\_PI. When I access the heading() of the vector, I get a range from 0 → PI → -PI → 0. Is this expected behaviour? I’m t…

---

## [Video halts shortly after loading](https://discourse.processing.org/t/video-halts-shortly-after-loading/42997)

<div class="topic-metadata">

**Author:** [@enrike](https://discourse.processing.org/u/enrike)\
**Replies:** 0\
**Last updated:** [October 17, 2023, 6:08pm UTC](https://discourse.processing.org/t/video-halts-shortly-after-loading/42997 "2023-10-17T18:08:00Z")

</div>

Hi I have this code below that keeps playing random short videos from a folder. They are all around 10 secs. I noticed that randomly once in a while when loading a new video the program halts but gives no error at all. …

---

## [I don't know what I am doing wrong! (class and brackets)](https://discourse.processing.org/t/i-dont-know-what-i-am-doing-wrong-class-and-brackets/42978)

<div class="topic-metadata">

**Author:** [@Amamallama](https://discourse.processing.org/u/Amamallama)\
**Replies:** 27\
**Last updated:** [October 17, 2023, 12:29pm UTC](https://discourse.processing.org/t/i-dont-know-what-i-am-doing-wrong-class-and-brackets/42978 "2023-10-17T12:29:47Z")

</div>

Doing the zoog assignment and we are starting with the class chapters. We are working on our zoog and I can’t figure out what is wrong with my code. I am a suppperrr beginner. My brain just isn’t processing (ha see what…

---

## [selectInput() + loadTable()](https://discourse.processing.org/t/selectinput-loadtable/42966)

<div class="topic-metadata">

**Author:** [@xxxdiegoxxx](https://discourse.processing.org/u/xxxdiegoxxx)\
**Replies:** 3\
**Last updated:** [October 17, 2023, 11:47am UTC](https://discourse.processing.org/t/selectinput-loadtable/42966 "2023-10-17T11:47:45Z")

</div>

Hi! im on a sketch in which i have some classes and one of then should take a .csv file and create some lists. ive set a global string to receive the selectInput() result and asked the class to generate the table using …

---

## [Save a PShape on Hard Drive (please help)](https://discourse.processing.org/t/save-a-pshape-on-hard-drive-please-help/34389)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [October 15, 2023, 5:46pm UTC](https://discourse.processing.org/t/save-a-pshape-on-hard-drive-please-help/34389 "2023-10-15T17:46:05Z")

</div>

hello all, I am generating an PShape from a CSG (with JCSG) and wanted to ask whether I can save the PShape in one go. like (pseudo code) PShape myShape; ....... myShape.save(sketchPath("")+"sample.obj"); Any ideas? …

---

## [FX2D is better than P2D](https://discourse.processing.org/t/fx2d-is-better-than-p2d/42937)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 12:37pm UTC](https://discourse.processing.org/t/fx2d-is-better-than-p2d/42937 "2023-10-15T12:37:41Z")

</div>

If you want to use GLSL and a pressure library, use P2D. If not, use FX2D, because: Rounded Rectangles in rect(100,100,200,200,25); look incredibly weird, if you want clear strokes. (compare it using FX2D / Default r…

---

## [First use of image() takes too long on integrated graphics](https://discourse.processing.org/t/first-use-of-image-takes-too-long-on-integrated-graphics/42950)

<div class="topic-metadata">

**Author:** [@User442B](https://discourse.processing.org/u/User442B)\
**Replies:** 2\
**Last updated:** [October 15, 2023, 1:56am UTC](https://discourse.processing.org/t/first-use-of-image-takes-too-long-on-integrated-graphics/42950 "2023-10-15T01:56:39Z")

</div>

A game I have made with Processing is in closed beta at the moment, and one issue that has come up is excessive hang ups the first time an image is drawn. For context the game uses the P2D renderer. The background for th…

---

## [What can be a good alternative to Syphon in Windows?](https://discourse.processing.org/t/what-can-be-a-good-alternative-to-syphon-in-windows/42959)

<div class="topic-metadata">

**Author:** [@tmm88](https://discourse.processing.org/u/tmm88)\
**Replies:** 0\
**Last updated:** [October 13, 2023, 12:07pm UTC](https://discourse.processing.org/t/what-can-be-a-good-alternative-to-syphon-in-windows/42959 "2023-10-13T12:07:58Z")

</div>

what can be a good alternative to syphon in windows? i heard of: Spout NDI (network device interface) what is your piece of advice

---

## [Text rendering off-center in P2D renderer](https://discourse.processing.org/t/text-rendering-off-center-in-p2d-renderer/42947)

<div class="topic-metadata">

**Author:** [@Username3](https://discourse.processing.org/u/Username3)\
**Replies:** 3\
**Last updated:** [October 14, 2023, 12:56pm UTC](https://discourse.processing.org/t/text-rendering-off-center-in-p2d-renderer/42947 "2023-10-14T12:56:19Z")

</div>

When I try to draw text in the P2D renderer, it draws slightly below where I want it, and the line spacing is greatly increased compared to the default renderer (see the image) Does anyone know why it does this? Thank…

---

## [Which sound library should I use?](https://discourse.processing.org/t/which-sound-library-should-i-use/42935)

<div class="topic-metadata">

**Author:** [@berndbausch](https://discourse.processing.org/u/berndbausch)\
**Replies:** 25\
**Last updated:** [October 14, 2023, 12:28pm UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935 "2023-10-14T12:28:46Z")

</div>

I am aware of three libraries: Built-in Sound, Minim, and Beads. My main goal is sound synthesis. While I have not studied them in-depth (I want to avoid investing time in learning about a tool I won’t use), this is wha…

---

## [Sound library audio formats](https://discourse.processing.org/t/sound-library-audio-formats/42841)

<div class="topic-metadata">

**Author:** [@kellyegan](https://discourse.processing.org/u/kellyegan)\
**Replies:** 6\
**Last updated:** [October 13, 2023, 2:26am UTC](https://discourse.processing.org/t/sound-library-audio-formats/42841 "2023-10-13T02:26:30Z")

</div>

I am having some weird results for playing specific wav files I have exported from Audacity in the Sound library. Certain files will glitch and distort. The audio plays fine in other audio program and when using other so…

---

## [Get value from slider in child window to main window](https://discourse.processing.org/t/get-value-from-slider-in-child-window-to-main-window/42953)

<div class="topic-metadata">

**Author:** [@Leo\_Aguiar](https://discourse.processing.org/u/Leo_Aguiar)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 9:27pm UTC](https://discourse.processing.org/t/get-value-from-slider-in-child-window-to-main-window/42953 "2023-10-12T21:27:28Z")

</div>

Hi, I have a sketch that builds on top of the MultipleWindows example provided with the Processing IDE. I am trying to use the controlP5 library sliders to change variables in the main sketch but I don’t know why it isn’…

---

## [Help wanted, regarding JavaFX Tablet pressure!](https://discourse.processing.org/t/help-wanted-regarding-javafx-tablet-pressure/42870)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 19\
**Last updated:** [October 12, 2023, 3:25pm UTC](https://discourse.processing.org/t/help-wanted-regarding-javafx-tablet-pressure/42870 "2023-10-12T15:25:21Z")

</div>

Is there any method to get the tablet pressure on windows & Linux using any library using the FX2D (javafx) renderer in processing? Mabye using the commandline it would be possible to get the pressure of the pen? Using…

---

## [Array of pixels (enclosed in shape)](https://discourse.processing.org/t/array-of-pixels-enclosed-in-shape/42946)

<div class="topic-metadata">

**Author:** [@Wouter](https://discourse.processing.org/u/Wouter)\
**Replies:** 8\
**Last updated:** [October 12, 2023, 12:31pm UTC](https://discourse.processing.org/t/array-of-pixels-enclosed-in-shape/42946 "2023-10-12T12:31:04Z")

</div>

Hi there! If you draw a closed shape in processing, is there a way to get all points/pixels that the shape encloses in a separate array? Best wishes, Wouter

---

## [Get CMD output?](https://discourse.processing.org/t/get-cmd-output/42949)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 0\
**Last updated:** [October 12, 2023, 1:15am UTC](https://discourse.processing.org/t/get-cmd-output/42949 "2023-10-12T01:15:53Z")

</div>

Is there a way to get the bash output, that a bash file might produce? and can this run at 120fps or is this highly inefficient?

---

## [The table is not displaying updated data](https://discourse.processing.org/t/the-table-is-not-displaying-updated-data/42931)

<div class="topic-metadata">

**Author:** [@kusspuss](https://discourse.processing.org/u/kusspuss)\
**Replies:** 6\
**Last updated:** [October 11, 2023, 1:09pm UTC](https://discourse.processing.org/t/the-table-is-not-displaying-updated-data/42931 "2023-10-11T13:09:00Z")

</div>

the table is not displaying updated data , processing ide recieved parsed values import processing.serial.\*; import java.util.ArrayList; Serial myPort; // Create a Serial object Table dataTable; // A table to store the…

---

## [Enums in Processing](https://discourse.processing.org/t/enums-in-processing/42930)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [October 9, 2023, 8:12pm UTC](https://discourse.processing.org/t/enums-in-processing/42930 "2023-10-09T20:12:51Z")

</div>

Do enums work in processing? I didn’t find an example sadly, would be great help if someone could provide an example! :slight\_smile:

---

## [Two MIDI Outputs](https://discourse.processing.org/t/two-midi-outputs/42921)

<div class="topic-metadata">

**Author:** [@Grumpy\_Mike](https://discourse.processing.org/u/Grumpy_Mike)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 11:48am UTC](https://discourse.processing.org/t/two-midi-outputs/42921 "2023-10-09T11:48:18Z")

</div>

I am trying to connect two devices to the MIDI outputs in Processing 4. The problem is that in order to do so I have to use String destination = "device1"; String destination = "device2"; either one will work but not …

---

## [I'm having issues displaying text on a point in a graph when you hover over it in Processing4](https://discourse.processing.org/t/im-having-issues-displaying-text-on-a-point-in-a-graph-when-you-hover-over-it-in-processing4/42923)

<div class="topic-metadata">

**Author:** [@E142](https://discourse.processing.org/u/E142)\
**Replies:** 2\
**Last updated:** [October 8, 2023, 10:57pm UTC](https://discourse.processing.org/t/im-having-issues-displaying-text-on-a-point-in-a-graph-when-you-hover-over-it-in-processing4/42923 "2023-10-08T22:57:52Z")

</div>

I’m having issues displaying text on a point in a graph when you hover over it in Processing4.I have tried using a loop to display the text but it seems the graph plot doesn’t allow anything display on it. I dont know wh…

---

## [How to clear points when using GPlot functions](https://discourse.processing.org/t/how-to-clear-points-when-using-gplot-functions/42912)

<div class="topic-metadata">

**Author:** [@E142](https://discourse.processing.org/u/E142)\
**Replies:** 3\
**Last updated:** [October 8, 2023, 9:48pm UTC](https://discourse.processing.org/t/how-to-clear-points-when-using-gplot-functions/42912 "2023-10-08T21:48:28Z")

</div>

So I have a code that draws a graph using GPlot functions. I am trying to create a function that changes the points on the graph, so I’m looking for a function to clear the previous points. I tried Plot1.clear(), but it …

---

## [Help wanted using complicated math drawing (spline)](https://discourse.processing.org/t/help-wanted-using-complicated-math-drawing-spline/42911)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [October 8, 2023, 4:48am UTC](https://discourse.processing.org/t/help-wanted-using-complicated-math-drawing-spline/42911 "2023-10-08T04:48:04Z")

</div>

I tried writing some code that allows the user to add points to an array, then draws a dotted line which is curved. Meaning this is happens: I tried figuring this out myself, but it didnt end well. The only thing i …

---

## [Getting different errors reading Serial data from MPU6050 and DHT11](https://discourse.processing.org/t/getting-different-errors-reading-serial-data-from-mpu6050-and-dht11/42917)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 1\
**Last updated:** [October 7, 2023, 6:08pm UTC](https://discourse.processing.org/t/getting-different-errors-reading-serial-data-from-mpu6050-and-dht11/42917 "2023-10-07T18:08:16Z")

</div>

I’m trying to read Serial data from 3 different sensors, a DHT11, and MPU6050 and a 30Bar pressure sensor by BlueRobotics. I should mention the pressure sensor and mpu6050 are connected to my Arduino via a multiplexer. I…

---

## [Shapes3D: Toroid class is missing (new version of library)](https://discourse.processing.org/t/shapes3d-toroid-class-is-missing-new-version-of-library/42862)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [October 7, 2023, 5:11pm UTC](https://discourse.processing.org/t/shapes3d-toroid-class-is-missing-new-version-of-library/42862 "2023-10-07T17:11:20Z")

</div>

Hello all, I just try using an old Sketch, but it says: shapes3d: Toroid class is missing Can anybody help me? Chrisir P.S. also failing boxBoard\[iBox\].setSize(80, 5, 80); boxBoard\[iBox\].draw(); (it’s an arr…

---

## [Complex gradient loop](https://discourse.processing.org/t/complex-gradient-loop/42832)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 31\
**Last updated:** [October 7, 2023, 3:17am UTC](https://discourse.processing.org/t/complex-gradient-loop/42832 "2023-10-07T03:17:39Z")

</div>

Hi there! I am trying to do a gradient with multiple focal points, like the one you can see on this Daniel Otoole artwork. I have found this useful code on happycoding and I am playing with it to get something more …

---

## [Shapes3D: Box.draw() doesn't work anymore (new version of library)](https://discourse.processing.org/t/shapes3d-box-draw-doesnt-work-anymore-new-version-of-library/39860)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 12\
**Last updated:** [October 6, 2023, 4:42pm UTC](https://discourse.processing.org/t/shapes3d-box-draw-doesnt-work-anymore-new-version-of-library/39860 "2023-10-06T16:42:44Z")

</div>

@quark using shapes3d (from a very old Sketch from my archives) here and wanted to say (used to say) MyBoxes\[i\].draw(); doesn’t work anymore It seems, it used to work without a parameter, but now it doesn’t? …

---

## [Can I selectively delete something from canvas?](https://discourse.processing.org/t/can-i-selectively-delete-something-from-canvas/19617)

<div class="topic-metadata">

**Author:** [@berndbausch](https://discourse.processing.org/u/berndbausch)\
**Replies:** 6\
**Last updated:** [October 3, 2023, 10:24am UTC](https://discourse.processing.org/t/can-i-selectively-delete-something-from-canvas/19617 "2023-10-03T10:24:18Z")

</div>

I have seen this question asked before, and it seems the answer is no. Still, perhaps I am wrong… I am running a random walk inspired by Dan Shiffman’s first chapter of Nature of Code. It slowly creates a pretty pattern…

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

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