# Latest

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

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

**Page:** 597

---

## [Help with following code](https://discourse.processing.org/t/help-with-following-code/2448)

<div class="topic-metadata">

**Author:** [@KittyCatGamer123](https://discourse.processing.org/u/KittyCatGamer123)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 7:53pm UTC](https://discourse.processing.org/t/help-with-following-code/2448 "2018-08-10T19:53:50Z")

</div>

I’m hoping anyone here could help me with this code. String gameIntro; void setup() { size(800, 600); String save = loadStrings(“save1.txt”); println(save); gameIntro = save\[0\]; } void draw() { if (gameIntro ==…

---

## [Data visualization with own images](https://discourse.processing.org/t/data-visualization-with-own-images/2452)

<div class="topic-metadata">

**Author:** [@wrdy28](https://discourse.processing.org/u/wrdy28)\
**Replies:** 20\
**Last updated:** [August 10, 2018, 7:51pm UTC](https://discourse.processing.org/t/data-visualization-with-own-images/2452 "2018-08-10T19:51:29Z")

</div>

Dear community! Maybe you could help me? So I have 5 different emotions that have values from 0 till 100 percent. I would like to make a vizualisation for this data, like: If “EMOTION” from 0 till 10 percent - image …

---

## [Direct orthonormed system](https://discourse.processing.org/t/direct-orthonormed-system/2529)

<div class="topic-metadata">

**Author:** [@theo](https://discourse.processing.org/u/theo)\
**Replies:** 5\
**Last updated:** [August 10, 2018, 6:48pm UTC](https://discourse.processing.org/t/direct-orthonormed-system/2529 "2018-08-10T18:48:30Z")

</div>

Hello, By default the origin is in the top left corner, the x axis is pointing on the right and the y axis down. Is it possible to get a “common” coordinate system (like the one usually used in math: origin bottom righ…

---

## [Return function from float\[\] array](https://discourse.processing.org/t/return-function-from-float-array/2519)

<div class="topic-metadata">

**Author:** [@Olygamy](https://discourse.processing.org/u/Olygamy)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 4:27pm UTC](https://discourse.processing.org/t/return-function-from-float-array/2519 "2018-08-10T16:27:36Z")

</div>

Hi there, I am stuck on a return function. I have a triangle, each corner is defined by pair of float \[\] arrays: float\[\] xArray = new float\[3\]; float\[\] yArray = new float\[3\] - all in the class to contstruct the tria…

---

## [Flow of my program](https://discourse.processing.org/t/flow-of-my-program/2506)

<div class="topic-metadata">

**Author:** [@Luke](https://discourse.processing.org/u/Luke)\
**Replies:** 18\
**Last updated:** [August 10, 2018, 11:38am UTC](https://discourse.processing.org/t/flow-of-my-program/2506 "2018-08-10T11:38:28Z")

</div>

Hey, so I am currently creating an interactive story with different scenes. Each scene has been created as an object. However, I am struggling with the flow of the program, I am currently using different keys to change s…

---

## [Beyond The Processing IDE](https://discourse.processing.org/t/beyond-the-processing-ide/2266)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 5\
**Last updated:** [August 10, 2018, 9:35am UTC](https://discourse.processing.org/t/beyond-the-processing-ide/2266 "2018-08-10T09:35:17Z")

</div>

Following a recent post by Jeremy Laviole on the Reality Tech Forum, I was intrigued to see if I could use the latest apache-netbeans to run processing sketches adding processing jars as maven dependencies. Here’s the re…

---

## [Reflections and console](https://discourse.processing.org/t/reflections-and-console/2525)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 9:25am UTC](https://discourse.processing.org/t/reflections-and-console/2525 "2018-08-10T09:25:51Z")

</div>

Hello, I’ve made this in c# before and I’d like to know, how to do this in Java. I have a set of commands with arguments i.e. //Command: "set var \<string:name\> \<int:value\> \<bool:log\>" string\[\] commandName = new string…

---

## [Dilation of line or object](https://discourse.processing.org/t/dilation-of-line-or-object/2520)

<div class="topic-metadata">

**Author:** [@rebin](https://discourse.processing.org/u/rebin)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 5:11am UTC](https://discourse.processing.org/t/dilation-of-line-or-object/2520 "2018-08-10T05:11:39Z")

</div>

Let say we have a line or a shape I need to dilate that shape. Do we have any way to do this in processing? for example, I have this code: void setup(){ size(500,500); background(20); } float theta=0; void draw(){…

---

## [Converted Processing to P5.js but its still not working](https://discourse.processing.org/t/converted-processing-to-p5-js-but-its-still-not-working/2521)

<div class="topic-metadata">

**Author:** [@dnganeko](https://discourse.processing.org/u/dnganeko)\
**Replies:** 5\
**Last updated:** [August 10, 2018, 4:19am UTC](https://discourse.processing.org/t/converted-processing-to-p5-js-but-its-still-not-working/2521 "2018-08-10T04:19:26Z")

</div>

Hi there, I have tried to convert these two sketches to P5.js but it still doesn’t seem to work. I’m new to it all so can figure out what else needs to be changed. Can someone please help. :slight\_smile: Sketch 1. v…

---

## [Array of keys. Movement](https://discourse.processing.org/t/array-of-keys-movement/2518)

<div class="topic-metadata">

**Author:** [@Tymek](https://discourse.processing.org/u/Tymek)\
**Replies:** 2\
**Last updated:** [August 9, 2018, 11:12pm UTC](https://discourse.processing.org/t/array-of-keys-movement/2518 "2018-08-09T23:12:35Z")

</div>

Hello, what is wrong with this code? Why player (black square) wont move in 4 directions, but only in 2. Postac postac = new Postac(); boolean\[\] chodzenie = new boolean\[4\]; //UP DOWN LEFT RIGHT /\* …

---

## [Save 3d array to file inside Android](https://discourse.processing.org/t/save-3d-array-to-file-inside-android/1878)

<div class="topic-metadata">

**Author:** [@chanof](https://discourse.processing.org/u/chanof)\
**Replies:** 5\
**Last updated:** [August 9, 2018, 10:37pm UTC](https://discourse.processing.org/t/save-3d-array-to-file-inside-android/1878 "2018-08-09T22:37:16Z")

</div>

Hi guys, I have a Boolean 3d array, I would like to save it on file and then be able to reload it inside the 3d array. I try to not use any library for this scope. The question is: after i produce a unique sequence of…

---

## [Display multiple webcam captures](https://discourse.processing.org/t/display-multiple-webcam-captures/2485)

<div class="topic-metadata">

**Author:** [@aliluyabt](https://discourse.processing.org/u/aliluyabt)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 6:34pm UTC](https://discourse.processing.org/t/display-multiple-webcam-captures/2485 "2018-08-08T18:34:47Z")

</div>

Hi, is there a way to display two different webcam captures in one page?? Thanks a lot for a hint! Tried this one but did not work:

---

## [\[SOLVED\] Network library: issues with clientEvent](https://discourse.processing.org/t/solved-network-library-issues-with-clientevent/2007)

<div class="topic-metadata">

**Author:** [@Bottom](https://discourse.processing.org/u/Bottom)\
**Replies:** 4\
**Last updated:** [July 28, 2018, 7:41pm UTC](https://discourse.processing.org/t/solved-network-library-issues-with-clientevent/2007 "2018-07-28T19:41:39Z")

</div>

I have the following code inside my program (the entire sketch is quite large). Inside the ClientEvent function i ask if the received input is null. However, when i run the code i get the following output in my console: …

---

## [Program not running when exported](https://discourse.processing.org/t/program-not-running-when-exported/2515)

<div class="topic-metadata">

**Author:** [@DogeMastr](https://discourse.processing.org/u/DogeMastr)\
**Replies:** 4\
**Last updated:** [August 9, 2018, 4:41pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515 "2018-08-09T16:41:52Z")

</div>

Heres my code When I open the files in processing the program works as intended everything is good, but when I export it the program, it doesn’t work at all I don’t know if this is just for me but if I were to guess it…

---

## [My for-loop doesn't filter, it either cuts all or none](https://discourse.processing.org/t/my-for-loop-doesnt-filter-it-either-cuts-all-or-none/2503)

<div class="topic-metadata">

**Author:** [@MariekeLaenen](https://discourse.processing.org/u/MariekeLaenen)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 4:15pm UTC](https://discourse.processing.org/t/my-for-loop-doesnt-filter-it-either-cuts-all-or-none/2503 "2018-08-09T16:15:29Z")

</div>

Hi I’m trying to filter through an arraylist (rectangles) by comparing the locations of the objects in it with the locations of the objects of another arraylist (windows). The goal eventually is to make different kinds…

---

## [Converting .pde to p5.js](https://discourse.processing.org/t/converting-pde-to-p5-js/2502)

<div class="topic-metadata">

**Author:** [@dnganeko](https://discourse.processing.org/u/dnganeko)\
**Replies:** 4\
**Last updated:** [August 9, 2018, 2:28pm UTC](https://discourse.processing.org/t/converting-pde-to-p5-js/2502 "2018-08-09T14:28:35Z")

</div>

Hi there, Can someone please help me… I’m trying to convert a .pde sketch to p5.js. this is what I have so far but its still now working… Can someone please help :slight\_smile: String message = "dddddddddddddddddddd…

---

## [2 sided transparency](https://discourse.processing.org/t/2-sided-transparency/2471)

<div class="topic-metadata">

**Author:** [@filarius](https://discourse.processing.org/u/filarius)\
**Replies:** 8\
**Last updated:** [August 9, 2018, 10:56am UTC](https://discourse.processing.org/t/2-sided-transparency/2471 "2018-08-09T10:56:55Z")

</div>

I want to make dynamic visualization where I need to use cube made of as many as possible smaller cubes with controlled color and opacity. It will be somekind of voxel cloud. I’m new to Processing but I have some knowl…

---

## [About scrollable list: can I set a value back to it?](https://discourse.processing.org/t/about-scrollable-list-can-i-set-a-value-back-to-it/2504)

<div class="topic-metadata">

**Author:** [@vapeur](https://discourse.processing.org/u/vapeur)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 7:57am UTC](https://discourse.processing.org/t/about-scrollable-list-can-i-set-a-value-back-to-it/2504 "2018-08-09T07:57:21Z")

</div>

Hi there, most of the times I use mouse click on scrollable list to choose whatever parameters I want. But can I set it to a value? like when I press key ‘A’ or ‘a’, the scrollable list will automatically changes to A, e…

---

## [Processing can't run No window pops up, no response at all](https://discourse.processing.org/t/processing-cant-run-no-window-pops-up-no-response-at-all/2491)

<div class="topic-metadata">

**Author:** [@kmimax](https://discourse.processing.org/u/kmimax)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 6:29am UTC](https://discourse.processing.org/t/processing-cant-run-no-window-pops-up-no-response-at-all/2491 "2018-08-09T06:29:17Z")

</div>

I’m using Processing 3.4，I get to press the “Get Started” button in the pop-up on the startup. And now,I can’t run any code in Processing. It gives me no error.Troubleshooting, i tried the things that are listed on, tot…

---

## [Is it possible to open/close OSC in processing?](https://discourse.processing.org/t/is-it-possible-to-open-close-osc-in-processing/2405)

<div class="topic-metadata">

**Author:** [@vapeur](https://discourse.processing.org/u/vapeur)\
**Replies:** 4\
**Last updated:** [August 9, 2018, 5:54am UTC](https://discourse.processing.org/t/is-it-possible-to-open-close-osc-in-processing/2405 "2018-08-09T05:54:14Z")

</div>

Hi there, I am using oscP5 library to communicate from grasshopper to processing, but when the data is sent and saved, I’d like to close (and probably reopen) the OSC channel. is it possible? I tried with mousePressed() …

---

## [How to reset a sketch after a certain amount of time?](https://discourse.processing.org/t/how-to-reset-a-sketch-after-a-certain-amount-of-time/2499)

<div class="topic-metadata">

**Author:** [@stonesyy](https://discourse.processing.org/u/stonesyy)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 4:10am UTC](https://discourse.processing.org/t/how-to-reset-a-sketch-after-a-certain-amount-of-time/2499 "2018-08-09T04:10:07Z")

</div>

Hello everyone, I’ve been trying to get a sketch to reset after one minute using millis in the code but i’m having a hard time figuring it out. Does anyone have any ideas? void setup() { zoom = 6; ss = int(1280/zoo…

---

## [Rotate multiple geometric shape together](https://discourse.processing.org/t/rotate-multiple-geometric-shape-together/2487)

<div class="topic-metadata">

**Author:** [@yanfqc](https://discourse.processing.org/u/yanfqc)\
**Replies:** 3\
**Last updated:** [August 8, 2018, 11:07pm UTC](https://discourse.processing.org/t/rotate-multiple-geometric-shape-together/2487 "2018-08-08T23:07:51Z")

</div>

Hi! Lets say i layered a triangle over an ellipse to make a fish doodle. I have a class named Fish and a function to display it on screen. If i want to rotate that fish so that it points toward the direction it’s going,…

---

## [Run library PixelFlow on Android](https://discourse.processing.org/t/run-library-pixelflow-on-android/2497)

<div class="topic-metadata">

**Author:** [@Mixitsoft](https://discourse.processing.org/u/Mixitsoft)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 11:07pm UTC](https://discourse.processing.org/t/run-library-pixelflow-on-android/2497 "2018-08-08T23:07:28Z")

</div>

Can anyone run this project to android? https://github.com/diwi/PixelFlow/tree/master/examples/Fluid2D/Fluid\_WindTunnel I spent a weeks to find solution but nothing. after remove unuse function (eg. mouseButton) i got…

---

## [Recognizing two keyboard inputs at the same time](https://discourse.processing.org/t/recognizing-two-keyboard-inputs-at-the-same-time/2389)

<div class="topic-metadata">

**Author:** [@Ryan\_Stekken](https://discourse.processing.org/u/Ryan_Stekken)\
**Replies:** 2\
**Last updated:** [August 8, 2018, 11:06pm UTC](https://discourse.processing.org/t/recognizing-two-keyboard-inputs-at-the-same-time/2389 "2018-08-08T23:06:50Z")

</div>

Hi and sorry for my bad english first. I’m creating a multiplayer-mode for my little pong game at the moment, but when both players try to move their “character”, only one of them reacts. my pretty simple code: void d…

---

## [How to receive user input in processing](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449)

<div class="topic-metadata">

**Author:** [@Danny\_Posada](https://discourse.processing.org/u/Danny_Posada)\
**Replies:** 4\
**Last updated:** [August 8, 2018, 10:23pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449 "2018-08-08T22:23:23Z")

</div>

Recently I’ve been trying to find a way to have a user input some information into the program without having to alter the source code, but I have yet to find a solid answer online. I use java, so i’m not sure if that’s …

---

## [Error: Failed to load resource: net::ERR\_CONNECTION\_REFUSED](https://discourse.processing.org/t/error-failed-to-load-resource-net-err-connection-refused/2486)

<div class="topic-metadata">

**Author:** [@aliluyabt](https://discourse.processing.org/u/aliluyabt)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 7:15pm UTC](https://discourse.processing.org/t/error-failed-to-load-resource-net-err-connection-refused/2486 "2018-08-08T19:15:56Z")

</div>

trying to run :https://github.com/ITPNYU/ICM-2015/blob/master/09\_video\_sound/02\_capture/13\_get\_sources/sketch.js but I keep getting this error Any ideas why??

---

## [Where are all the libraries?](https://discourse.processing.org/t/where-are-all-the-libraries/2482)

<div class="topic-metadata">

**Author:** [@hrgiger](https://discourse.processing.org/u/hrgiger)\
**Replies:** 3\
**Last updated:** [August 8, 2018, 6:26pm UTC](https://discourse.processing.org/t/where-are-all-the-libraries/2482 "2018-08-08T18:26:53Z")

</div>

Why are there only ~10 libraries available? What about computational geometry–computing the intersections of lines, convex hull, these things?

---

## [Creating multi-page PDFs in Python mode](https://discourse.processing.org/t/creating-multi-page-pdfs-in-python-mode/2447)

<div class="topic-metadata">

**Author:** [@pxlmnkeee](https://discourse.processing.org/u/pxlmnkeee)\
**Replies:** 4\
**Last updated:** [August 8, 2018, 6:26pm UTC](https://discourse.processing.org/t/creating-multi-page-pdfs-in-python-mode/2447 "2018-08-08T18:26:03Z")

</div>

Hello there intrepid Processing community! I have a question about creating multi-page PDFs in Processing: I’ve tried to modify the code from the Java implementation with limited success. I’ve created an empty PDF file…

---

## [Make a moving circle fade over time](https://discourse.processing.org/t/make-a-moving-circle-fade-over-time/2459)

<div class="topic-metadata">

**Author:** [@yanfqc](https://discourse.processing.org/u/yanfqc)\
**Replies:** 2\
**Last updated:** [August 8, 2018, 3:45pm UTC](https://discourse.processing.org/t/make-a-moving-circle-fade-over-time/2459 "2018-08-08T15:45:24Z")

</div>

Hi! I’m having a bit of a hard time understand how I can make a moving circle fade over time. I tried drawing a rectangle with an alpha of 50 (I also tried other value) and my circle fade over time, but it still leaves …

---

## [\[SOLVED\] Unable to draw the offscreen buffer to the screen with image()](https://discourse.processing.org/t/solved-unable-to-draw-the-offscreen-buffer-to-the-screen-with-image/1530)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 6\
**Last updated:** [August 8, 2018, 11:16am UTC](https://discourse.processing.org/t/solved-unable-to-draw-the-offscreen-buffer-to-the-screen-with-image/1530 "2018-08-08T11:16:27Z")

</div>

Solved: see answer below Hi everyone. I’m trying to adapt the nice Yutaka Kachi’s Turtle Graphics project (https://ycatch.github.io/p5.turtle.js/) for Processing in p5.js mode. I’d like that my students could program t…

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

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