# Latest

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

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

**Page:** 263

---

## [Moved PImage from one side to the screen to another in loop](https://discourse.processing.org/t/moved-pimage-from-one-side-to-the-screen-to-another-in-loop/27194)

<div class="topic-metadata">

**Author:** [@mchangxe](https://discourse.processing.org/u/mchangxe)\
**Replies:** 4\
**Last updated:** [January 20, 2021, 2:52am UTC](https://discourse.processing.org/t/moved-pimage-from-one-side-to-the-screen-to-another-in-loop/27194 "2021-01-20T02:52:53Z")

</div>

Hi guys, i want to move an image across the screen from right to the left. However, one complication is that when part of the image moves beyond the left side of the screen, i want it to show up on the right side of the…

---

## [Update screen immediately](https://discourse.processing.org/t/update-screen-immediately/26856)

<div class="topic-metadata">

**Author:** [@edumanilha](https://discourse.processing.org/u/edumanilha)\
**Replies:** 9\
**Last updated:** [January 19, 2021, 11:45pm UTC](https://discourse.processing.org/t/update-screen-immediately/26856 "2021-01-19T23:45:07Z")

</div>

Hi everyone! How are you people doing? I need some help… I put a button on my script to change some values on screen, but I set framerate to update every second, so every time I click the value take some time to update…

---

## [Drawing order of Objects in an Arraylist](https://discourse.processing.org/t/drawing-order-of-objects-in-an-arraylist/27160)

<div class="topic-metadata">

**Author:** [@Gine6g](https://discourse.processing.org/u/Gine6g)\
**Replies:** 21\
**Last updated:** [January 19, 2021, 9:05pm UTC](https://discourse.processing.org/t/drawing-order-of-objects-in-an-arraylist/27160 "2021-01-19T21:05:41Z")

</div>

I didnt knew how to name this. But I got a class with multiple other classes that inherit from the main one. Now when I clicking I can add one of the Objects to the Sketch and all the Objects are held withing an Arrayli…

---

## [How to enter unlimited parameters info a function](https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [January 19, 2021, 9:27pm UTC](https://discourse.processing.org/t/how-to-enter-unlimited-parameters-info-a-function/27207 "2021-01-19T21:27:51Z")

</div>

Hi! I’d like to know if there is a way to insert unlimited number of parameters into a custom function. I want to replicate things like: println(i1,i2,i3,i4,i5,...); The way I do it right now is by doing: void aaa(…

---

## [How to pass parameters into a thread function](https://discourse.processing.org/t/how-to-pass-parameters-into-a-thread-function/27204)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [January 19, 2021, 8:51pm UTC](https://discourse.processing.org/t/how-to-pass-parameters-into-a-thread-function/27204 "2021-01-19T20:51:16Z")

</div>

Hi! I recently came across the function thread. However when I tried to use the function void setup() {thread("timer");} void draw() {background(frameCount % 255);} void timer(int delay, int rep) { for(int i = 0; i \<…

---

## [Array has error every other object](https://discourse.processing.org/t/array-has-error-every-other-object/27068)

<div class="topic-metadata">

**Author:** [@georg2a](https://discourse.processing.org/u/georg2a)\
**Replies:** 6\
**Last updated:** [January 19, 2021, 8:48pm UTC](https://discourse.processing.org/t/array-has-error-every-other-object/27068 "2021-01-19T20:48:41Z")

</div>

hi, the array seems to not work for every other object; on the second click, another object is spawned even if the click is outside of the contains/bounds of the shape. thanks to anyone who takes the time to read/respo…

---

## [Project guidance](https://discourse.processing.org/t/project-guidance/27115)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 20\
**Last updated:** [January 19, 2021, 1:16pm UTC](https://discourse.processing.org/t/project-guidance/27115 "2021-01-19T13:16:09Z")

</div>

Hi, everyone ! I need to achieve this effect. But I don’t know how to achieve it. Can anyone give me some tips how to do it ? Thank you ! I appreciate very help !

---

## [Screenshot with CTRL + S](https://discourse.processing.org/t/screenshot-with-ctrl-s/27203)

<div class="topic-metadata">

**Author:** [@Lukerfull](https://discourse.processing.org/u/Lukerfull)\
**Replies:** 4\
**Last updated:** [January 19, 2021, 6:36pm UTC](https://discourse.processing.org/t/screenshot-with-ctrl-s/27203 "2021-01-19T18:36:17Z")

</div>

Hi, I’ve been struggling with this for a long time today. I’m trying to make screenshots with ctrl and s but it doesn’t work. Can anyone help me? Thanks. This is what I tried: boolean ctrlPressed; void keyPressed() { …

---

## [Printing delay of 500 millisecs between indices of a for loop iteration](https://discourse.processing.org/t/printing-delay-of-500-millisecs-between-indices-of-a-for-loop-iteration/27201)

<div class="topic-metadata">

**Author:** [@decentralizedmike](https://discourse.processing.org/u/decentralizedmike)\
**Replies:** 9\
**Last updated:** [January 19, 2021, 5:15pm UTC](https://discourse.processing.org/t/printing-delay-of-500-millisecs-between-indices-of-a-for-loop-iteration/27201 "2021-01-19T17:15:18Z")

</div>

Hi p5 pals! I am having trouble trying to print out text with a delay between each iteration of the for loop. Instead of printing all at once in realtime, I would like a 1/2 sec delay between each of the indices. I ha…

---

## [Sketch GUI in different Operating Systems](https://discourse.processing.org/t/sketch-gui-in-different-operating-systems/27176)

<div class="topic-metadata">

**Author:** [@r.jaoui](https://discourse.processing.org/u/r.jaoui)\
**Replies:** 2\
**Last updated:** [January 19, 2021, 5:12pm UTC](https://discourse.processing.org/t/sketch-gui-in-different-operating-systems/27176 "2021-01-19T17:12:01Z")

</div>

Hello ! Alright so I’ve been trying to work with OpenGL recently, writing and executing shaders… But another issue that I’m facing is that having a resizable P2D sketch isn’t actually that simple, the resizing is very b…

---

## [How to get X, Y of the face with open cv?](https://discourse.processing.org/t/how-to-get-x-y-of-the-face-with-open-cv/27183)

<div class="topic-metadata">

**Author:** [@LoneFalconer](https://discourse.processing.org/u/LoneFalconer)\
**Replies:** 3\
**Last updated:** [January 19, 2021, 4:48pm UTC](https://discourse.processing.org/t/how-to-get-x-y-of-the-face-with-open-cv/27183 "2021-01-19T16:48:52Z")

</div>

Hello, I am pretty new to programming in java and am looking for a way to get the x and y chords of a face detected with OpenCV. I then want to use these chords in another function. Is there documentation on the OpenCV…

---

## [Highlighting tiles in range x](https://discourse.processing.org/t/highlighting-tiles-in-range-x/27193)

<div class="topic-metadata">

**Author:** [@lancelot](https://discourse.processing.org/u/lancelot)\
**Replies:** 4\
**Last updated:** [January 19, 2021, 4:15pm UTC](https://discourse.processing.org/t/highlighting-tiles-in-range-x/27193 "2021-01-19T16:15:45Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello everybody, I’ve been working on this code a few days, and I’m out of ideas. My goal is to highlight tiles inside of the movement range. I…

---

## [Why is my Ico-Sphere not a Sphere](https://discourse.processing.org/t/why-is-my-ico-sphere-not-a-sphere/27190)

<div class="topic-metadata">

**Author:** [@JALAJ\_0106](https://discourse.processing.org/u/JALAJ_0106)\
**Replies:** 3\
**Last updated:** [January 19, 2021, 2:46pm UTC](https://discourse.processing.org/t/why-is-my-ico-sphere-not-a-sphere/27190 "2021-01-19T14:46:59Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \<public class isoSphere { Icosehedron ico = new Icosehedron(); ArrayList vNew; ArrayList cul; ArrayList vecL = new ArrayList(); ArrayList d…

---

## [Write a string in multiple code lines](https://discourse.processing.org/t/write-a-string-in-multiple-code-lines/27196)

<div class="topic-metadata">

**Author:** [@JonasAvory1](https://discourse.processing.org/u/JonasAvory1)\
**Replies:** 5\
**Last updated:** [January 19, 2021, 1:15pm UTC](https://discourse.processing.org/t/write-a-string-in-multiple-code-lines/27196 "2021-01-19T13:15:48Z")

</div>

So, I’m trying to write a simple HTML server with processing (I know processing isn’t the best program to use, but I didn’t want to learn a new tool). The String my server’s supposed to send back is very long, so I want…

---

## [Problem with geomerative and list](https://discourse.processing.org/t/problem-with-geomerative-and-list/27199)

<div class="topic-metadata">

**Author:** [@robottini](https://discourse.processing.org/u/robottini)\
**Replies:** 4\
**Last updated:** [January 19, 2021, 1:04pm UTC](https://discourse.processing.org/t/problem-with-geomerative-and-list/27199 "2021-01-19T13:04:09Z")

</div>

I have a problem with geomerative and a list of shapes. I think it is trivial, but I don’t understand my error. If I use this sketch I don’t have any problem. import geomerative.\*; void setup() { size(800, 400); …

---

## [Displaying a single pixel on LED display showed two LEDs lit up](https://discourse.processing.org/t/displaying-a-single-pixel-on-led-display-showed-two-leds-lit-up/27009)

<div class="topic-metadata">

**Author:** [@mchangxe](https://discourse.processing.org/u/mchangxe)\
**Replies:** 2\
**Last updated:** [January 19, 2021, 9:38am UTC](https://discourse.processing.org/t/displaying-a-single-pixel-on-led-display-showed-two-leds-lit-up/27009 "2021-01-19T09:38:57Z")

</div>

In my processing program, I am setting just a single pixel to red, however on my LED screen, two LED lights lit up red, with one dimmer than the other. How can I make sure that only 1 LED light lights up? I have set the…

---

## [How can I load the video without affecting the overall process？](https://discourse.processing.org/t/how-can-i-load-the-video-without-affecting-the-overall-process/26964)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 7\
**Last updated:** [January 19, 2021, 7:14am UTC](https://discourse.processing.org/t/how-can-i-load-the-video-without-affecting-the-overall-process/26964 "2021-01-19T07:14:30Z")

</div>

Hi guys,！Recently when I used the particle system, I clicked to generate a video and the whole was stuck. After the video was loaded, the fps would be restored. Is there any good way to solve this problem？

---

## [Processing 4 macOS Video still not working?](https://discourse.processing.org/t/processing-4-macos-video-still-not-working/27187)

<div class="topic-metadata">

**Author:** [@shimulc](https://discourse.processing.org/u/shimulc)\
**Replies:** 0\
**Last updated:** [January 19, 2021, 5:19am UTC](https://discourse.processing.org/t/processing-4-macos-video-still-not-working/27187 "2021-01-19T05:19:11Z")

</div>

Apologies because I know it has not been long since 4.0 alpha 3 has been released but I have been trying to run the basic GettingStartedCapture example and still do not see the macOS security dialog to allow access to my…

---

## [P5.js iframe not loading?](https://discourse.processing.org/t/p5-js-iframe-not-loading/27066)

<div class="topic-metadata">

**Author:** [@georg2a](https://discourse.processing.org/u/georg2a)\
**Replies:** 4\
**Last updated:** [January 19, 2021, 12:30am UTC](https://discourse.processing.org/t/p5-js-iframe-not-loading/27066 "2021-01-19T00:30:40Z")

</div>

hi, https://editor.p5js.org/georg2a/present/DjlxhZ2W6T i’ve embedded multiple p5.js files into a website and all have worked except the one above; it freezes on “Loading…” as it does on processing.org. i’m not sure why…

---

## [Http timeout crash app](https://discourse.processing.org/t/http-timeout-crash-app/27173)

<div class="topic-metadata">

**Author:** [@don\_hurlibutz](https://discourse.processing.org/u/don_hurlibutz)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 11:27pm UTC](https://discourse.processing.org/t/http-timeout-crash-app/27173 "2021-01-18T23:27:43Z")

</div>

Hi Folks, i want to code a simple weather app, fetching the data from the “Deutscher Wetter Dienst” (German Weather Service). All works fine if the Internet- connection is working. But i want an ERROR- Message if someth…

---

## [How can I draw buttons on Chart.js canvas?](https://discourse.processing.org/t/how-can-i-draw-buttons-on-chart-js-canvas/27180)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 0\
**Last updated:** [January 18, 2021, 10:21pm UTC](https://discourse.processing.org/t/how-can-i-draw-buttons-on-chart-js-canvas/27180 "2021-01-18T22:21:04Z")

</div>

Hi, I’m trying to use Chart.js, and my sketch.js has the simplest example from here. I want to put buttons on the chart e.g. previous and next. What I have is a second canvas below the chart with a single rect. How ca…

---

## [Android Bluetooth to Arduino and vice versa](https://discourse.processing.org/t/android-bluetooth-to-arduino-and-vice-versa/26578)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 139\
**Last updated:** [January 18, 2021, 9:54pm UTC](https://discourse.processing.org/t/android-bluetooth-to-arduino-and-vice-versa/26578 "2021-01-18T21:54:25Z")

</div>

hi all i made 2 sliders sending values to arduino i want to use same in android mode and control arduino via bluetooth using ‘ketai’ library and i need to know how import controlP5.\*; import processing.serial.\*; Con…

---

## [Calling processing sketches within a processing sketch](https://discourse.processing.org/t/calling-processing-sketches-within-a-processing-sketch/27167)

<div class="topic-metadata">

**Author:** [@jackeddielove](https://discourse.processing.org/u/jackeddielove)\
**Replies:** 2\
**Last updated:** [January 18, 2021, 8:41pm UTC](https://discourse.processing.org/t/calling-processing-sketches-within-a-processing-sketch/27167 "2021-01-18T20:41:48Z")

</div>

My processing code is getting very long. I’m essentially building a slideshow. Is it possible to build each slide individually and then call each one in the main program? This is the kind of thing I did when writing my …

---

## [Record your programm?](https://discourse.processing.org/t/record-your-programm/27175)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 3\
**Last updated:** [January 18, 2021, 8:17pm UTC](https://discourse.processing.org/t/record-your-programm/27175 "2021-01-18T20:17:49Z")

</div>

I have written a programm, that paints images using epicycles and now I want to record it. However everything I managed to find was recording videos using a cam. Could you help me with this?

---

## [Scrolling Graph](https://discourse.processing.org/t/scrolling-graph/27168)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 6:50pm UTC](https://discourse.processing.org/t/scrolling-graph/27168 "2021-01-18T18:50:51Z")

</div>

Hi, I am trying to plot the values coming in from the serial port into a scrolling graph. Right now it it displaying some value but not what I want. It should plot every time ReadStringUntill gets to a new line etc. Any …

---

## [Issue with a sorting program](https://discourse.processing.org/t/issue-with-a-sorting-program/27163)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 7\
**Last updated:** [January 18, 2021, 6:28pm UTC](https://discourse.processing.org/t/issue-with-a-sorting-program/27163 "2021-01-18T18:28:50Z")

</div>

Hi! I started created a sorting algorithm, that inserts the highest value on first place (and swaps them) codeArrayList\<Float\> values = new ArrayList\<Float\>(); int n = 600, min = 0, max = 600, it = 0; void …

---

## [Processing 4a3 Release](https://discourse.processing.org/t/processing-4a3-release/27166)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [January 18, 2021, 5:25pm UTC](https://discourse.processing.org/t/processing-4a3-release/27166 "2021-01-18T17:25:11Z")

</div>

We just posted another pre-release of Processing 4! Includes OpenGL updates, video working again on macOS, and lots of other fixes for reliability (link at the bottom of the page): https://processing.org/download/ Plea…

---

## [How should i create a permanent reference to an object](https://discourse.processing.org/t/how-should-i-create-a-permanent-reference-to-an-object/27162)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 5\
**Last updated:** [January 18, 2021, 4:46pm UTC](https://discourse.processing.org/t/how-should-i-create-a-permanent-reference-to-an-object/27162 "2021-01-18T16:46:53Z")

</div>

okay so i’ve recently learned that there are no formal pointers in javascript(??) what’s the best way to create a permanent reference to a dynamic object? i have a class in a game called ‘level’ that has all the informat…

---

## [Beginner question, changing background in pong when ball hits paddle](https://discourse.processing.org/t/beginner-question-changing-background-in-pong-when-ball-hits-paddle/27158)

<div class="topic-metadata">

**Author:** [@lucyteio](https://discourse.processing.org/u/lucyteio)\
**Replies:** 2\
**Last updated:** [January 18, 2021, 2:59pm UTC](https://discourse.processing.org/t/beginner-question-changing-background-in-pong-when-ball-hits-paddle/27158 "2021-01-18T14:59:00Z")

</div>

Hello to all I have an assignment for art school. we have been given the pong game and we must change the code to create a story… I wish to change the background each time the pong hits a paddle. any help would be grat…

---

## [Virtual CC Fest - Jan 24](https://discourse.processing.org/t/virtual-cc-fest-jan-24/26896)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 2:50pm UTC](https://discourse.processing.org/t/virtual-cc-fest-jan-24/26896 "2021-01-18T14:50:07Z")

</div>

Hi everyone, Excited to announce that virtual CC Fest, creative coding fest for students and teachers, is back on Jan 24, Sunday, at 3 pm EST (-5GMT). We are offering a bunch of great workshops in p5, Processing, Python…

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

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