# Latest

**URL:** https://discourse.processing.org/latest.md?page=477

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

**Page:** 478

---

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

---

## [P5.js to Processing conversion](https://discourse.processing.org/t/p5-js-to-processing-conversion/11789)

<div class="topic-metadata">

**Author:** [@camiloegea](https://discourse.processing.org/u/camiloegea)\
**Replies:** 2\
**Last updated:** [June 5, 2019, 9:24pm UTC](https://discourse.processing.org/t/p5-js-to-processing-conversion/11789 "2019-06-05T21:24:27Z")

</div>

Hi everyone, i´m new to java and i´m trying to convert this js code to processing, because I want it to interact with the OpenKinect Library: var img, car; function preload() { img = loadImage('faustocartel.png'); } …

---

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

---

## [Porting p5.processing Arraylist question](https://discourse.processing.org/t/porting-p5-processing-arraylist-question/11869)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [June 5, 2019, 6:35pm UTC](https://discourse.processing.org/t/porting-p5-processing-arraylist-question/11869 "2019-06-05T18:35:36Z")

</div>

I’m trying to port over some code, from p5 ( this is the second environment I’ve learned to code in, the first being Khan academy). So I don’t understand all the concepts that Java utilises. However what seems like a sim…

---

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

---

## [Webgl, Rotate object from different rotation origin?](https://discourse.processing.org/t/webgl-rotate-object-from-different-rotation-origin/11765)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 6\
**Last updated:** [June 5, 2019, 5:25pm UTC](https://discourse.processing.org/t/webgl-rotate-object-from-different-rotation-origin/11765 "2019-06-05T17:25:11Z")

</div>

Is there a way in P5.js to rotate an object by an origin other than 0,0. For example, if I was making a human character, it it a way I would be able to rotate their arm from the shoulder joint instead of just the center…

---

## [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 pass React prop into setup()?](https://discourse.processing.org/t/how-to-pass-react-prop-into-setup/11849)

<div class="topic-metadata">

**Author:** [@venn](https://discourse.processing.org/u/venn)\
**Replies:** 4\
**Last updated:** [June 5, 2019, 7:28am UTC](https://discourse.processing.org/t/how-to-pass-react-prop-into-setup/11849 "2019-06-05T07:28:41Z")

</div>

Hi legends, I’m trying to figure out a problem with combining React UI with p5.js Currently I’m using p5-react-wrapper. I do aware @atoro has a more advanced and elegant solution (but it’s currently too complicated) fo…

---

## [Threads in processing.py?](https://discourse.processing.org/t/threads-in-processing-py/11396)

<div class="topic-metadata">

**Author:** [@alexolotl](https://discourse.processing.org/u/alexolotl)\
**Replies:** 6\
**Last updated:** [June 5, 2019, 2:38am UTC](https://discourse.processing.org/t/threads-in-processing-py/11396 "2019-06-05T02:38:22Z")

</div>

Is it possible to use thread() in processing.py? I’m trying to asynchronously and dynamically load large images without interfering with the framerate or draw loop I didn’t see any mention of thread() in the processing.…

---

## [Some problems with sound](https://discourse.processing.org/t/some-problems-with-sound/11833)

<div class="topic-metadata">

**Author:** [@Dolivan](https://discourse.processing.org/u/Dolivan)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 10:46pm UTC](https://discourse.processing.org/t/some-problems-with-sound/11833 "2019-06-04T22:46:04Z")

</div>

Hi! This is my sketch. https://editor.p5js.org/Dolivan/sketches/QQznxnFsQ I have some problems about Audio In, delay process and reverb process. I hope you help me. Bye.

---

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

---

## [Android Studio: attempt to invoke virtual method on a null object reference](https://discourse.processing.org/t/android-studio-attempt-to-invoke-virtual-method-on-a-null-object-reference/11705)

<div class="topic-metadata">

**Author:** [@Gabi](https://discourse.processing.org/u/Gabi)\
**Replies:** 9\
**Last updated:** [June 4, 2019, 10:01am UTC](https://discourse.processing.org/t/android-studio-attempt-to-invoke-virtual-method-on-a-null-object-reference/11705 "2019-06-04T10:01:51Z")

</div>

Hi, i’m new to this forum but i’ve already have some experience with Processing. Recently i started learning Android programming using Android Studio so i decided to setup the Processing core library. Inspired by a Shiff…

---

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

---

## [Run and jump game](https://discourse.processing.org/t/run-and-jump-game/8499)

<div class="topic-metadata">

**Author:** [@janglee](https://discourse.processing.org/u/janglee)\
**Replies:** 6\
**Last updated:** [June 4, 2019, 9:08am UTC](https://discourse.processing.org/t/run-and-jump-game/8499 "2019-06-04T09:08:07Z")

</div>

After reading other post about games I would like to share my old simple game. It is infinite runner jumping around platforms. Here is a link but It will work only on desktop browsers.

---

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

---

## [Help building a superorganism](https://discourse.processing.org/t/help-building-a-superorganism/11799)

<div class="topic-metadata">

**Author:** [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Replies:** 1\
**Last updated:** [June 3, 2019, 11:38pm UTC](https://discourse.processing.org/t/help-building-a-superorganism/11799 "2019-06-03T23:38:20Z")

</div>

Hey y’all, I’m trying to superimpose bodies detected by different webcams onto the same canvas, creating a sort of superorganism. The prototype is built with p5.js, ml5.js, React (thanks @atoro), and Meteor. The interac…

[Previous page](https://discourse.processing.org/latest.md?page=476)

[Next page](https://discourse.processing.org/latest.md?page=478)
