# Latest

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

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

**Page:** 448

---

## [Use the Arduino Processing Interface](https://discourse.processing.org/t/use-the-arduino-processing-interface/9409)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 10\
**Last updated:** [September 10, 2019, 10:42pm UTC](https://discourse.processing.org/t/use-the-arduino-processing-interface/9409 "2019-09-10T22:42:17Z")

</div>

Hello everyone, I can not transmit or receive PWM information, sent with analogWrite from Arduino and find it in Processing. I used the Arduino Input example in Processing and I can get the information from the Arduino…

---

## [Piggy boi project built by 11-year old](https://discourse.processing.org/t/piggy-boi-project-built-by-11-year-old/13885)

<div class="topic-metadata">

**Author:** [@aroytman](https://discourse.processing.org/u/aroytman)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 11:38pm UTC](https://discourse.processing.org/t/piggy-boi-project-built-by-11-year-old/13885 "2019-09-10T23:38:10Z")

</div>

My 11-year old daughter started to learn programming a couple of weeks ago and here is her first project: https://noderun.com/run/isabel-roytman/piggy-boi/ See the code here:

---

## [Which commands are implemented in the SFTP library](https://discourse.processing.org/t/which-commands-are-implemented-in-the-sftp-library/13914)

<div class="topic-metadata">

**Author:** [@michaelkpierce](https://discourse.processing.org/u/michaelkpierce)\
**Replies:** 1\
**Last updated:** [September 10, 2019, 6:46pm UTC](https://discourse.processing.org/t/which-commands-are-implemented-in-the-sftp-library/13914 "2019-09-10T18:46:13Z")

</div>

Hi, I want to use this library to update a library of images in multiple remote raspberry pis. Can you tell which commands are implemented? In particular, can I write files from the local machine to a remote machines. T…

---

## [Change or fix text Background in P3D](https://discourse.processing.org/t/change-or-fix-text-background-in-p3d/13903)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 3\
**Last updated:** [September 10, 2019, 4:22pm UTC](https://discourse.processing.org/t/change-or-fix-text-background-in-p3d/13903 "2019-09-10T16:22:48Z")

</div>

Hi people, have a new question: When using P3D the text is written with the original background of your sketch (or any color, don’t know from where it takes the color). I was trying to put a text but there appear a tex…

---

## [How to make a bezier curver not start at top left corner when using mouseX, mouseY as the initial anchor point?](https://discourse.processing.org/t/how-to-make-a-bezier-curver-not-start-at-top-left-corner-when-using-mousex-mousey-as-the-initial-anchor-point/13912)

<div class="topic-metadata">

**Author:** [@nathanchun](https://discourse.processing.org/u/nathanchun)\
**Replies:** 4\
**Last updated:** [September 10, 2019, 2:04pm UTC](https://discourse.processing.org/t/how-to-make-a-bezier-curver-not-start-at-top-left-corner-when-using-mousex-mousey-as-the-initial-anchor-point/13912 "2019-09-10T14:04:42Z")

</div>

I am new to processing and was assigned in class to create a bezier curve that makes one of the control points mouseX and mouseY along with some other necessary shapes needed for the assignment. Whenever I hit run, howev…

---

## [Clock, reset hour and new day statement](https://discourse.processing.org/t/clock-reset-hour-and-new-day-statement/13837)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 6\
**Last updated:** [September 6, 2019, 7:27pm UTC](https://discourse.processing.org/t/clock-reset-hour-and-new-day-statement/13837 "2019-09-06T19:27:37Z")

</div>

Hi, i made a very basic clock and i have two questions. 1: I wonder how can i reset the hours. Like when it past 24 it restart to 0. 2: How can i make a statement when a new day start. Can i use a boolean ? void setup…

---

## [Quadtree vs grid](https://discourse.processing.org/t/quadtree-vs-grid/13844)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [September 10, 2019, 11:35am UTC](https://discourse.processing.org/t/quadtree-vs-grid/13844 "2019-09-10T11:35:45Z")

</div>

Hi, after experimenting with processing it becomes increasingly clear that there is a need for some kind of space management when dealing with particles and their collisions. I’m currently partitioning the canvas using a…

---

## [Help with Sketch on Processing Android](https://discourse.processing.org/t/help-with-sketch-on-processing-android/13891)

<div class="topic-metadata">

**Author:** [@Marci1432](https://discourse.processing.org/u/Marci1432)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 9:05am UTC](https://discourse.processing.org/t/help-with-sketch-on-processing-android/13891 "2019-09-10T09:05:27Z")

</div>

I´ve made a drawing program on Processing Windows and it works just fine there. The sketch uses a lot of images. But now that I´m finished I wanted to make the sketch into an app. When I try to load the sketch on android…

---

## [Display images alternately](https://discourse.processing.org/t/display-images-alternately/13567)

<div class="topic-metadata">

**Author:** [@Moene](https://discourse.processing.org/u/Moene)\
**Replies:** 3\
**Last updated:** [August 24, 2019, 11:11am UTC](https://discourse.processing.org/t/display-images-alternately/13567 "2019-08-24T11:11:16Z")

</div>

How can I display an image in draw() successively with a delay between them? PImage img1; PImage img2; void setup () { img1 = loadImage("step5.png"); img2 = loadImage("fail2.png"); size(801,583); background(…

---

## [Shapes3D.pickShape and G4P P3D view combine?](https://discourse.processing.org/t/shapes3d-pickshape-and-g4p-p3d-view-combine/13849)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 9\
**Last updated:** [September 10, 2019, 8:04am UTC](https://discourse.processing.org/t/shapes3d-pickshape-and-g4p-p3d-view-combine/13849 "2019-09-10T08:04:06Z")

</div>

Can the pickshape function of Shapes3D be used with a 3D gview in G4P ? I can’t seem to make it work, I think possibly something is going wrong with a matrix transform somewhere between the gview and the pickbuffer … or…

---

## [Vectors not adding?](https://discourse.processing.org/t/vectors-not-adding/13900)

<div class="topic-metadata">

**Author:** [@blue1](https://discourse.processing.org/u/blue1)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 7:21am UTC](https://discourse.processing.org/t/vectors-not-adding/13900 "2019-09-10T07:21:54Z")

</div>

//I cant figure out how to get the isMoving function to work, im kind of comfortable with p5js and trying to learn processing but it seems there are always small bugs i cant find. Ground ground; Character character; PVe…

---

## [Chain hierarchy](https://discourse.processing.org/t/chain-hierarchy/13845)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 6\
**Last updated:** [September 9, 2019, 9:20pm UTC](https://discourse.processing.org/t/chain-hierarchy/13845 "2019-09-09T21:20:20Z")

</div>

Here’s something I’ve been trying to figure out. Im trying to build a hierarchy of ellipses such that each child ellipse has to stay within a certain range of its parent. I understand how it needs to work, Im just not…

---

## [Float Precision](https://discourse.processing.org/t/float-precision/13836)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 15\
**Last updated:** [September 7, 2019, 4:10am UTC](https://discourse.processing.org/t/float-precision/13836 "2019-09-07T04:10:43Z")

</div>

I’m using doubles for some mathematical calculations and I’m getting these two values: a = -69.49068165087722 n = 304.2372372266157 The problem is when I do this: float fa = (float) a; float fb = (float) b; I get: …

---

## [Making shapes and deleting them?](https://discourse.processing.org/t/making-shapes-and-deleting-them/13888)

<div class="topic-metadata">

**Author:** [@freek\_b](https://discourse.processing.org/u/freek_b)\
**Replies:** 8\
**Last updated:** [September 9, 2019, 3:58pm UTC](https://discourse.processing.org/t/making-shapes-and-deleting-them/13888 "2019-09-09T15:58:04Z")

</div>

i have tried to find a way to add shapes (circles and so) while its running just the problem is i am not able to find the right command i have found a few people saying that i should use something alike new circle(20,2…

---

## [Helping a teacher with the Web Editor](https://discourse.processing.org/t/helping-a-teacher-with-the-web-editor/13822)

<div class="topic-metadata">

**Author:** [@leonardof131](https://discourse.processing.org/u/leonardof131)\
**Replies:** 2\
**Last updated:** [September 9, 2019, 12:29pm UTC](https://discourse.processing.org/t/helping-a-teacher-with-the-web-editor/13822 "2019-09-09T12:29:48Z")

</div>

Greetings from Brazil! My name is Leo and I’m a teacher for an ONG that focuses in delivering STEAM education to poor children in my local region. We’re planning to do some coding classes with them, and the easy of use…

---

## [Can't draw on main window, calling methods from a secondary window (PApplet, image())](https://discourse.processing.org/t/cant-draw-on-main-window-calling-methods-from-a-secondary-window-papplet-image/13889)

<div class="topic-metadata">

**Author:** [@Pvag](https://discourse.processing.org/u/Pvag)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 7:32am UTC](https://discourse.processing.org/t/cant-draw-on-main-window-calling-methods-from-a-secondary-window-papplet-image/13889 "2019-09-09T07:32:14Z")

</div>

Hello ! From the main processing sketch file, I am instantiating objectA that defines methodA, which draws stuff on a PImage, that it then draws on the main window, using the image() function. This works as expected, wh…

---

## [Issue With Making a House](https://discourse.processing.org/t/issue-with-making-a-house/13875)

<div class="topic-metadata">

**Author:** [@Katerina\_P](https://discourse.processing.org/u/Katerina_P)\
**Replies:** 13\
**Last updated:** [September 9, 2019, 12:37am UTC](https://discourse.processing.org/t/issue-with-making-a-house/13875 "2019-09-09T00:37:01Z")

</div>

Hi Guys, Im trying to make a house and my code isn’t running. Can someone please tell me why? This is the code: void setup() { size(200, 200); background(255); smooth(); } void draw () { fill(#1E4609); rect (0…

---

## [Getting amplitude values from a SoundFile (processing.sound)](https://discourse.processing.org/t/getting-amplitude-values-from-a-soundfile-processing-sound/13877)

<div class="topic-metadata">

**Author:** [@Brunehilde](https://discourse.processing.org/u/Brunehilde)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 9:54pm UTC](https://discourse.processing.org/t/getting-amplitude-values-from-a-soundfile-processing-sound/13877 "2019-09-08T21:54:42Z")

</div>

Hi ! I’ve been playing around with the Sound library for a bit to make a simple music visualizer, but I can’t seem to get the amp values for specific points in the music to make a nice timeline. Here’s how I defined al…

---

## [Android mode 40% frame drop, without code](https://discourse.processing.org/t/android-mode-40-frame-drop-without-code/13536)

<div class="topic-metadata">

**Author:** [@madscience2728](https://discourse.processing.org/u/madscience2728)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 4:14am UTC](https://discourse.processing.org/t/android-mode-40-frame-drop-without-code/13536 "2019-09-02T04:14:49Z")

</div>

void setup() { } void draw() { println(frameRate); } That is the only code. Even with a diy framerate check instead of println(frameRate); same results. Tested on Galaxy S9: sometimes stable 60fps, 70% of the time …

---

## [Error on Saving File, if the string has chars sourced from the key variable](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731)

<div class="topic-metadata">

**Author:** [@hutty](https://discourse.processing.org/u/hutty)\
**Replies:** 3\
**Last updated:** [September 9, 2019, 12:40am UTC](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731 "2019-09-09T00:40:24Z")

</div>

I’m working on an android processing app with APDE and have an issue. When I save a PImage, with save(), with a valid file path it works. However if I make that filepath string from a string of my text entry box, it do…

---

## [Sphere Distortion](https://discourse.processing.org/t/sphere-distortion/13831)

<div class="topic-metadata">

**Author:** [@swmarks](https://discourse.processing.org/u/swmarks)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 12:25am UTC](https://discourse.processing.org/t/sphere-distortion/13831 "2019-09-09T00:25:38Z")

</div>

A riff on Dan Shiffman’s Coding Challenge #25 in which I fiddle around with the vertices in the TRIANGLE\_STRIPs and rotate on the X and Y axes. Vimeo here to see the animation

---

## [More Astronomy Thinking](https://discourse.processing.org/t/more-astronomy-thinking/13882)

<div class="topic-metadata">

**Author:** [@gbenedisgrab](https://discourse.processing.org/u/gbenedisgrab)\
**Replies:** 4\
**Last updated:** [September 8, 2019, 7:03pm UTC](https://discourse.processing.org/t/more-astronomy-thinking/13882 "2019-09-08T19:03:22Z")

</div>

After a conversation with someone about my recent article I created the following sketch comparing Heliocentric and Geocentric. I quite like its simplicity and visual aspects so I thought I would share https://editor.p…

---

## [How do I get my sketch to show the steps of a drawing](https://discourse.processing.org/t/how-do-i-get-my-sketch-to-show-the-steps-of-a-drawing/13808)

<div class="topic-metadata">

**Author:** [@rbytes](https://discourse.processing.org/u/rbytes)\
**Replies:** 2\
**Last updated:** [September 5, 2019, 1:04am UTC](https://discourse.processing.org/t/how-do-i-get-my-sketch-to-show-the-steps-of-a-drawing/13808 "2019-09-05T01:04:31Z")

</div>

When I run my sketch “Spiral of Theodore’s” on OpenProcessing, the entire drawing appears almost instantly. I would prefer that it appear triangle by triangle, so that other viewers could see the progress. I have been …

---

## [Applying Class to each character in a string](https://discourse.processing.org/t/applying-class-to-each-character-in-a-string/13870)

<div class="topic-metadata">

**Author:** [@tylerowens](https://discourse.processing.org/u/tylerowens)\
**Replies:** 7\
**Last updated:** [September 8, 2019, 10:13am UTC](https://discourse.processing.org/t/applying-class-to-each-character-in-a-string/13870 "2019-09-08T10:13:32Z")

</div>

Hello all, I am going to try my best to describe what I am trying to make so I can hopefully receive some help. I am trying to make each character in a string accelerate towards the mouse. With the code I have currently…

---

## [\[Android\] Help me~ // Application turning off & keyboard](https://discourse.processing.org/t/android-help-me-application-turning-off-keyboard/13872)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 8, 2019, 10:03am UTC](https://discourse.processing.org/t/android-help-me-application-turning-off-keyboard/13872 "2019-09-08T10:03:14Z")

</div>

Please refer to the image. Question 1\>\> Press the button to turn off. Is there a way to prevent the application from turning off? Question 2\>\> When writing with the keyboard English is available but Korean is no…

---

## [This code works in my friend's pc but I get error](https://discourse.processing.org/t/this-code-works-in-my-friends-pc-but-i-get-error/13859)

<div class="topic-metadata">

**Author:** [@sp\_sarvesh](https://discourse.processing.org/u/sp_sarvesh)\
**Replies:** 7\
**Last updated:** [September 8, 2019, 12:34am UTC](https://discourse.processing.org/t/this-code-works-in-my-friends-pc-but-i-get-error/13859 "2019-09-08T00:34:00Z")

</div>

I get ArrayOutOf BoundsException: 0 on line 12 when I run this code, and then java sm has stopped responding when I try to close the small window. Can anyone please help me with this? This same code works for my friend. …

---

## [Dividing a round number doesn't work. Dividing as a variable does?](https://discourse.processing.org/t/dividing-a-round-number-doesnt-work-dividing-as-a-variable-does/13862)

<div class="topic-metadata">

**Author:** [@Marinus](https://discourse.processing.org/u/Marinus)\
**Replies:** 6\
**Last updated:** [September 7, 2019, 7:06pm UTC](https://discourse.processing.org/t/dividing-a-round-number-doesnt-work-dividing-as-a-variable-does/13862 "2019-09-07T19:06:15Z")

</div>

Hi, I am having a question why something doesn’t work one way, but it does the other way. I was sketching something out in processing with this variable: float k = 5 / 8; It didn’t want to work. But when I did it like…

---

## [Piston effect in Processing simulation](https://discourse.processing.org/t/piston-effect-in-processing-simulation/13867)

<div class="topic-metadata">

**Author:** [@harvious](https://discourse.processing.org/u/harvious)\
**Replies:** 1\
**Last updated:** [September 7, 2019, 2:38pm UTC](https://discourse.processing.org/t/piston-effect-in-processing-simulation/13867 "2019-09-07T14:38:17Z")

</div>

0 I am trying to set up a simulation of a 2D box containing a number of particles (circles of radius r) colliding elastically with each other and the wall. I then tried to add in a piston (a line object with some stroke…

---

## [Is there a way to make random grids/layouts in Processing?](https://discourse.processing.org/t/is-there-a-way-to-make-random-grids-layouts-in-processing/13854)

<div class="topic-metadata">

**Author:** [@jb99](https://discourse.processing.org/u/jb99)\
**Replies:** 10\
**Last updated:** [September 7, 2019, 5:55pm UTC](https://discourse.processing.org/t/is-there-a-way-to-make-random-grids-layouts-in-processing/13854 "2019-09-07T17:55:37Z")

</div>

Hi everyone, I’m a visual designer and I’m new to processing. I would like to know if there are any possibilities in Processing to create random aesthetic grids/layouts for editorial projects let’s say that are very sim…

---

## [\[SOLVED\] Does anyone know of a way to build Python code through Sublime Text 3?](https://discourse.processing.org/t/solved-does-anyone-know-of-a-way-to-build-python-code-through-sublime-text-3/8438)

<div class="topic-metadata">

**Author:** [@REal](https://discourse.processing.org/u/REal)\
**Replies:** 3\
**Last updated:** [September 7, 2019, 9:39am UTC](https://discourse.processing.org/t/solved-does-anyone-know-of-a-way-to-build-python-code-through-sublime-text-3/8438 "2019-09-07T09:39:52Z")

</div>

I’m just starting to learn Processing, and I wanted to learn it using Python, but I’m used to the sublime text 3 environment. I just set up the Sublime Text 3 Processing package, but I can’t seem to figure out how to mak…

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

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