# Latest

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

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

**Page:** 524

---

## [JavaScript Basic Question](https://discourse.processing.org/t/javascript-basic-question/8434)

<div class="topic-metadata">

**Author:** [@ixd](https://discourse.processing.org/u/ixd)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 2:29am UTC](https://discourse.processing.org/t/javascript-basic-question/8434 "2019-02-16T02:29:18Z")

</div>

How can I make it so that the grass is “cut” at a certain height? I think I should be changing something in line 21, but not sure… also, when the grass is cut, all that happens is a white rectangle is being placed over …

---

## [How to slow down drawing points](https://discourse.processing.org/t/how-to-slow-down-drawing-points/8234)

<div class="topic-metadata">

**Author:** [@davef\_dci](https://discourse.processing.org/u/davef_dci)\
**Replies:** 22\
**Last updated:** [February 15, 2019, 9:59pm UTC](https://discourse.processing.org/t/how-to-slow-down-drawing-points/8234 "2019-02-15T21:59:56Z")

</div>

Hey folks, New to processing. I’m reading a large number of X,Y points out of a CSV file and drawing them to the screen using the point command. inside a for loop The points represent GPS locations on a race track. I’d…

---

## [Running a circle pattern inside a given shape](https://discourse.processing.org/t/running-a-circle-pattern-inside-a-given-shape/8108)

<div class="topic-metadata">

**Author:** [@TomMoto](https://discourse.processing.org/u/TomMoto)\
**Replies:** 3\
**Last updated:** [February 15, 2019, 9:54pm UTC](https://discourse.processing.org/t/running-a-circle-pattern-inside-a-given-shape/8108 "2019-02-15T21:54:24Z")

</div>

Hi, I am cosidering myself still a beginner, trying to learn as much as I can. I would like to realize something but I m stuck. maybe someone has a tip or solution… Within my sketch I create little circles row by row.…

---

## [P5.js Prim's Algorithm Maze Generation: Stuck in Infinite Loop](https://discourse.processing.org/t/p5-js-prims-algorithm-maze-generation-stuck-in-infinite-loop/8277)

<div class="topic-metadata">

**Author:** [@henrydavidzhu](https://discourse.processing.org/u/henrydavidzhu)\
**Replies:** 2\
**Last updated:** [February 15, 2019, 9:05pm UTC](https://discourse.processing.org/t/p5-js-prims-algorithm-maze-generation-stuck-in-infinite-loop/8277 "2019-02-15T21:05:59Z")

</div>

Note: Posted this question on StackOverflow and received answers there: https://stackoverflow.com/questions/54613229/p5-js-prims-algorithm-maze-generation-stuck-in-infinite-loop/54621408#54621408 I’m trying on implement…

---

## [Individual stroke colours for each side of a rect](https://discourse.processing.org/t/individual-stroke-colours-for-each-side-of-a-rect/7937)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 3\
**Last updated:** [February 15, 2019, 6:12pm UTC](https://discourse.processing.org/t/individual-stroke-colours-for-each-side-of-a-rect/7937 "2019-02-15T18:12:18Z")

</div>

I was wondering if there was function that allows you to assign a unique colour value to each side of a rect - So for example the top stroke of a rect could be green and the bottom stroke of the rect could be red - I don…

---

## [Get counts from each cell in cavas in Processing](https://discourse.processing.org/t/get-counts-from-each-cell-in-cavas-in-processing/8238)

<div class="topic-metadata">

**Author:** [@harvious](https://discourse.processing.org/u/harvious)\
**Replies:** 6\
**Last updated:** [February 15, 2019, 6:10pm UTC](https://discourse.processing.org/t/get-counts-from-each-cell-in-cavas-in-processing/8238 "2019-02-15T18:10:52Z")

</div>

Hello all, I have been working on a simulation project for a while which involves N colliding balls in a 2D space. What I want to get is the count of the number of balls in each cell every frame and save it to a text fi…

---

## [Minim Loop Synchronization](https://discourse.processing.org/t/minim-loop-synchronization/8261)

<div class="topic-metadata">

**Author:** [@spaceHolder](https://discourse.processing.org/u/spaceHolder)\
**Replies:** 2\
**Last updated:** [February 15, 2019, 6:07pm UTC](https://discourse.processing.org/t/minim-loop-synchronization/8261 "2019-02-15T18:07:23Z")

</div>

Hey there! This is my first post here so please excuse me if it’s in the wrong place. I’m thinking of putting together a really simple little 4 track looping pedal type program using minim but I’m not quite sure if ther…

---

## [Creating the brick breaker Game](https://discourse.processing.org/t/creating-the-brick-breaker-game/8251)

<div class="topic-metadata">

**Author:** [@jadenfigger](https://discourse.processing.org/u/jadenfigger)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 6:06pm UTC](https://discourse.processing.org/t/creating-the-brick-breaker-game/8251 "2019-02-15T18:06:31Z")

</div>

I am trying to create brick breaker but when my ball moves it is really glitchy. The ball position keeps jumping to where it previously was. If anyone knows how to fix this issue could you please let me know. Here is my…

---

## [How do I get pixels to display ONE by ONE after a key is pressed?](https://discourse.processing.org/t/how-do-i-get-pixels-to-display-one-by-one-after-a-key-is-pressed/8242)

<div class="topic-metadata">

**Author:** [@bjente](https://discourse.processing.org/u/bjente)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 5:44pm UTC](https://discourse.processing.org/t/how-do-i-get-pixels-to-display-one-by-one-after-a-key-is-pressed/8242 "2019-02-15T17:44:48Z")

</div>

Hello all, I’m new to processing and I’ve got a question about pixels. I want to write a program in which the user can press a key and if a key is pressed, ONE pixel of an image appears. Right now, if I press a key, the…

---

## [How to make processing press a key](https://discourse.processing.org/t/how-to-make-processing-press-a-key/8422)

<div class="topic-metadata">

**Author:** [@Supercube9307](https://discourse.processing.org/u/Supercube9307)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 4:34pm UTC](https://discourse.processing.org/t/how-to-make-processing-press-a-key/8422 "2019-02-15T16:34:36Z")

</div>

Hi all, I have had this question for a long time: Is there any way to make processing act as if the user pressed a key? Ex: When a condition is true, the script would send a signal to the computer that the “P” key had j…

---

## [Making a large image move without lag?](https://discourse.processing.org/t/making-a-large-image-move-without-lag/8406)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 8\
**Last updated:** [February 15, 2019, 3:05pm UTC](https://discourse.processing.org/t/making-a-large-image-move-without-lag/8406 "2019-02-15T15:05:14Z")

</div>

Hey! So I’m trying to implement a background to my 2d platformer. The image moves with the player, just a lot slower. However, moving the image causes a lot of lag. This is my code(simplified): void draw(){ playerCla…

---

## [Only starting the main program when necessary?](https://discourse.processing.org/t/only-starting-the-main-program-when-necessary/8397)

<div class="topic-metadata">

**Author:** [@Papergami45](https://discourse.processing.org/u/Papergami45)\
**Replies:** 4\
**Last updated:** [February 15, 2019, 1:17pm UTC](https://discourse.processing.org/t/only-starting-the-main-program-when-necessary/8397 "2019-02-15T13:17:49Z")

</div>

I’m working on a fairly complicated project involving multiple windows using G4P - the first window is the standard processing one, and the other two are a user interface window and a real time graph. In order for the p…

---

## [Objects affecting other objects transparency](https://discourse.processing.org/t/objects-affecting-other-objects-transparency/8417)

<div class="topic-metadata">

**Author:** [@ZAF](https://discourse.processing.org/u/ZAF)\
**Replies:** 2\
**Last updated:** [February 15, 2019, 10:15am UTC](https://discourse.processing.org/t/objects-affecting-other-objects-transparency/8417 "2019-02-15T10:15:30Z")

</div>

Hello there, this might be a little ambitious for my begginer/intermediate self, but i will give it a try. I am working on a Project for a brand logo, wich is just a single word. I am using it as a string array so i can…

---

## [P5js video error: Element play method raised an error asynchronously DOMException](https://discourse.processing.org/t/p5js-video-error-element-play-method-raised-an-error-asynchronously-domexception/8358)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 3\
**Last updated:** [February 15, 2019, 9:49am UTC](https://discourse.processing.org/t/p5js-video-error-element-play-method-raised-an-error-asynchronously-domexception/8358 "2019-02-15T09:49:30Z")

</div>

I have a question about an error I get when I want to have a video play in my p5js sketch: WARN: Element play method raised an error asynchronously DOMException If I press the canvas first with my mouse, the error does…

---

## [P5 simple game Question](https://discourse.processing.org/t/p5-simple-game-question/8415)

<div class="topic-metadata">

**Author:** [@helpmeimnew](https://discourse.processing.org/u/helpmeimnew)\
**Replies:** 6\
**Last updated:** [February 15, 2019, 8:06am UTC](https://discourse.processing.org/t/p5-simple-game-question/8415 "2019-02-15T08:06:51Z")

</div>

I am learning how to animate sprites and one video really helped. But now i am anxious to know how to use the mouse clicked function (i think) to stop the said animation clicked. While also having the animation change i…

---

## [How many variables in ketaiList?](https://discourse.processing.org/t/how-many-variables-in-ketailist/8366)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 8:02am UTC](https://discourse.processing.org/t/how-many-variables-in-ketailist/8366 "2019-02-15T08:02:59Z")

</div>

Hello, i made an Android app with Processing 3 in which i have a ketaiList. With this ketaiList i load different csv files anytime. My question is how many csv files can i store in the KetaList?

---

## [How to make a 2d Zoom and Pan](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 9\
**Last updated:** [February 15, 2019, 5:02am UTC](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179 "2019-02-15T05:02:40Z")

</div>

I am trying to make a zoom in and out that the circle stays in the same place but more or less squares are shown. My first assumption is to scale the rects by zoom and then translate(MX + (Zoom / 2), MY + (Zoom / 2));. …

---

## [Reliable if statement switching with sin()](https://discourse.processing.org/t/reliable-if-statement-switching-with-sin/8399)

<div class="topic-metadata">

**Author:** [@mwmw](https://discourse.processing.org/u/mwmw)\
**Replies:** 7\
**Last updated:** [February 15, 2019, 2:23am UTC](https://discourse.processing.org/t/reliable-if-statement-switching-with-sin/8399 "2019-02-15T02:23:35Z")

</div>

Hello, I’m writing a basic DMX controller which has a few simple colour animations. One animation I’m working on currently uses a sin() function to oscillate the brightness value. When the brightness is 0 I want the hue…

---

## [Running processing for android in other editor](https://discourse.processing.org/t/running-processing-for-android-in-other-editor/8413)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 0\
**Last updated:** [February 15, 2019, 1:47am UTC](https://discourse.processing.org/t/running-processing-for-android-in-other-editor/8413 "2019-02-15T01:47:21Z")

</div>

So I am trying to use processing through the atom editor rather than the default IDE it comes with. I am basically just wondering how I do this. With atom, I installed “processing” which basically just runs the command p…

---

## [Installing a new test project failed](https://discourse.processing.org/t/installing-a-new-test-project-failed/8405)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 0\
**Last updated:** [February 14, 2019, 6:53pm UTC](https://discourse.processing.org/t/installing-a-new-test-project-failed/8405 "2019-02-14T18:53:12Z")

</div>

The build is successful, but installing it on my android device is failing. I get the following error: C:\\Users\\xxxxx\\Documents\\Processing\\android\\sdk\\platform-tools\\adb.exe -s V4QBB18918150321 install -r C:\\Users\\xxxxx…

---

## [Unsigned Bytes from Arduino Misbehaving](https://discourse.processing.org/t/unsigned-bytes-from-arduino-misbehaving/8318)

<div class="topic-metadata">

**Author:** [@TheGankerer](https://discourse.processing.org/u/TheGankerer)\
**Replies:** 6\
**Last updated:** [February 14, 2019, 2:42pm UTC](https://discourse.processing.org/t/unsigned-bytes-from-arduino-misbehaving/8318 "2019-02-14T14:42:08Z")

</div>

Hello everyone, I’m having some issues with data I’m reading from an Arduino Uno. Essentially I’m using the Arduino as a DAQ and sending over 4 analog inputs over the Serial. The first two inputs (A0 and A1) are single…

---

## [How Big is Processing?](https://discourse.processing.org/t/how-big-is-processing/8149)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 5\
**Last updated:** [February 14, 2019, 1:01pm UTC](https://discourse.processing.org/t/how-big-is-processing/8149 "2019-02-14T13:01:21Z")

</div>

Hi Preparing the PCD @ Reunion I would like to give an idea to the attendees of how big Processing has become Anyone know where to find those info ? And ther answers to those question ? … UPDATED Since some of you c…

---

## [Human-Form 3D Mocap - Graphics Code](https://discourse.processing.org/t/human-form-3d-mocap-graphics-code/8392)

<div class="topic-metadata">

**Author:** [@L11L](https://discourse.processing.org/u/L11L)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 1:40pm UTC](https://discourse.processing.org/t/human-form-3d-mocap-graphics-code/8392 "2019-02-14T13:40:11Z")

</div>

I started using Processing three days ago. I am using Processing to capture the motion of a MPU6050-driven IMU sensor. I need a human form (or something that resembles human) to represent the data output of the IMU senso…

---

## [\[SOLVED\] Py.processing bullet and enemy collision](https://discourse.processing.org/t/solved-py-processing-bullet-and-enemy-collision/8327)

<div class="topic-metadata">

**Author:** [@warsoldier011](https://discourse.processing.org/u/warsoldier011)\
**Replies:** 7\
**Last updated:** [February 14, 2019, 12:54pm UTC](https://discourse.processing.org/t/solved-py-processing-bullet-and-enemy-collision/8327 "2019-02-14T12:54:45Z")

</div>

Hello there I am currently dealing with a bullet and enemy collision problem. I’m trying to kill both the enemy and the bullet and remove them from the screen, when they intersect each other. It works once and then I rec…

---

## [White screen when running ketai code](https://discourse.processing.org/t/white-screen-when-running-ketai-code/8386)

<div class="topic-metadata">

**Author:** [@lf.parra](https://discourse.processing.org/u/lf.parra)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 11:14am UTC](https://discourse.processing.org/t/white-screen-when-running-ketai-code/8386 "2019-02-14T11:14:45Z")

</div>

import ketai.sensors.\*; KetaiSensor sensor; sensor = new KetaiSensor(this); println(sensor.list()); Hello. I think this is a very simple code, but it still does not work. Phone (Android 5.1.) is recognized and app is op…

---

## [OscP5 on Android mode not detect IP correctly](https://discourse.processing.org/t/oscp5-on-android-mode-not-detect-ip-correctly/8343)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 8:55am UTC](https://discourse.processing.org/t/oscp5-on-android-mode-not-detect-ip-correctly/8343 "2019-02-14T08:55:24Z")

</div>

Hi people, y have a problem with OscP5 in Android mode… If i send data from phone to PC all wiil works fine :slight\_smile: But when i send data from PC to Phone… data never arrives… in PC the initialization of OscP5 d…

---

## [I don't know how to communicate with internet](https://discourse.processing.org/t/i-dont-know-how-to-communicate-with-internet/8381)

<div class="topic-metadata">

**Author:** [@AngelsApple](https://discourse.processing.org/u/AngelsApple)\
**Replies:** 4\
**Last updated:** [February 14, 2019, 8:14am UTC](https://discourse.processing.org/t/i-dont-know-how-to-communicate-with-internet/8381 "2019-02-14T08:14:56Z")

</div>

I’d like to write a code about data scrapping from internet I set the target as downloading my facebook images and friends list, but It seems too hard for me So now I’m trying to make easy sample that download google L…

---

## [Help on mirroring an image](https://discourse.processing.org/t/help-on-mirroring-an-image/8387)

<div class="topic-metadata">

**Author:** [@Plum](https://discourse.processing.org/u/Plum)\
**Replies:** 4\
**Last updated:** [February 14, 2019, 6:07am UTC](https://discourse.processing.org/t/help-on-mirroring-an-image/8387 "2019-02-14T06:07:20Z")

</div>

So I am currently doing some school assignments which involves me mirroring an image “pixel by pixel”. I got an example on how to flip the image, however i’m struggling to figure out how to mirror it. Here is the code t…

---

## [How to capture an image after contour.draw();?](https://discourse.processing.org/t/how-to-capture-an-image-after-contour-draw/8389)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 5:49am UTC](https://discourse.processing.org/t/how-to-capture-an-image-after-contour-draw/8389 "2019-02-14T05:49:29Z")

</div>

I am using the “FindContours” example from the OpenCV library. All works well, but I would like to capture an image after the countours have been drawn. (For further analysis of the the contours.) So I tried: con…

---

## [Incrementing/Decrementing Color Brightness](https://discourse.processing.org/t/incrementing-decrementing-color-brightness/8378)

<div class="topic-metadata">

**Author:** [@Diamaru](https://discourse.processing.org/u/Diamaru)\
**Replies:** 2\
**Last updated:** [February 14, 2019, 1:29am UTC](https://discourse.processing.org/t/incrementing-decrementing-color-brightness/8378 "2019-02-14T01:29:53Z")

</div>

Hello all, I am working on developing a drawing tool for one of my classes and I am having trouble with a specific part of the code. The color variable “x” should increment by 10 when the UP key is pressed and decrement …

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

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