# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=103

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

**Page:** 104

---

## [Edit data in a float buffer](https://discourse.processing.org/t/edit-data-in-a-float-buffer/15286)

<div class="topic-metadata">

**Author:** [@sash](https://discourse.processing.org/u/sash)\
**Replies:** 3\
**Last updated:** [November 19, 2021, 12:00am UTC](https://discourse.processing.org/t/edit-data-in-a-float-buffer/15286 "2021-11-19T00:00:49Z")

</div>

Late on the Kinect train, fresh in coding. I am using Thomas Sanchez Lengelings KinectPV2 library which can put the complete pointcloud of each frame in a float buffer. It is called with FloatBuffer = kinect.getPointCl…

---

## [IllegalAccessError: tried to access class processing.core.PApplet$RegisteredMethods from class cc.arduino.Arduino$SerialProxy](https://discourse.processing.org/t/illegalaccesserror-tried-to-access-class-processing-core-papplet-registeredmethods-from-class-cc-arduino-arduino-serialproxy/33598)

<div class="topic-metadata">

**Author:** [@shopdad](https://discourse.processing.org/u/shopdad)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 4:40pm UTC](https://discourse.processing.org/t/illegalaccesserror-tried-to-access-class-processing-core-papplet-registeredmethods-from-class-cc-arduino-arduino-serialproxy/33598 "2021-11-18T16:40:25Z")

</div>

I have a fairly basic Processing program I made in 2013 to controll solenoids using an arduino card with FirmatA installed. the original worked very well but is having issues with windows 10. I wanted to update it from…

---

## [How to package 12 double variables into JSON Object (Packets)](https://discourse.processing.org/t/how-to-package-12-double-variables-into-json-object-packets/33592)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 4\
**Last updated:** [November 18, 2021, 10:55am UTC](https://discourse.processing.org/t/how-to-package-12-double-variables-into-json-object-packets/33592 "2021-11-18T10:55:40Z")

</div>

\< I am developing Processing GUI for PID control. I wish to use JSON to share data between the PC and the control board. But i am having issue packaging the JSON object. I need send and receive 12 variable (double). …

---

## [Printing Serial Data from Arduino into a Processing IDE GUI](https://discourse.processing.org/t/printing-serial-data-from-arduino-into-a-processing-ide-gui/33545)

<div class="topic-metadata">

**Author:** [@Handrup](https://discourse.processing.org/u/Handrup)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 10:36am UTC](https://discourse.processing.org/t/printing-serial-data-from-arduino-into-a-processing-ide-gui/33545 "2021-11-18T10:36:13Z")

</div>

Hi guys, I need help with how I make a simple UI displaying a rising number that i am receiving from an Arduino via Serial Port

---

## [Please explain to me this strange behavior of Visual Studio Code Thank you](https://discourse.processing.org/t/please-explain-to-me-this-strange-behavior-of-visual-studio-code-thank-you/33591)

<div class="topic-metadata">

**Author:** [@Hiram-Belgium](https://discourse.processing.org/u/Hiram-Belgium)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 8:16am UTC](https://discourse.processing.org/t/please-explain-to-me-this-strange-behavior-of-visual-studio-code-thank-you/33591 "2021-11-18T08:16:26Z")

</div>

Excuse my bad English. Hello, as I am a novice I will try to explain what has been ruining my life for days. In Visual Studio Code - I am running a js program with "live server: open with live server … and, the code do…

---

## [Error on my Processing GUI code for Arduino , I need some help](https://discourse.processing.org/t/error-on-my-processing-gui-code-for-arduino-i-need-some-help/33341)

<div class="topic-metadata">

**Author:** [@fdinumario](https://discourse.processing.org/u/fdinumario)\
**Replies:** 41\
**Last updated:** [November 18, 2021, 6:41am UTC](https://discourse.processing.org/t/error-on-my-processing-gui-code-for-arduino-i-need-some-help/33341 "2021-11-18T06:41:31Z")

</div>

Arduino code : #include \<Wire.h\> #include "SparkFunMPL3115A2.h" #include "SparkFun\_Si7021\_Breakout\_Library.h" MPL3115A2 myPressure; Weather myHumidity; const byte WSPEED = 3; const byte RAIN = 2; const byte STA…

---

## [Create and Run .bat file for FFMPEG code](https://discourse.processing.org/t/create-and-run-bat-file-for-ffmpeg-code/33482)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 6\
**Last updated:** [November 18, 2021, 6:20am UTC](https://discourse.processing.org/t/create-and-run-bat-file-for-ffmpeg-code/33482 "2021-11-18T06:20:41Z")

</div>

Hi guys, Was trying to create a sort of batch process to convert some AVI files to MP4 through FFMPEG. I am able to create a .bat which I want to see run directly after creation. I have tried launch() and exec() too bu…

---

## [Error: ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 32768](https://discourse.processing.org/t/error-arrayindexoutofboundsexception-index-1-out-of-bounds-for-length-32768/33431)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 10\
**Last updated:** [November 18, 2021, 6:08am UTC](https://discourse.processing.org/t/error-arrayindexoutofboundsexception-index-1-out-of-bounds-for-length-32768/33431 "2021-11-18T06:08:14Z")

</div>

hello! i am making this game in Processing and using a Teensy hooked up to some buttons to play the game. you know the drill haha. well… i am getting this amazingly frustrating error almost everytime i run the program, a…

---

## [Can I use a Google font in an offline sketch without downloading it locally?](https://discourse.processing.org/t/can-i-use-a-google-font-in-an-offline-sketch-without-downloading-it-locally/33583)

<div class="topic-metadata">

**Author:** [@Amenhotep](https://discourse.processing.org/u/Amenhotep)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 9:36pm UTC](https://discourse.processing.org/t/can-i-use-a-google-font-in-an-offline-sketch-without-downloading-it-locally/33583 "2021-11-17T21:36:54Z")

</div>

Hi there! I need to distribute a sketch to my students as a one-file app (html file including everything). As long as I use only 2D, it works great. But now I want to have a rotating cube with labels attached to some co…

---

## [Editor.p5js.org present mode disappeared - how to create transparent iframe?](https://discourse.processing.org/t/editor-p5js-org-present-mode-disappeared-how-to-create-transparent-iframe/33580)

<div class="topic-metadata">

**Author:** [@yarinbh](https://discourse.processing.org/u/yarinbh)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 8:21pm UTC](https://discourse.processing.org/t/editor-p5js-org-present-mode-disappeared-how-to-create-transparent-iframe/33580 "2021-11-17T20:21:20Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hey, i add an iframe from p5js to my site and now when they delete the present mode the iframe dosent transparent any more. can i do something t…

---

## [Add Column on csv file](https://discourse.processing.org/t/add-column-on-csv-file/33572)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 6\
**Last updated:** [November 17, 2021, 2:19pm UTC](https://discourse.processing.org/t/add-column-on-csv-file/33572 "2021-11-17T14:19:41Z")

</div>

I want to save data in tabular form and want to save it in excel (csv) form, I have checked references and also tried examples from the internet, there are no errors, but when I addColumn (title) no new column is formed …

---

## [Drop library not working when fullscreen()?](https://discourse.processing.org/t/drop-library-not-working-when-fullscreen/33569)

<div class="topic-metadata">

**Author:** [@enrike](https://discourse.processing.org/u/enrike)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 5:08am UTC](https://discourse.processing.org/t/drop-library-not-working-when-fullscreen/33569 "2021-11-17T05:08:58Z")

</div>

Hi I am using the Drop library (Drop) to drag and drop video files into a sketch. All works fine but when I set it fullscreen it just does not allow me to drop anything. I see a forbidden sign and I get no drop event. …

---

## [How to print serial values above rect and not blur](https://discourse.processing.org/t/how-to-print-serial-values-above-rect-and-not-blur/33530)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 6\
**Last updated:** [November 17, 2021, 3:27am UTC](https://discourse.processing.org/t/how-to-print-serial-values-above-rect-and-not-blur/33530 "2021-11-17T03:27:16Z")

</div>

Hello, I’m trying to print the serial value of my Arduino just above the rect and circle, but when the value changes there is a buildup of values so it looks blurry. any suggestions for me? Sorry, I’m just learning to us…

---

## [Text Converter (DESPERATE NEED!)](https://discourse.processing.org/t/text-converter-desperate-need/33411)

<div class="topic-metadata">

**Author:** [@processingboy1](https://discourse.processing.org/u/processingboy1)\
**Replies:** 10\
**Last updated:** [November 16, 2021, 11:22am UTC](https://discourse.processing.org/t/text-converter-desperate-need/33411 "2021-11-16T11:22:52Z")

</div>

in desperate need, will depend whether i fail or pass the course!!! Due date is very near! No use of Arrays.

---

## [How to DETECT COLORS from CAMERA CAPTURE and OUTPUT them?](https://discourse.processing.org/t/how-to-detect-colors-from-camera-capture-and-output-them/33553)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 1\
**Last updated:** [November 16, 2021, 1:15pm UTC](https://discourse.processing.org/t/how-to-detect-colors-from-camera-capture-and-output-them/33553 "2021-11-16T13:15:15Z")

</div>

How can I gain the colors from a camera capture and output them in swatches? What are the steps to realize this? Something like this: https://www.youtube.com/watch?v=EyuqP43jkQ8 import processing.video.\*; Capture cam…

---

## [Any way to export 3D interactive to .obj or other 3d format?](https://discourse.processing.org/t/any-way-to-export-3d-interactive-to-obj-or-other-3d-format/33555)

<div class="topic-metadata">

**Author:** [@Guy\_Sky](https://discourse.processing.org/u/Guy_Sky)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 1:12pm UTC](https://discourse.processing.org/t/any-way-to-export-3d-interactive-to-obj-or-other-3d-format/33555 "2021-11-16T13:12:36Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi There Project :slight\_smile: I want to scan old family photographs, front and back, make them an interactive “3D” (you can look at back or fr…

---

## [How to DETECT COLORS from CAMERA CAPTURE and OUTPUT them?](https://discourse.processing.org/t/how-to-detect-colors-from-camera-capture-and-output-them/33550)

<div class="topic-metadata">

**Author:** [@badbatman](https://discourse.processing.org/u/badbatman)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 12:54pm UTC](https://discourse.processing.org/t/how-to-detect-colors-from-camera-capture-and-output-them/33550 "2021-11-16T12:54:02Z")

</div>

How can I gain the colors from a camera capture and output them in swatches? What are the steps to do this? Something like this: https://www.youtube.com/watch?v=EyuqP43jkQ8 but then with Processing instead of JS. impo…

---

## [Filling grid cells inside a shape](https://discourse.processing.org/t/filling-grid-cells-inside-a-shape/33427)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 8\
**Last updated:** [November 16, 2021, 7:26am UTC](https://discourse.processing.org/t/filling-grid-cells-inside-a-shape/33427 "2021-11-16T07:26:36Z")

</div>

Hi all, I’m writing a program that visualises text from posters as a heatmap. I draw shapes around the titles of the posters and each of these positions is saved as a PVector. In order to visualise these on the heatma…

---

## [Writing text RTL instead of LTR (left to right)](https://discourse.processing.org/t/writing-text-rtl-instead-of-ltr-left-to-right/33533)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 1\
**Last updated:** [November 15, 2021, 9:18pm UTC](https://discourse.processing.org/t/writing-text-rtl-instead-of-ltr-left-to-right/33533 "2021-11-15T21:18:10Z")

</div>

I want to write text in Hebrew, but the problem is that Hebrew written RTL while English written LTR, So, when I try to write the word שלום (peace in Hebrew, pronounce Shalom), It actualy write םולש (like ECAEP instead…

---

## [Setting a value once by turning off a boolean doesn't work](https://discourse.processing.org/t/setting-a-value-once-by-turning-off-a-boolean-doesnt-work/33467)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 6\
**Last updated:** [November 15, 2021, 1:28am UTC](https://discourse.processing.org/t/setting-a-value-once-by-turning-off-a-boolean-doesnt-work/33467 "2021-11-15T01:28:01Z")

</div>

float x1 = random(50, 450); float y1 = random(50, 450); int size1 = 100; float inc1X = 3; float inc1Y = 3; float x2 =x1; float y2 = x1; int size2 = 50; float inc2X = 3; float inc2Y = 3; boolean place1 = true; …

---

## [Processing 3 Object Class not Being Displayed](https://discourse.processing.org/t/processing-3-object-class-not-being-displayed/33508)

<div class="topic-metadata">

**Author:** [@sebest\_design](https://discourse.processing.org/u/sebest_design)\
**Replies:** 2\
**Last updated:** [November 14, 2021, 9:49pm UTC](https://discourse.processing.org/t/processing-3-object-class-not-being-displayed/33508 "2021-11-14T21:49:55Z")

</div>

Hi. I am a total noob to object classes. I do not know what I am doing wrong. Here’s an image of the prototype: I am trying to create an object class for the encircled cards. I have saved the class on a separate pag…

---

## [Processing 3 Translate and Rotate function taking triangle out of canvas](https://discourse.processing.org/t/processing-3-translate-and-rotate-function-taking-triangle-out-of-canvas/33509)

<div class="topic-metadata">

**Author:** [@sebest\_design](https://discourse.processing.org/u/sebest_design)\
**Replies:** 1\
**Last updated:** [November 14, 2021, 6:14pm UTC](https://discourse.processing.org/t/processing-3-translate-and-rotate-function-taking-triangle-out-of-canvas/33509 "2021-11-14T18:14:34Z")

</div>

Hi. I am trying to horizontally flip a triangle and have it placed on the canvas. I want to create buttons for a carousel slide… Here’s the code: //Buttons noStroke(); triangle(triangleRX1, triangleRY1, triangleRX2and3,…

---

## [Using substring. What am I doing wrong?](https://discourse.processing.org/t/using-substring-what-am-i-doing-wrong/33503)

<div class="topic-metadata">

**Author:** [@FlyingApple](https://discourse.processing.org/u/FlyingApple)\
**Replies:** 2\
**Last updated:** [November 14, 2021, 3:02pm UTC](https://discourse.processing.org/t/using-substring-what-am-i-doing-wrong/33503 "2021-11-14T15:02:55Z")

</div>

println(p.state.substring(0,1), p.state); if (p.state.substring(0,1) == "W") { println("this is a test"); } p.state is “WPawn” p.state.substring(0, 1) is “W” However, “this is a test” is not being printed and I have…

---

## [Processing 4.0 is not starting](https://discourse.processing.org/t/processing-4-0-is-not-starting/33490)

<div class="topic-metadata">

**Author:** [@alex119](https://discourse.processing.org/u/alex119)\
**Replies:** 0\
**Last updated:** [November 13, 2021, 6:18pm UTC](https://discourse.processing.org/t/processing-4-0-is-not-starting/33490 "2021-11-13T18:18:47Z")

</div>

Hello, I have a problem. I deleted the old processing (3.0 version )and installed the 4th version. When I start processing it appears an error: “Could not load Java Mode, please reinstall Processing”. I tried to inst…

---

## [Connecting MySQL database with Processing](https://discourse.processing.org/t/connecting-mysql-database-with-processing/33349)

<div class="topic-metadata">

**Author:** [@Arabesque0210](https://discourse.processing.org/u/Arabesque0210)\
**Replies:** 4\
**Last updated:** [November 14, 2021, 12:54am UTC](https://discourse.processing.org/t/connecting-mysql-database-with-processing/33349 "2021-11-14T00:54:08Z")

</div>

Hi, I’m trying to use the data from mysql as text to complete my processing project. I thought it would be easy to find some tutorials about it, but maybe I made some mistakes, I only found a few very old methods and not…

---

## [Get alpha value from pixels array](https://discourse.processing.org/t/get-alpha-value-from-pixels-array/33479)

<div class="topic-metadata">

**Author:** [@bobodoustaud](https://discourse.processing.org/u/bobodoustaud)\
**Replies:** 3\
**Last updated:** [November 13, 2021, 11:15pm UTC](https://discourse.processing.org/t/get-alpha-value-from-pixels-array/33479 "2021-11-13T23:15:14Z")

</div>

So i opened a png with transparent pixels in a new PGraphics object. If i load it and render it in the main canvas, it has transparency, which means that the PGraphics background is transparent. But if i create a pixel …

---

## [Standing a Cube on its Corner](https://discourse.processing.org/t/standing-a-cube-on-its-corner/33477)

<div class="topic-metadata">

**Author:** [@kingnine](https://discourse.processing.org/u/kingnine)\
**Replies:** 1\
**Last updated:** [November 13, 2021, 1:14am UTC](https://discourse.processing.org/t/standing-a-cube-on-its-corner/33477 "2021-11-13T01:14:53Z")

</div>

Hi all, I have a question that sounds incredibly simple, but is proving very challenging, and I think it would be educational for me to learn where I’m going wrong. All I’m trying to do is make a cube and stand it on it…

---

## [Line loop to create volume](https://discourse.processing.org/t/line-loop-to-create-volume/33447)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 9\
**Last updated:** [November 13, 2021, 4:49pm UTC](https://discourse.processing.org/t/line-loop-to-create-volume/33447 "2021-11-13T16:49:30Z")

</div>

Hi there! I am practising with loops and I would like to create something similar to the black picture attached. I have made a loop and I have made this: As you can see, I would need: To increase gradually the …

---

## [G4P - Each window is displayed for a moment on the display](https://discourse.processing.org/t/g4p-each-window-is-displayed-for-a-moment-on-the-display/33486)

<div class="topic-metadata">

**Author:** [@csokasi](https://discourse.processing.org/u/csokasi)\
**Replies:** 0\
**Last updated:** [November 13, 2021, 10:13am UTC](https://discourse.processing.org/t/g4p-each-window-is-displayed-for-a-moment-on-the-display/33486 "2021-11-13T10:13:31Z")

</div>

import g4p\_controls.\*; public void setup(){ size(480, 320, JAVA2D); createGUI(); // Each window is displayed for a moment on the display. // I want this to happen in the background. customGU…

---

## [Adapt display window size to image](https://discourse.processing.org/t/adapt-display-window-size-to-image/33472)

<div class="topic-metadata">

**Author:** [@elemau](https://discourse.processing.org/u/elemau)\
**Replies:** 2\
**Last updated:** [November 12, 2021, 4:48pm UTC](https://discourse.processing.org/t/adapt-display-window-size-to-image/33472 "2021-11-12T16:48:31Z")

</div>

I want to simply adapt the display window size to the image I load. I read that with processing3 it is not possible anymore to use variables for defining size and that it is necessary to use settings. I tried but it doe…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=102)

[Next page](https://discourse.processing.org/c/processing/6.md?page=104)
