# Processing

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

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

**Page:** 38

---

## [Processing-4 IDE Source Code Colours](https://discourse.processing.org/t/processing-4-ide-source-code-colours/42279)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 5\
**Last updated:** [June 25, 2023, 2:23pm UTC](https://discourse.processing.org/t/processing-4-ide-source-code-colours/42279 "2023-06-25T14:23:44Z")

</div>

I’ve been trying the colour features in Processing-4 IDE. It’s better than Processing-3 but not as flexible as I’d like. You can select a theme (Tools, Theme Selector), and save it. Then you can edit the theme.txt and…

---

## [Extend PShape (again)](https://discourse.processing.org/t/extend-pshape-again/14609)

<div class="topic-metadata">

**Author:** [@Protos](https://discourse.processing.org/u/Protos)\
**Replies:** 7\
**Last updated:** [June 24, 2023, 10:32pm UTC](https://discourse.processing.org/t/extend-pshape-again/14609 "2023-06-24T22:32:14Z")

</div>

Hi, For educational purpose I want to write a cleanly structured Pong game in processing. For the Ball I’d liked to use PShape inside a class and still have access to all the PShape methods such as setVisibility() etc.…

---

## [Plotting data from Arduino](https://discourse.processing.org/t/plotting-data-from-arduino/42285)

<div class="topic-metadata">

**Author:** [@cyp](https://discourse.processing.org/u/cyp)\
**Replies:** 5\
**Last updated:** [June 24, 2023, 10:22pm UTC](https://discourse.processing.org/t/plotting-data-from-arduino/42285 "2023-06-24T22:22:33Z")

</div>

Hi everyone.i have a little code i wrote from a school project. if someone could help me wih a code to processing to plot these variables. ex: volt=f(debit) curent=f(debit).

---

## [How do I make an array method?](https://discourse.processing.org/t/how-do-i-make-an-array-method/42286)

<div class="topic-metadata">

**Author:** [@Random\_Ghost](https://discourse.processing.org/u/Random_Ghost)\
**Replies:** 4\
**Last updated:** [June 24, 2023, 8:25pm UTC](https://discourse.processing.org/t/how-do-i-make-an-array-method/42286 "2023-06-24T20:25:27Z")

</div>

I am currently trying to make a CImage class similar to the PImage class. But I want to have a method for accessing pixel values from the image array in the form img.pixels\[y\]. How do I set up the method that way? Here…

---

## [File\[\] files = listFiles(path+filepath); takes longer on windows than linux](https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [June 24, 2023, 2:54pm UTC](https://discourse.processing.org/t/file-files-listfiles-path-filepath-takes-longer-on-windows-than-linux/42281 "2023-06-24T14:54:29Z")

</div>

Im tryna get a list off all items in a folder, to make a minecraft texture pack file viewer because i wanted to. i noticed on linux it runs smooth but on windows its very slow…

---

## [ControlP5 scrollable list make all character CAPITAL](https://discourse.processing.org/t/controlp5-scrollable-list-make-all-character-capital/42270)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 11:47pm UTC](https://discourse.processing.org/t/controlp5-scrollable-list-make-all-character-capital/42270 "2023-06-23T23:47:53Z")

</div>

Following is the default controlP5 example of a scrollable list. It shows the text in scrollable list in CAPITAL LETTERS. I want the text to appear as it is. How to do that. Please help. import controlP5.\*; import jav…

---

## [How to write code to press multiple Radiobuttons at once (button grid)](https://discourse.processing.org/t/how-to-write-code-to-press-multiple-radiobuttons-at-once-button-grid/42263)

<div class="topic-metadata">

**Author:** [@Hyunwoo](https://discourse.processing.org/u/Hyunwoo)\
**Replies:** 4\
**Last updated:** [June 23, 2023, 7:56am UTC](https://discourse.processing.org/t/how-to-write-code-to-press-multiple-radiobuttons-at-once-button-grid/42263 "2023-06-23T07:56:32Z")

</div>

Hello everyone I have created 128 switches as radiobuttons and I want them to work only one at a time, and I want to be able to press SHIFT and select a switch and have multiple alternatives, how should I code it? Belo…

---

## [How to make a method for easy text (alphabet, number) input](https://discourse.processing.org/t/how-to-make-a-method-for-easy-text-alphabet-number-input/42261)

<div class="topic-metadata">

**Author:** [@Hyunwoo](https://discourse.processing.org/u/Hyunwoo)\
**Replies:** 8\
**Last updated:** [June 23, 2023, 7:54am UTC](https://discourse.processing.org/t/how-to-make-a-method-for-easy-text-alphabet-number-input/42261 "2023-06-23T07:54:16Z")

</div>

Hello, I am trying to make a text window and edit the coding so that numbers and alphabets (capital letters only, automatic conversion in case of lower case letters) can be entered in the text window. I am trying to mod…

---

## [I want the listed buttons to work only one at a time](https://discourse.processing.org/t/i-want-the-listed-buttons-to-work-only-one-at-a-time/42249)

<div class="topic-metadata">

**Author:** [@Hyunwoo](https://discourse.processing.org/u/Hyunwoo)\
**Replies:** 7\
**Last updated:** [June 22, 2023, 7:14pm UTC](https://discourse.processing.org/t/i-want-the-listed-buttons-to-work-only-one-at-a-time/42249 "2023-06-22T19:14:29Z")

</div>

Hello, I am a student who is making a control program using Processing 4. The control program has 128 listed buttons, and when a button is pressed, the pin connected to the corresponding button in the driving circuit tu…

---

## [PGraphics saving to GIF with transparent background](https://discourse.processing.org/t/pgraphics-saving-to-gif-with-transparent-background/42267)

<div class="topic-metadata">

**Author:** [@hareti](https://discourse.processing.org/u/hareti)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 11:51am UTC](https://discourse.processing.org/t/pgraphics-saving-to-gif-with-transparent-background/42267 "2023-06-22T11:51:43Z")

</div>

I’m, trying to save two gif images with transparent backgrounds. The program runs once and does not need to loop. See a reduced program below. There is no line in the 1st image while the 2nd image has the line. Why is t…

---

## [Align Text in Scrollable List of ControlP5](https://discourse.processing.org/t/align-text-in-scrollable-list-of-controlp5/42265)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 7:11am UTC](https://discourse.processing.org/t/align-text-in-scrollable-list-of-controlp5/42265 "2023-06-22T07:11:26Z")

</div>

Hello when I used scrollable List of ControlP5 the text gets aligned to top left. How to change it to middle? Please help. My declaration is as below: cp5.addScrollableList("scrollableList\_RPM\_Limit").addItems(Arra…

---

## [How to fill circles in image (electric circuit)](https://discourse.processing.org/t/how-to-fill-circles-in-image-electric-circuit/42190)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 13\
**Last updated:** [June 20, 2023, 6:54pm UTC](https://discourse.processing.org/t/how-to-fill-circles-in-image-electric-circuit/42190 "2023-06-20T18:54:11Z")

</div>

Hi all In this GitHub link Javascript app to process a PCB image and output G-code suitable for laser engraver or similar machine. To reduce tool time This is the PCB schematic image provided in the link It’s or…

---

## [Changing Text of Label in ControlP5](https://discourse.processing.org/t/changing-text-of-label-in-controlp5/42254)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 4\
**Last updated:** [June 20, 2023, 8:36am UTC](https://discourse.processing.org/t/changing-text-of-label-in-controlp5/42254 "2023-06-20T08:36:22Z")

</div>

I am using the ControlP5 GUI library. I want to change the text displayed in TextLabel when triggered by some other event. For example in the following case when I press the button. So I tried two methods marked by OPT…

---

## [Pixel array manipulation in HSB color mode](https://discourse.processing.org/t/pixel-array-manipulation-in-hsb-color-mode/42227)

<div class="topic-metadata">

**Author:** [@LuisGranados](https://discourse.processing.org/u/LuisGranados)\
**Replies:** 3\
**Last updated:** [June 19, 2023, 5:48pm UTC](https://discourse.processing.org/t/pixel-array-manipulation-in-hsb-color-mode/42227 "2023-06-19T17:48:17Z")

</div>

I’ve made a sketch that gradually reveals a picture by starting with all black, then gradually increasing the red value of each pixel up to the desired level, then doing the same for green, then blue (or any other order …

---

## [Data structure: table vs. \<class\>ArrayList](https://discourse.processing.org/t/data-structure-table-vs-class-arraylist/42239)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [June 18, 2023, 9:26am UTC](https://discourse.processing.org/t/data-structure-table-vs-class-arraylist/42239 "2023-06-18T09:26:12Z")

</div>

Hello all, I am working on a vocabulary test Sketch and I load a csv file with word pairs. I work with the table then when presenting the words in the test. But the table feels clumsy here. Would it be easier to pars…

---

## [Approximate equality for Rosetta](https://discourse.processing.org/t/approximate-equality-for-rosetta/42196)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 15\
**Last updated:** [June 17, 2023, 7:54pm UTC](https://discourse.processing.org/t/approximate-equality-for-rosetta/42196 "2023-06-17T19:54:47Z")

</div>

I noticed that Processing is missing from https://rosettacode.org/wiki/Approximate\_equality. Sure this can be improved, but here is a start… I have used ‘big’ not in a vain attempt to avoid floating point errors, but t…

---

## [Nature of code - Autonomous agents exercise 6.2](https://discourse.processing.org/t/nature-of-code-autonomous-agents-exercise-6-2/42233)

<div class="topic-metadata">

**Author:** [@alex119](https://discourse.processing.org/u/alex119)\
**Replies:** 0\
**Last updated:** [June 17, 2023, 9:43am UTC](https://discourse.processing.org/t/nature-of-code-autonomous-agents-exercise-6-2/42233 "2023-06-17T09:43:49Z")

</div>

Hello, I am trying to do the exercise 6.2 from The Nature of Code Autonomous Agents chapter. I did something like this but is not working: I looked on the github repository for this exercise, but it doesn’t seem…

---

## [GLException: No shared device for requested: null; createNewDevice true](https://discourse.processing.org/t/glexception-no-shared-device-for-requested-null-createnewdevice-true/42225)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 4:24pm UTC](https://discourse.processing.org/t/glexception-no-shared-device-for-requested-null-createnewdevice-true/42225 "2023-06-16T16:24:32Z")

</div>

None of my code is runable. I dont know why. libEGL warning: DRI3: Screen seems not DRI3 capable libEGL warning: DRI2: failed to authenticate Caught handled GLException: X11GLXDrawableFactory - Could not initialize shar…

---

## [Objekte ausschneiden (transparent PShape)](https://discourse.processing.org/t/objekte-ausschneiden-transparent-pshape/41968)

<div class="topic-metadata">

**Author:** [@boolan\_youport](https://discourse.processing.org/u/boolan_youport)\
**Replies:** 6\
**Last updated:** [June 15, 2023, 1:37pm UTC](https://discourse.processing.org/t/objekte-ausschneiden-transparent-pshape/41968 "2023-06-15T13:37:50Z")

</div>

Hallo meine sehr geehrten Herren/innen! Ich hoffe Sie hatten einen angenehmen Tag… doch wie wir alle wissen soll man den Tag nicht vor dem Abend loben. Deswegen wollte ich fragen, ob jemand weiß, wie man Objekte voneinan…

---

## [Processing 4.2 cannot find a class or type named "JASONArray"](https://discourse.processing.org/t/processing-4-2-cannot-find-a-class-or-type-named-jasonarray/42180)

<div class="topic-metadata">

**Author:** [@Grumpy\_Mike](https://discourse.processing.org/u/Grumpy_Mike)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 9:07pm UTC](https://discourse.processing.org/t/processing-4-2-cannot-find-a-class-or-type-named-jasonarray/42180 "2023-06-14T21:07:40Z")

</div>

I am trying to write a JASON file in Processing 4.2. I am trying to follow the examples in the documentation. But when I include the command JASONArray values I get the error message cannot find a class or type named …

---

## [Input window appears behind sketch](https://discourse.processing.org/t/input-window-appears-behind-sketch/24432)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 6:07pm UTC](https://discourse.processing.org/t/input-window-appears-behind-sketch/24432 "2023-06-14T18:07:18Z")

</div>

When I use selectInput() the window always appears behind the screen. Is there any way to fix this, I’ve seen that this has been flagged before on the github and supposedly was fixed but I still have the problem. Is ther…

---

## [Program "crashes" when I setResizable(true) and resize the Window](https://discourse.processing.org/t/program-crashes-when-i-setresizable-true-and-resize-the-window/42208)

<div class="topic-metadata">

**Author:** [@Joseph](https://discourse.processing.org/u/Joseph)\
**Replies:** 27\
**Last updated:** [June 14, 2023, 4:56pm UTC](https://discourse.processing.org/t/program-crashes-when-i-setresizable-true-and-resize-the-window/42208 "2023-06-14T16:56:43Z")

</div>

This is my code void setup() { size(1920, 1080); surface.setResizable(true); } void draw(){ background(0); fill(255); rect(0,0,width,height); } When I change my window size to be as small as possible then res…

---

## [Help Improve Processing's Error Messages: A Survey for Teachers and Students](https://discourse.processing.org/t/help-improve-processings-error-messages-a-survey-for-teachers-and-students/42215)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 1:39pm UTC](https://discourse.processing.org/t/help-improve-processings-error-messages-a-survey-for-teachers-and-students/42215 "2023-06-14T13:39:48Z")

</div>

Hello Processing Community, We’re working on an exciting project aimed at refining the error messages in Processing to make them more beginner-friendly. This initiative is part of Will Rabalais’ Google Summer of Code pr…

---

## [Accessing the contextual PGraphics explicitly when using beginRecord()](https://discourse.processing.org/t/accessing-the-contextual-pgraphics-explicitly-when-using-beginrecord/42189)

<div class="topic-metadata">

**Author:** [@andrewcooke](https://discourse.processing.org/u/andrewcooke)\
**Replies:** 3\
**Last updated:** [June 11, 2023, 7:34pm UTC](https://discourse.processing.org/t/accessing-the-contextual-pgraphics-explicitly-when-using-beginrecord/42189 "2023-06-11T19:34:07Z")

</div>

I am passing this.g to some separate Java code, and things are working just fine with the data displayed to the screen, but when I try to copy to PDF using beginRecord() and endRecord() I don’t see any of the output that…

---

## [How do I make the background transparent](https://discourse.processing.org/t/how-do-i-make-the-background-transparent/42187)

<div class="topic-metadata">

**Author:** [@Worm](https://discourse.processing.org/u/Worm)\
**Replies:** 3\
**Last updated:** [June 11, 2023, 7:30pm UTC](https://discourse.processing.org/t/how-do-i-make-the-background-transparent/42187 "2023-06-11T19:30:18Z")

</div>

I’m very new so maybe this is super obvious So I’m trying to set the background to transparent so I can export my images and use them as sprites in unity. When I’m using SaveFrame() it saves the frames as .PNG and I kno…

---

## [Processing : Why transform coordinate system, not individual elements?](https://discourse.processing.org/t/processing-why-transform-coordinate-system-not-individual-elements/42167)

<div class="topic-metadata">

**Author:** [@skraboutcha](https://discourse.processing.org/u/skraboutcha)\
**Replies:** 11\
**Last updated:** [June 11, 2023, 6:21pm UTC](https://discourse.processing.org/t/processing-why-transform-coordinate-system-not-individual-elements/42167 "2023-06-11T18:21:12Z")

</div>

Hello dear Processing Community, I’m trying to understand the advantage of the transformation mode (position, scale, rotation) offered by Processing (and p5) I’m having trouble getting to grips with the fact that I hav…

---

## [PC to Bluetooth (with Arduino) does not work when USB is unplugged](https://discourse.processing.org/t/pc-to-bluetooth-with-arduino-does-not-work-when-usb-is-unplugged/42156)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 30\
**Last updated:** [June 11, 2023, 2:21pm UTC](https://discourse.processing.org/t/pc-to-bluetooth-with-arduino-does-not-work-when-usb-is-unplugged/42156 "2023-06-11T14:21:52Z")

</div>

I am currently working on a project connecting and controlling Arduino Uno via Bluetooth, using Processing via PC, but the problem is, it works when the USB port with Arduino is connected, but when I disconnect it and ju…

---

## [Hanging by a thread](https://discourse.processing.org/t/hanging-by-a-thread/42135)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 3\
**Last updated:** [June 5, 2023, 7:28pm UTC](https://discourse.processing.org/t/hanging-by-a-thread/42135 "2023-06-05T19:28:03Z")

</div>

I want to click an object, then a thread appears and the object starts to fall until the thread reaches it’s maximum length, then it just hangs in place, like if you were holding an unraveled yoyo then released it. Thank…

---

## [Text on a free line (SVG)](https://discourse.processing.org/t/text-on-a-free-line-svg/40718)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 14\
**Last updated:** [June 11, 2023, 1:51am UTC](https://discourse.processing.org/t/text-on-a-free-line-svg/40718 "2023-06-11T01:51:20Z")

</div>

Hi, I am almost a newbie on Processing. I found this tutorial where it is also explained how to draw a text over a circle: Strings and Drawing Text / Processing.org . My questions are: is it possible to draw a text …

---

## [Class for colours](https://discourse.processing.org/t/class-for-colours/42169)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 18\
**Last updated:** [June 10, 2023, 3:35pm UTC](https://discourse.processing.org/t/class-for-colours/42169 "2023-06-10T15:35:07Z")

</div>

Good day I’m trying to create a class that contains the colours for my application. E.g. class Colours { color background = color (0xB0, 0xB0, 0xB0); color text = color( 0x00, 0x00, 0x00); } And I would like to us…

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

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