# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&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

---

## [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…

---

## [Creating a death animation for snake](https://discourse.processing.org/t/creating-a-death-animation-for-snake/33475)

<div class="topic-metadata">

**Author:** [@Addvac](https://discourse.processing.org/u/Addvac)\
**Replies:** 0\
**Last updated:** [November 12, 2021, 2:47pm UTC](https://discourse.processing.org/t/creating-a-death-animation-for-snake/33475 "2021-11-12T14:47:16Z")

</div>

//Defining necessary variables and arrays ArrayList\<Integer\> x = new ArrayList\<Integer\>(), y = new ArrayList\<Integer\>(); //creates array lists for the x and y positions of the snake int …

---

## [Help with incorporating mic inputs into my visuals](https://discourse.processing.org/t/help-with-incorporating-mic-inputs-into-my-visuals/33448)

<div class="topic-metadata">

**Author:** [@YourLocalGrandma](https://discourse.processing.org/u/YourLocalGrandma)\
**Replies:** 0\
**Last updated:** [November 10, 2021, 9:46pm UTC](https://discourse.processing.org/t/help-with-incorporating-mic-inputs-into-my-visuals/33448 "2021-11-10T21:46:45Z")

</div>

Hi Guys, would love it if someone could point me in the right direction here because I’m very stuck. My goal is to use the mic inputs to move the amplitude of the lines across the screen, creating sort of a sound visuali…

---

## [Make a realtime serial plotter](https://discourse.processing.org/t/make-a-realtime-serial-plotter/33438)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 12\
**Last updated:** [November 11, 2021, 9:31pm UTC](https://discourse.processing.org/t/make-a-realtime-serial-plotter/33438 "2021-11-11T21:31:32Z")

</div>

Hello, I want to ask about the real time serial plotter, I have downloaded it from Sebastian Nilsson’s github, and have modified it as needed. But I’m confused to make my serial value as input update in the graph I creat…

---

## [No idea what happened, getting a weird effect](https://discourse.processing.org/t/no-idea-what-happened-getting-a-weird-effect/33459)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 2:24pm UTC](https://discourse.processing.org/t/no-idea-what-happened-getting-a-weird-effect/33459 "2021-11-11T14:24:24Z")

</div>

int x = 10; int y = 10; int spacingX = 10; int spacingY = 10; int scalingNot = 255; void setup() { size(500, 500); } void draw () { background(255); for (int x = 0; x \< width; x = x + spacingX) { for (int y = 0; …

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

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