# Processing

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

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

**Page:** 293

---

## [How to do a animated colored Keyboard?](https://discourse.processing.org/t/how-to-do-a-animated-colored-keyboard/11763)

<div class="topic-metadata">

**Author:** [@Moiizez](https://discourse.processing.org/u/Moiizez)\
**Replies:** 12\
**Last updated:** [June 6, 2019, 9:52am UTC](https://discourse.processing.org/t/how-to-do-a-animated-colored-keyboard/11763 "2019-06-06T09:52:34Z")

</div>

Hey, I need some help with this thing I’m trying to do. I wanna create a keyboard in Processing, that when you press a key, it selects a random color and a cub “grow up” on the screen (in the place that the rect is plac…

---

## [Reading data from .TXT file](https://discourse.processing.org/t/reading-data-from-txt-file/11695)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 10\
**Last updated:** [May 30, 2019, 6:20am UTC](https://discourse.processing.org/t/reading-data-from-txt-file/11695 "2019-05-30T06:20:36Z")

</div>

I’am having trouble to read data from a file and store on variables. I already tryed several diferents approachs but none of them were sucssesful. The problem i’am having with this code is that i’am only reaciving data …

---

## [Please, help. Arduino: Saving data to a .something file](https://discourse.processing.org/t/please-help-arduino-saving-data-to-a-something-file/11831)

<div class="topic-metadata">

**Author:** [@Arturo18](https://discourse.processing.org/u/Arturo18)\
**Replies:** 4\
**Last updated:** [June 6, 2019, 7:46am UTC](https://discourse.processing.org/t/please-help-arduino-saving-data-to-a-something-file/11831 "2019-06-06T07:46:03Z")

</div>

Hi guys, please, I need help with making an Arduino program thar saves data that I recieve from a circuit made on a breadboard to a .something file. Please, need your help. Code down below. #define BINS\_SIZE 256 #define…

---

## [Help with X coordinate that will switch back and forth?](https://discourse.processing.org/t/help-with-x-coordinate-that-will-switch-back-and-forth/11843)

<div class="topic-metadata">

**Author:** [@Pbchocochipcheerios](https://discourse.processing.org/u/Pbchocochipcheerios)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 5:55am UTC](https://discourse.processing.org/t/help-with-x-coordinate-that-will-switch-back-and-forth/11843 "2019-06-06T05:55:51Z")

</div>

I want to animate a triangle by changing the x2 point to match x1 so that it becomes a line. I want it to look like it is a triangle switching from triangle to line, triangle to line, etc. Does anyone know how I can do t…

---

## [Polygon filling algorithm example (scanline)](https://discourse.processing.org/t/polygon-filling-algorithm-example-scanline/11778)

<div class="topic-metadata">

**Author:** [@BProcess](https://discourse.processing.org/u/BProcess)\
**Replies:** 4\
**Last updated:** [June 6, 2019, 5:44am UTC](https://discourse.processing.org/t/polygon-filling-algorithm-example-scanline/11778 "2019-06-06T05:44:07Z")

</div>

Hi All, I would like to do the sacn line algorithm in Processing. I have read a lot about it but I have no clue how to start it. Do you have any example or something what helps to start to implement it? Thanks a lot in…

---

## [Static and moving objects](https://discourse.processing.org/t/static-and-moving-objects/11809)

<div class="topic-metadata">

**Author:** [@BallazX](https://discourse.processing.org/u/BallazX)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 2:28am UTC](https://discourse.processing.org/t/static-and-moving-objects/11809 "2019-06-06T02:28:12Z")

</div>

Hello Guys, I’m trying to do the following: I’m drawing some circle by clicking with the mouse I have a rect with a given coordinates I’d like to move the rect with the keyboard Every time I’m moving the rect the old…

---

## [oscP5 + Voice to Text](https://discourse.processing.org/t/oscp5-voice-to-text/11774)

<div class="topic-metadata">

**Author:** [@Anstar](https://discourse.processing.org/u/Anstar)\
**Replies:** 1\
**Last updated:** [June 6, 2019, 2:26am UTC](https://discourse.processing.org/t/oscp5-voice-to-text/11774 "2019-06-06T02:26:11Z")

</div>

Hi guys, I am currently trying to get the VtT sketch I have to send the string PrintIn(msg) through OSC or translate it into something addressable for another sketch, (I’d like to be able to turn these messages to PImage…

---

## [I need help with scalibility in full-screen sketches](https://discourse.processing.org/t/i-need-help-with-scalibility-in-full-screen-sketches/11791)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 5\
**Last updated:** [June 5, 2019, 9:16pm UTC](https://discourse.processing.org/t/i-need-help-with-scalibility-in-full-screen-sketches/11791 "2019-06-05T21:16:00Z")

</div>

I often program all my projects on many different computers, with different resolutions, leading me to my problem. Because of the many different resolutions my sketches go through I have 3 options: code windowed appli…

---

## [Variables With Circles](https://discourse.processing.org/t/variables-with-circles/11875)

<div class="topic-metadata">

**Author:** [@Theikercf75](https://discourse.processing.org/u/Theikercf75)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 9:06pm UTC](https://discourse.processing.org/t/variables-with-circles/11875 "2019-06-05T21:06:38Z")

</div>

I want to make an X with circles every 20 pixels in a box of 300 x 300 but I only get a line of circles. That I’m failing with this one. void setup() { size(300, 300); strokeWeight(20); for (int a=0 ; a\<300 ; a=a+…

---

## [Unable to Resolve XML URL (Even though it is valid)](https://discourse.processing.org/t/unable-to-resolve-xml-url-even-though-it-is-valid/11836)

<div class="topic-metadata">

**Author:** [@n055](https://discourse.processing.org/u/n055)\
**Replies:** 10\
**Last updated:** [June 5, 2019, 6:37pm UTC](https://discourse.processing.org/t/unable-to-resolve-xml-url-even-though-it-is-valid/11836 "2019-06-05T18:37:28Z")

</div>

Hey y’all, I’m trying to fetch an xml document from a URL for a daily quote, but despite the link working outside of Processing (it resolves in my browser and in an online xml reader), I’m getting lots of strange errors …

---

## [When ellipse hit the rect](https://discourse.processing.org/t/when-ellipse-hit-the-rect/11733)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.processing.org/u/Nick1)\
**Replies:** 2\
**Last updated:** [June 5, 2019, 4:44pm UTC](https://discourse.processing.org/t/when-ellipse-hit-the-rect/11733 "2019-06-05T16:44:05Z")

</div>

Hey, I want when my ellipse hit my rect then i want that the ellipse start above another time. But i dont know how to do that. Thanks for help PImage klo, kacke; int x; int \[\] KackeX; int \[\] KackeY; int \[\] speedX; int…

---

## [Keeping a moving shape inside an area](https://discourse.processing.org/t/keeping-a-moving-shape-inside-an-area/11819)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 3\
**Last updated:** [June 4, 2019, 1:36pm UTC](https://discourse.processing.org/t/keeping-a-moving-shape-inside-an-area/11819 "2019-06-04T13:36:48Z")

</div>

Hello! I’am trying to develop an artificial horizon, an aircraft instrument. I made some code but i dont know how to mantain this shape inside the circle of the instrument (when move the mouse the shapes goes outside the…

---

## [I can't get a character to sit on top of a rect without falling through](https://discourse.processing.org/t/i-cant-get-a-character-to-sit-on-top-of-a-rect-without-falling-through/11839)

<div class="topic-metadata">

**Author:** [@danemacfadden](https://discourse.processing.org/u/danemacfadden)\
**Replies:** 5\
**Last updated:** [June 5, 2019, 4:55pm UTC](https://discourse.processing.org/t/i-cant-get-a-character-to-sit-on-top-of-a-rect-without-falling-through/11839 "2019-06-05T16:55:39Z")

</div>

Here’s my code: // Adventures of Dingding // By Dane MacFadden // 2019/06/03 ArrayList\<Platform\> platform; // Holds platforms Dingding dingding; // Character object void setup() { size(600, 400); platform = new Arr…

---

## [Get UDP SSID within processing hypermedia](https://discourse.processing.org/t/get-udp-ssid-within-processing-hypermedia/11802)

<div class="topic-metadata">

**Author:** [@jschornagel](https://discourse.processing.org/u/jschornagel)\
**Replies:** 2\
**Last updated:** [June 5, 2019, 12:47pm UTC](https://discourse.processing.org/t/get-udp-ssid-within-processing-hypermedia/11802 "2019-06-05T12:47:37Z")

</div>

Hi all, I have a ESP8266 that connects to processing over wifi using the UDP library. The ESP8266 broadcasts a wifi network and my PC logs into this wifi network. For my processing sketch it is necessary that in order t…

---

## [Save data from Arduino to a .csv file](https://discourse.processing.org/t/save-data-from-arduino-to-a-csv-file/11827)

<div class="topic-metadata">

**Author:** [@Arturo18](https://discourse.processing.org/u/Arturo18)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 10:12am UTC](https://discourse.processing.org/t/save-data-from-arduino-to-a-csv-file/11827 "2019-06-05T10:12:10Z")

</div>

Hello, everyone. I’m trying to save data from an Arduino to a .csv file. I don’t know how to do it, so, couls someone help me? Please? Code down below. #define BINS\_SIZE 256 #define CALIBRATION\_SIZE 50000 #define NO\_BI…

---

## [Will there ever be processing library in Rust?](https://discourse.processing.org/t/will-there-ever-be-processing-library-in-rust/11336)

<div class="topic-metadata">

**Author:** [@sloloo](https://discourse.processing.org/u/sloloo)\
**Replies:** 6\
**Last updated:** [June 5, 2019, 8:21am UTC](https://discourse.processing.org/t/will-there-ever-be-processing-library-in-rust/11336 "2019-06-05T08:21:57Z")

</div>

Among all others processing most intuitive and easy to learn lib for creative programming. Are there any plans to rewrite it in Rust for better speed and Wasm compatibility in the future?

---

## [Smile detection](https://discourse.processing.org/t/smile-detection/11626)

<div class="topic-metadata">

**Author:** [@Ten](https://discourse.processing.org/u/Ten)\
**Replies:** 4\
**Last updated:** [June 5, 2019, 8:00am UTC](https://discourse.processing.org/t/smile-detection/11626 "2019-06-05T08:00:06Z")

</div>

Hi everyone i’m new in processing so i don’t know how to fix this problem. At the moment im working on a project which take a photo via webcam. The trigger for the photo is the detection of a smiling person. I tried to w…

---

## [How to show a string on the screen?](https://discourse.processing.org/t/how-to-show-a-string-on-the-screen/11842)

<div class="topic-metadata">

**Author:** [@francesca.comanducci](https://discourse.processing.org/u/francesca.comanducci)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 9:24pm UTC](https://discourse.processing.org/t/how-to-show-a-string-on-the-screen/11842 "2019-06-04T21:24:01Z")

</div>

Hi everyone, I’m working on this code, my aim is to print on the screen the value of C (that works) and the value of h (that compute from C). However, when I run the code, this latter value is not shown on the screen. S…

---

## [Receiveing multiple data strings from arduino HELP FAST](https://discourse.processing.org/t/receiveing-multiple-data-strings-from-arduino-help-fast/11794)

<div class="topic-metadata">

**Author:** [@corbax](https://discourse.processing.org/u/corbax)\
**Replies:** 4\
**Last updated:** [June 4, 2019, 10:33am UTC](https://discourse.processing.org/t/receiveing-multiple-data-strings-from-arduino-help-fast/11794 "2019-06-04T10:33:00Z")

</div>

hello guys. First of all sorry for a title but I have 4 hours to finish my school project. SO my problem is that I don’t know how to read multiple values via serial port. I got it working for one value but when I add n…

---

## [How to change the color of some irregular graphics in an image](https://discourse.processing.org/t/how-to-change-the-color-of-some-irregular-graphics-in-an-image/11825)

<div class="topic-metadata">

**Author:** [@h526450301](https://discourse.processing.org/u/h526450301)\
**Replies:** 1\
**Last updated:** [June 4, 2019, 9:15am UTC](https://discourse.processing.org/t/how-to-change-the-color-of-some-irregular-graphics-in-an-image/11825 "2019-06-04T09:15:02Z")

</div>

I just have a map with different colors to represent different communications like this: Now I need to change one of the communications’ color such as I just want to let the Old Town in the color red.How can I do this…

---

## [Mouse Clicked function and storing variables](https://discourse.processing.org/t/mouse-clicked-function-and-storing-variables/11823)

<div class="topic-metadata">

**Author:** [@Pbchocochipcheerios](https://discourse.processing.org/u/Pbchocochipcheerios)\
**Replies:** 1\
**Last updated:** [June 4, 2019, 5:43am UTC](https://discourse.processing.org/t/mouse-clicked-function-and-storing-variables/11823 "2019-06-04T05:43:58Z")

</div>

Hello! I am new to processing and was hoping someone can help. I am drew an object and need it to glide from one mouse click location to another. I used the mouseClicked function and stored the X and Y of when the mous…

---

## [Molecular Geometry 3D Rotation](https://discourse.processing.org/t/molecular-geometry-3d-rotation/11818)

<div class="topic-metadata">

**Author:** [@notcatfish2017](https://discourse.processing.org/u/notcatfish2017)\
**Replies:** 4\
**Last updated:** [June 4, 2019, 2:11am UTC](https://discourse.processing.org/t/molecular-geometry-3d-rotation/11818 "2019-06-04T02:11:56Z")

</div>

Hi, I’m using P3D to create 3D models of organic molecules. Currently, I’m working on a tetrahedral structure, where the angles formed by all of the bonds are 109.5 degrees (see 2nd diagram). In this case, I have the gr…

---

## [Enemy object not moving!](https://discourse.processing.org/t/enemy-object-not-moving/11814)

<div class="topic-metadata">

**Author:** [@sc4p3g0a7](https://discourse.processing.org/u/sc4p3g0a7)\
**Replies:** 6\
**Last updated:** [June 3, 2019, 11:36pm UTC](https://discourse.processing.org/t/enemy-object-not-moving/11814 "2019-06-03T23:36:38Z")

</div>

Hi. i decided one day to make the dinosaur game in the chrome browser. it all worked fine, until i made the cactus.(i suck at programming, so don’t judge) The problem is that he( the cactus) is not moving, even if i assi…

---

## [Mirror-drawing and following mouse](https://discourse.processing.org/t/mirror-drawing-and-following-mouse/11661)

<div class="topic-metadata">

**Author:** [@linebp](https://discourse.processing.org/u/linebp)\
**Replies:** 4\
**Last updated:** [June 3, 2019, 12:23am UTC](https://discourse.processing.org/t/mirror-drawing-and-following-mouse/11661 "2019-06-03T00:23:55Z")

</div>

Hello Processing forum, I’m trying to create a programme where I can draw mirrored lines. My code looks like this: void setup() { fullScreen(); background(255); noStroke(); translate (width/2, 0); } void dr…

---

## [Optical mouse CAMERA](https://discourse.processing.org/t/optical-mouse-camera/11803)

<div class="topic-metadata">

**Author:** [@komats](https://discourse.processing.org/u/komats)\
**Replies:** 1\
**Last updated:** [June 3, 2019, 3:57pm UTC](https://discourse.processing.org/t/optical-mouse-camera/11803 "2019-06-03T15:57:57Z")

</div>

Hello all! Recently I discovered that an optical mouse can be hacked into a camera with a use of Arduino and Processing (from THIS video)! I bought a cheap mouse, opened it up. And for my surprise, the guts where differ…

---

## [Does anyone know how I can make that (mesh)](https://discourse.processing.org/t/does-anyone-know-how-i-can-make-that-mesh/11783)

<div class="topic-metadata">

**Author:** [@Eyvindr](https://discourse.processing.org/u/Eyvindr)\
**Replies:** 2\
**Last updated:** [June 3, 2019, 11:13am UTC](https://discourse.processing.org/t/does-anyone-know-how-i-can-make-that-mesh/11783 "2019-06-03T11:13:49Z")

</div>

Does anyone knows how to make one of these? I am really trying my best, but somehow can’t figure it out… I have to do this as a project in uni. I have to include the pattern in a letter. I would very much appreciate …

---

## [Noise grid stops moving after a while](https://discourse.processing.org/t/noise-grid-stops-moving-after-a-while/11704)

<div class="topic-metadata">

**Author:** [@madsogstrup](https://discourse.processing.org/u/madsogstrup)\
**Replies:** 3\
**Last updated:** [June 3, 2019, 5:16am UTC](https://discourse.processing.org/t/noise-grid-stops-moving-after-a-while/11704 "2019-06-03T05:16:13Z")

</div>

Hello! I have this code that is doing what i want. But i would like for it to keep “animating” in eternity. I think i know why i stops, but I don’t know how to explain it properly or do anything about it. :slight\_smile…

---

## [Problem with "String Index Out Of Bounds Exception"](https://discourse.processing.org/t/problem-with-string-index-out-of-bounds-exception/11790)

<div class="topic-metadata">

**Author:** [@ToastyOosty](https://discourse.processing.org/u/ToastyOosty)\
**Replies:** 5\
**Last updated:** [June 3, 2019, 12:57am UTC](https://discourse.processing.org/t/problem-with-string-index-out-of-bounds-exception/11790 "2019-06-03T00:57:12Z")

</div>

So I’m writing this code for a small project I’m working and I keep getting the error message “StringIndexOutOfBoundsException: String index out of range: 0” I won’t post the entire code cause its a bit long but here’s …

---

## [Updating void draw() while another function is in a loop](https://discourse.processing.org/t/updating-void-draw-while-another-function-is-in-a-loop/11787)

<div class="topic-metadata">

**Author:** [@SoulT](https://discourse.processing.org/u/SoulT)\
**Replies:** 2\
**Last updated:** [June 2, 2019, 8:53pm UTC](https://discourse.processing.org/t/updating-void-draw-while-another-function-is-in-a-loop/11787 "2019-06-02T20:53:12Z")

</div>

Hi guys, I’m having a bit of trouble with something. I have a FOR loop that’s running inside of a function. The loop loads a few file names from a website, and then adds them to a list. My goal is to have the program u…

---

## [What is your prefered UI library for your sketches?](https://discourse.processing.org/t/what-is-your-prefered-ui-library-for-your-sketches/11623)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 7\
**Last updated:** [June 2, 2019, 8:30pm UTC](https://discourse.processing.org/t/what-is-your-prefered-ui-library-for-your-sketches/11623 "2019-06-02T20:30:27Z")

</div>

hey all, For the last couple of years that I’ve been coding with Processing, I used only ControlP5 for UI stuff. It’s been great but I am very curious what other people are using for UI these days. Thanks, Yair :gri…

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

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