# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=239

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

**Page:** 240

---

## [Drawn object stops moving away?](https://discourse.processing.org/t/drawn-object-stops-moving-away/17493)

<div class="topic-metadata">

**Author:** [@jedslater](https://discourse.processing.org/u/jedslater)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 3:11am UTC](https://discourse.processing.org/t/drawn-object-stops-moving-away/17493 "2020-02-02T03:11:01Z")

</div>

Hi there! I’ve been working on some sketches using the contours of a 3D object to draw onto the canvas. In order to give the appearance of the object (in this case a box) moving into the distance, I increment the value o…

---

## [saveFrame() doesn't match real time](https://discourse.processing.org/t/saveframe-doesnt-match-real-time/17397)

<div class="topic-metadata">

**Author:** [@BrokenCode](https://discourse.processing.org/u/BrokenCode)\
**Replies:** 2\
**Last updated:** [February 1, 2020, 9:02pm UTC](https://discourse.processing.org/t/saveframe-doesnt-match-real-time/17397 "2020-02-01T21:02:14Z")

</div>

Hello everyone, I have a very tricky question here. Why saveFrame() doesn’t write all the frames as it should? I mean, if I have a grid of 28 tiles (println(points.size());), and I wait 1 second to fill each tile: if (…

---

## [Problem making the ticks fit on the grid](https://discourse.processing.org/t/problem-making-the-ticks-fit-on-the-grid/17501)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 7\
**Last updated:** [February 2, 2020, 12:24am UTC](https://discourse.processing.org/t/problem-making-the-ticks-fit-on-the-grid/17501 "2020-02-02T00:24:41Z")

</div>

Regards, I have problems with ticking shoes on the grid. For example using the following code. public void setup(){ size(1000, 600, JAVA2D); background(17,34,51); // Color de fondo principal rect(-1, 95,…

---

## [Super simple code. What am I missing?](https://discourse.processing.org/t/super-simple-code-what-am-i-missing/17342)

<div class="topic-metadata">

**Author:** [@Tomfoolery](https://discourse.processing.org/u/Tomfoolery)\
**Replies:** 4\
**Last updated:** [February 1, 2020, 10:13pm UTC](https://discourse.processing.org/t/super-simple-code-what-am-i-missing/17342 "2020-02-01T22:13:59Z")

</div>

I’ll probably kick myself when somebody answers this but I just can’t figure out what’s wrong with my code. All I want is to increase the red value by .01 per frame. When I run it, the value doesn’t change at all. If I r…

---

## [Issues with loading video / movie](https://discourse.processing.org/t/issues-with-loading-video-movie/17498)

<div class="topic-metadata">

**Author:** [@amprocessing](https://discourse.processing.org/u/amprocessing)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 6:58pm UTC](https://discourse.processing.org/t/issues-with-loading-video-movie/17498 "2020-02-01T18:58:35Z")

</div>

im trying to add and load a video in my code. however its not working, and I don’t know what the issue is. Can someone help me import processing.video.\*; float spd = 1.0; Movie movie; void setup() { size(800…

---

## [Sync server with client](https://discourse.processing.org/t/sync-server-with-client/17500)

<div class="topic-metadata">

**Author:** [@bento](https://discourse.processing.org/u/bento)\
**Replies:** 0\
**Last updated:** [February 1, 2020, 4:16pm UTC](https://discourse.processing.org/t/sync-server-with-client/17500 "2020-02-01T16:16:16Z")

</div>

Hello again, I am still getting problems with my server and client program, this time I can’t sync the server with the client. The client just hears the server and prints it. Here is the code import processing.net.\*; …

---

## [Short film created solely on Processing](https://discourse.processing.org/t/short-film-created-solely-on-processing/15098)

<div class="topic-metadata">

**Author:** [@ilianfilm](https://discourse.processing.org/u/ilianfilm)\
**Replies:** 13\
**Last updated:** [February 1, 2020, 9:54am UTC](https://discourse.processing.org/t/short-film-created-solely-on-processing/15098 "2020-02-01T09:54:18Z")

</div>

Hello everybody, I’m new to this forum and I’m new to Processing in general. I wanted to ask if anybody is aware of short films created solely on Processing? I know many people have created clips with different shapes…

---

## [Ideas to create elastic line animation - \[SOLVED\]](https://discourse.processing.org/t/ideas-to-create-elastic-line-animation-solved/17394)

<div class="topic-metadata">

**Author:** [@adaptinnovative](https://discourse.processing.org/u/adaptinnovative)\
**Replies:** 3\
**Last updated:** [February 1, 2020, 3:07am UTC](https://discourse.processing.org/t/ideas-to-create-elastic-line-animation-solved/17394 "2020-02-01T03:07:04Z")

</div>

I have drawn a horizontal line using points. I want to split the points in half so the line separate. Then the centre point rises vertically straight up the y-axis and the last point stays on the horizontal axis of x. Ho…

---

## [Client got end-of-stream](https://discourse.processing.org/t/client-got-end-of-stream/17486)

<div class="topic-metadata">

**Author:** [@bento](https://discourse.processing.org/u/bento)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 2:16am UTC](https://discourse.processing.org/t/client-got-end-of-stream/17486 "2020-02-01T02:16:40Z")

</div>

I am trying to create a new processing net sketch and I always get this error Client got end-of-stream. I am using 2 sketches the client and the server the client is import processing.net.\*; Client cln; void setup(…

---

## [Display information from Arduino Serial Monitor](https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439)

<div class="topic-metadata">

**Author:** [@jaxx2009](https://discourse.processing.org/u/jaxx2009)\
**Replies:** 2\
**Last updated:** [January 31, 2020, 9:07pm UTC](https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439 "2020-01-31T21:07:58Z")

</div>

From what I understand, you can’t have processing functioning at 100% while the Arduino serial monitor is open. The Arduino serial monitor has some information that I need to be able to see written to it, is there a way …

---

## [Creating a hit box?](https://discourse.processing.org/t/creating-a-hit-box/17469)

<div class="topic-metadata">

**Author:** [@lupos](https://discourse.processing.org/u/lupos)\
**Replies:** 1\
**Last updated:** [January 31, 2020, 1:41pm UTC](https://discourse.processing.org/t/creating-a-hit-box/17469 "2020-01-31T13:41:44Z")

</div>

I am having trouble with hit boxes, the enemy only stops when it gets to s specific point not when it touches the hole enemy and I can figure out how float X,Y,Xc,Yc,Xm,Ym,Xl,Xr,Yt,Yb; float H1,H2,H3,H1x,H1y,Ev; floa…

---

## [How to move an image including horizontal and vertical inversion](https://discourse.processing.org/t/how-to-move-an-image-including-horizontal-and-vertical-inversion/17473)

<div class="topic-metadata">

**Author:** [@all](https://discourse.processing.org/u/all)\
**Replies:** 3\
**Last updated:** [January 31, 2020, 3:31pm UTC](https://discourse.processing.org/t/how-to-move-an-image-including-horizontal-and-vertical-inversion/17473 "2020-01-31T15:31:33Z")

</div>

Hello, My aim is to get the same behavior than line(x1, y1, x2, y2) but with a PNG image image(img, x1, y1, x2, y2) using the imageMode(CORNERS); My PNG image have a transparent background and the line go from the uppe…

---

## [Which Dev environments are people using / recommending?](https://discourse.processing.org/t/which-dev-environments-are-people-using-recommending/16998)

<div class="topic-metadata">

**Author:** [@Psteely](https://discourse.processing.org/u/Psteely)\
**Replies:** 4\
**Last updated:** [January 31, 2020, 1:45pm UTC](https://discourse.processing.org/t/which-dev-environments-are-people-using-recommending/16998 "2020-01-31T13:45:52Z")

</div>

Whilst Processing has been / is proving a very powerful tool for learning java and coding, I have found references to other Dev environments such as Eclipse and IntelliJ. I have had a play around with both of these and …

---

## [Pixel Sorting with threshold](https://discourse.processing.org/t/pixel-sorting-with-threshold/17462)

<div class="topic-metadata">

**Author:** [@Alexx](https://discourse.processing.org/u/Alexx)\
**Replies:** 1\
**Last updated:** [January 31, 2020, 8:39am UTC](https://discourse.processing.org/t/pixel-sorting-with-threshold/17462 "2020-01-31T08:39:26Z")

</div>

Hi. I’m new to Processing. Hope someone is able to help me. In my sketch the pixel sorting work on width, but I I need it to be vertical non horizontal … how? Thank you. This is the code: int mode = 0; int threshold…

---

## [Creating an enemy class](https://discourse.processing.org/t/creating-an-enemy-class/17223)

<div class="topic-metadata">

**Author:** [@lupos](https://discourse.processing.org/u/lupos)\
**Replies:** 6\
**Last updated:** [January 30, 2020, 10:53pm UTC](https://discourse.processing.org/t/creating-an-enemy-class/17223 "2020-01-30T22:53:12Z")

</div>

I am working on a school project and I am having trouble creating multiple enemies form one class. when I create an two enemies from the same class and when one gets hit they all disappear can someone help please. here …

---

## [How do I make a Stepped Grayscale gradation in grid arrays](https://discourse.processing.org/t/how-do-i-make-a-stepped-grayscale-gradation-in-grid-arrays/17437)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 7\
**Last updated:** [January 30, 2020, 10:08pm UTC](https://discourse.processing.org/t/how-do-i-make-a-stepped-grayscale-gradation-in-grid-arrays/17437 "2020-01-30T22:08:16Z")

</div>

I have 2 examples of attempts to figure out how to implement a gradation of grays to various grid array sketches. The first sketch is a bar grid with a single row of 7 cells. The second sketch is a 9 square grid with…

---

## [Expecting EOF, found if. idk how to fix it](https://discourse.processing.org/t/expecting-eof-found-if-idk-how-to-fix-it/17468)

<div class="topic-metadata">

**Author:** [@prototype\_31](https://discourse.processing.org/u/prototype_31)\
**Replies:** 1\
**Last updated:** [January 30, 2020, 9:34pm UTC](https://discourse.processing.org/t/expecting-eof-found-if-idk-how-to-fix-it/17468 "2020-01-30T21:34:33Z")

</div>

void setup(){ size(2000,2000); background(0); } void keyPressed() { //1st planet if (key == 'b' || key == 'B') { if (keyPressed) stroke(0); fill(0); } else { stroke(#18B733); fill(#18B…

---

## [Thinking Object Oriented](https://discourse.processing.org/t/thinking-object-oriented/17448)

<div class="topic-metadata">

**Author:** [@DeidaraLP](https://discourse.processing.org/u/DeidaraLP)\
**Replies:** 4\
**Last updated:** [January 30, 2020, 5:16pm UTC](https://discourse.processing.org/t/thinking-object-oriented/17448 "2020-01-30T17:16:07Z")

</div>

Hey folks. So for a school assignment, we had to create some kind of game with at least two self-defined classes while using object-oriented programming. However, I’m finding it quite hard to implement this OOP way of t…

---

## [Rotating Canvas](https://discourse.processing.org/t/rotating-canvas/17108)

<div class="topic-metadata">

**Author:** [@Interkinactive](https://discourse.processing.org/u/Interkinactive)\
**Replies:** 9\
**Last updated:** [January 30, 2020, 3:48pm UTC](https://discourse.processing.org/t/rotating-canvas/17108 "2020-01-30T15:48:27Z")

</div>

Hi there, I’m stuck with this problem: I want to draw something on a rotating canvas. Working with PGraphics and saving my image as PImage for buffer. The canvas is rotating, but the coordinates of the mousepoint are ro…

---

## [Osc Messages from Processing to SuperCollider](https://discourse.processing.org/t/osc-messages-from-processing-to-supercollider/17441)

<div class="topic-metadata">

**Author:** [@Alexx](https://discourse.processing.org/u/Alexx)\
**Replies:** 5\
**Last updated:** [January 30, 2020, 1:44pm UTC](https://discourse.processing.org/t/osc-messages-from-processing-to-supercollider/17441 "2020-01-30T13:44:17Z")

</div>

HI! How can I send two Osc Messages from Processing to SuperCollider? So far I have only managed to connect one sound, but but I’m missing two more sounds. How can I do that? In void draw() I need to have two/three “/…

---

## [SOLVED Draw\_Nodes Export to PDF has too many duplicated paths](https://discourse.processing.org/t/solved-draw-nodes-export-to-pdf-has-too-many-duplicated-paths/17444)

<div class="topic-metadata">

**Author:** [@new](https://discourse.processing.org/u/new)\
**Replies:** 0\
**Last updated:** [January 30, 2020, 12:01pm UTC](https://discourse.processing.org/t/solved-draw-nodes-export-to-pdf-has-too-many-duplicated-paths/17444 "2020-01-30T12:01:16Z")

</div>

Hi everyone, I am pretty new to processing and have haphazardly made my way through some code to get a graphic output for a poster I am making. The code comes from multiple sources so I am sure there is a lot of unneces…

---

## [2 threads Processing in Java IDE](https://discourse.processing.org/t/2-threads-processing-in-java-ide/17379)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 9\
**Last updated:** [January 30, 2020, 10:06am UTC](https://discourse.processing.org/t/2-threads-processing-in-java-ide/17379 "2020-01-30T10:06:16Z")

</div>

In the course of rebuilding a big Processing project in a Java IDE (IntelliJ) on Windows 10 x64, Processing 3.5.4, I try to translate the old solution for running two Processing threads, one in 2D, one in 3D on differen…

---

## [Some problem with the code execution screen](https://discourse.processing.org/t/some-problem-with-the-code-execution-screen/17102)

<div class="topic-metadata">

**Author:** [@leonardorocha](https://discourse.processing.org/u/leonardorocha)\
**Replies:** 4\
**Last updated:** [January 30, 2020, 1:17am UTC](https://discourse.processing.org/t/some-problem-with-the-code-execution-screen/17102 "2020-01-30T01:17:16Z")

</div>

Hi guys, I having some problems to execute a code. When I click on button Run nothing happens. Someone knows what is going on?

---

## [Problem of display in a " for" loop](https://discourse.processing.org/t/problem-of-display-in-a-for-loop/17422)

<div class="topic-metadata">

**Author:** [@cypseb](https://discourse.processing.org/u/cypseb)\
**Replies:** 6\
**Last updated:** [January 29, 2020, 8:15pm UTC](https://discourse.processing.org/t/problem-of-display-in-a-for-loop/17422 "2020-01-29T20:15:12Z")

</div>

Hello everybody i am not a beguiner in programing, but i am a beguinner in processing I try to move a text in a FOR loop but the drawing is not refresh, only at the end of the loop i try to add redraw() in my loop bu…

---

## [Vertex shader displacement](https://discourse.processing.org/t/vertex-shader-displacement/17415)

<div class="topic-metadata">

**Author:** [@Geo\_Pi](https://discourse.processing.org/u/Geo_Pi)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 3:26pm UTC](https://discourse.processing.org/t/vertex-shader-displacement/17415 "2020-01-29T15:26:19Z")

</div>

Hi, I’m in the process of learning OpenGL & GLSL. I’m trying to port to processing this THREE.js tutorial on vertex displacement shader https://www.clicktorelease.com/blog/vertex-displacement-noise-3d-webgl-glsl-three…

---

## [Arduino, piezo sensors and Processing animations](https://discourse.processing.org/t/arduino-piezo-sensors-and-processing-animations/17255)

<div class="topic-metadata">

**Author:** [@EasyJu](https://discourse.processing.org/u/EasyJu)\
**Replies:** 5\
**Last updated:** [January 29, 2020, 1:24pm UTC](https://discourse.processing.org/t/arduino-piezo-sensors-and-processing-animations/17255 "2020-01-29T13:24:15Z")

</div>

Hi everyone, (french version below) I’m working on a project with Arduino, piezo sensors and Processing. I would like to have an animation played on Processing for each time a sensor is activated (an animation for a se…

---

## [Video switch not on Loop](https://discourse.processing.org/t/video-switch-not-on-loop/17407)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 11:03am UTC](https://discourse.processing.org/t/video-switch-not-on-loop/17407 "2020-01-29T11:03:03Z")

</div>

I compiled this code from some sources and it works (what is a big deal) but my video stops after it plays and I would like it to play on loop. Tried loop(); function but didn’t work. Any suggestions? import processing.…

---

## [How to include G4P controls with saveFrame](https://discourse.processing.org/t/how-to-include-g4p-controls-with-saveframe/17233)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 25\
**Last updated:** [January 29, 2020, 10:59am UTC](https://discourse.processing.org/t/how-to-include-g4p-controls-with-saveframe/17233 "2020-01-29T10:59:17Z")

</div>

When I use the “saveFrame” function it does take a screenshot of the sketch but does not take all its elements. For example, this first image is a screenshot taken with the Windows tool: And this one is a screenshot …

---

## [2D grid array question](https://discourse.processing.org/t/2d-grid-array-question/17189)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 19\
**Last updated:** [January 28, 2020, 11:16pm UTC](https://discourse.processing.org/t/2d-grid-array-question/17189 "2020-01-28T23:16:43Z")

</div>

For the past few days have been trying to better understand grids and arrays. After reading D Shiffman tutorial on 2D grid arrays I am now trying to play with that code a bit. I would like the grid(s) to appear twice,…

---

## [How can I run a for loop using a function?](https://discourse.processing.org/t/how-can-i-run-a-for-loop-using-a-function/17403)

<div class="topic-metadata">

**Author:** [@Daniele92](https://discourse.processing.org/u/Daniele92)\
**Replies:** 4\
**Last updated:** [January 28, 2020, 11:01pm UTC](https://discourse.processing.org/t/how-can-i-run-a-for-loop-using-a-function/17403 "2020-01-28T23:01:40Z")

</div>

Hello to everyone. Can someone explain to me , How can I run a : for( int i=100; i\>0; i=i-10 ) { ellipse(100,100,i,i); } Using a function?! Thank you , i DON’t want a code but need to understand for classroom activit…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=238)

[Next page](https://discourse.processing.org/c/processing/6.md?page=240)
