# Latest

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

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

**Page:** 219

---

## [Processing second PApplet window does not update when method is invoked](https://discourse.processing.org/t/processing-second-papplet-window-does-not-update-when-method-is-invoked/30392)

<div class="topic-metadata">

**Author:** [@gohag](https://discourse.processing.org/u/gohag)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 8:27pm UTC](https://discourse.processing.org/t/processing-second-papplet-window-does-not-update-when-method-is-invoked/30392 "2021-06-01T20:27:16Z")

</div>

Hi! I have the following code which allows to have two windows, in the main window when the ‘k’ key is pressed, must call the function disegna() of Graph and add the text. But it seems not to work properly, no draw upd…

---

## [Making lines converge to a point](https://discourse.processing.org/t/making-lines-converge-to-a-point/30425)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:13pm UTC](https://discourse.processing.org/t/making-lines-converge-to-a-point/30425 "2021-06-01T20:13:39Z")

</div>

Hi, I’m working on my n-th mini project. I would like to have multiple parallel lines pointing to mouse position on a click. Here’s the code I wrote: //introducing vectors PVector vMouse, u, w; //introducing arrays //…

---

## [WEBGL and background images](https://discourse.processing.org/t/webgl-and-background-images/30416)

<div class="topic-metadata">

**Author:** [@geor1812](https://discourse.processing.org/u/geor1812)\
**Replies:** 4\
**Last updated:** [June 1, 2021, 8:12pm UTC](https://discourse.processing.org/t/webgl-and-background-images/30416 "2021-06-01T20:12:24Z")

</div>

Hello! I am doing a project using WEBGL, and I am trying to set the background to an image which I can’t seem to figure out. The project itself is a bit complex, with a server and an input of type file where users can s…

---

## [Drawing and orbiting a shape with many vertices](https://discourse.processing.org/t/drawing-and-orbiting-a-shape-with-many-vertices/30375)

<div class="topic-metadata">

**Author:** [@hardwhere](https://discourse.processing.org/u/hardwhere)\
**Replies:** 5\
**Last updated:** [June 1, 2021, 8:11pm UTC](https://discourse.processing.org/t/drawing-and-orbiting-a-shape-with-many-vertices/30375 "2021-06-01T20:11:24Z")

</div>

Hello! I’m drawing a shape with thousands of vertices in my draw() function; it’s just a line drawing connecting many vertices. I’d like to then orbit around this shape with e.g. the easycam library. I’m able to do this,…

---

## [How to play a sound when ( colorFromGet == pas )?](https://discourse.processing.org/t/how-to-play-a-sound-when-colorfromget-pas/30426)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 12\
**Last updated:** [June 1, 2021, 7:58pm UTC](https://discourse.processing.org/t/how-to-play-a-sound-when-colorfromget-pas/30426 "2021-06-01T19:58:37Z")

</div>

int x=1; int y=1; import java.awt.Robot; import java.awt.image.BufferedImage; import java.awt.Rectangle; color pas = color(11, 96, 133); Robot robot; void setup() { size(1500, 3000); try { robot = new Robot(); …

---

## [How to check if the response from get is the same as color?](https://discourse.processing.org/t/how-to-check-if-the-response-from-get-is-the-same-as-color/30417)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 7\
**Last updated:** [June 1, 2021, 6:28pm UTC](https://discourse.processing.org/t/how-to-check-if-the-response-from-get-is-the-same-as-color/30417 "2021-06-01T18:28:11Z")

</div>

int x=1; int y=1; import java.awt.Robot; import java.awt.image.BufferedImage; import java.awt.Rectangle; color pas = color(11, 96, 133); //this is the color Robot robot; void setup() { size(1500, 3000); try { ro…

---

## [Android emulator](https://discourse.processing.org/t/android-emulator/29362)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 26\
**Last updated:** [May 30, 2021, 1:36pm UTC](https://discourse.processing.org/t/android-emulator/29362 "2021-05-30T13:36:43Z")

</div>

Hello, I tried to Run in Emulator this super- simple code in Processing’s Android mode: void setup() { size(640, 360); background(0); } void draw() { noStroke(); fill(255); circle(width/2, height/2, 32); } H…

---

## [Export large scale print file + web file](https://discourse.processing.org/t/export-large-scale-print-file-web-file/30380)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 11\
**Last updated:** [June 1, 2021, 4:05pm UTC](https://discourse.processing.org/t/export-large-scale-print-file-web-file/30380 "2021-06-01T16:05:01Z")

</div>

Hey processing community, is it possible to export 2 files at the same time for web and print? Thanks a lot in advance,

---

## [Help with error in Robot class and createScreenCapture() method](https://discourse.processing.org/t/help-with-error-in-robot-class-and-createscreencapture-method/30396)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 5\
**Last updated:** [June 1, 2021, 11:22am UTC](https://discourse.processing.org/t/help-with-error-in-robot-class-and-createscreencapture-method/30396 "2021-06-01T11:22:25Z")

</div>

PImage screenshot; import java.awt.Robot; void setup() { size(400,300); } void draw() { try { Robot robot = new Robot(); screenshot = new PImage(robot.createScreenCapture(new Rectangle(0,0,screen.width,screen.hei…

---

## [Need help: Animating grid with gradient rectangles](https://discourse.processing.org/t/need-help-animating-grid-with-gradient-rectangles/30376)

<div class="topic-metadata">

**Author:** [@abk](https://discourse.processing.org/u/abk)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 7:24am UTC](https://discourse.processing.org/t/need-help-animating-grid-with-gradient-rectangles/30376 "2021-06-01T07:24:52Z")

</div>

Hi I’m trying to achieve this kind of noise based movement on my sketch: https://www.instagram.com/p/CMxHVO\_hmUa/ I’ve built my grid by creating for loops which works fine if I wanted it to be static, but if I should a…

---

## [Blending two images using movement sensor and arduino](https://discourse.processing.org/t/blending-two-images-using-movement-sensor-and-arduino/30404)

<div class="topic-metadata">

**Author:** [@szymon\_gl](https://discourse.processing.org/u/szymon_gl)\
**Replies:** 1\
**Last updated:** [May 31, 2021, 11:10pm UTC](https://discourse.processing.org/t/blending-two-images-using-movement-sensor-and-arduino/30404 "2021-05-31T23:10:04Z")

</div>

Hi, I need help with an art project I am trying to finish. I want to smoothly blend two images together (the backgroung image it’s a photo of a person and the second image is the same person but wearing a mask). I want …

---

## [FFT of 1D array of 1024 measurements](https://discourse.processing.org/t/fft-of-1d-array-of-1024-measurements/7901)

<div class="topic-metadata">

**Author:** [@jlodewey](https://discourse.processing.org/u/jlodewey)\
**Replies:** 19\
**Last updated:** [May 31, 2021, 7:21pm UTC](https://discourse.processing.org/t/fft-of-1d-array-of-1024-measurements/7901 "2021-05-31T19:21:05Z")

</div>

Hello Is there a function such as fft(array)? The array input comes from an Arduino. The sound library contains an FFT possibility but the input comes from an audio input. Thank you. Jozef lodeweyckx

---

## [Canvas.elt.toDataURL saving blank images](https://discourse.processing.org/t/canvas-elt-todataurl-saving-blank-images/30371)

<div class="topic-metadata">

**Author:** [@sameeh](https://discourse.processing.org/u/sameeh)\
**Replies:** 1\
**Last updated:** [May 31, 2021, 6:33pm UTC](https://discourse.processing.org/t/canvas-elt-todataurl-saving-blank-images/30371 "2021-05-31T18:33:59Z")

</div>

This is my nextjs (reactjs) code, I’m using the p5 library, everything is fine until I try to view the saved base64 image, the image is saved as blank. Any idea what I might be doing wrong? or is it a bug in the p5 react…

---

## [How can i make a movie array? :S](https://discourse.processing.org/t/how-can-i-make-a-movie-array-s/29827)

<div class="topic-metadata">

**Author:** [@softailu](https://discourse.processing.org/u/softailu)\
**Replies:** 8\
**Last updated:** [May 31, 2021, 5:43pm UTC](https://discourse.processing.org/t/how-can-i-make-a-movie-array-s/29827 "2021-05-31T17:43:20Z")

</div>

Hi! I need help with a problem that I cannot solve. I want to make an array of several .mov recordings and I can’t get it to work. My main idea is to be able to load more than 10 videos in an array and then from mouse …

---

## [AI reinforcement learning](https://discourse.processing.org/t/ai-reinforcement-learning/30369)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 8\
**Last updated:** [May 31, 2021, 3:31pm UTC](https://discourse.processing.org/t/ai-reinforcement-learning/30369 "2021-05-31T15:31:42Z")

</div>

I’m trying to learn reinforcement learning for AI so far i been told the way to program it is make a table with the actions I want the player to do, but when looking at youtube reinforcement learning ai they are getting …

---

## [Please guys help me, I am trying to complete this morphing between obj](https://discourse.processing.org/t/please-guys-help-me-i-am-trying-to-complete-this-morphing-between-obj/30383)

<div class="topic-metadata">

**Author:** [@bello](https://discourse.processing.org/u/bello)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 3:30pm UTC](https://discourse.processing.org/t/please-guys-help-me-i-am-trying-to-complete-this-morphing-between-obj/30383 "2021-05-31T15:30:34Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \< PShape obj; PShape objB; PShape objC; PShape objD; int children = obj.getChildCount(); //onj=teapot objB=pianta objC=teschio objD=mano Ar…

---

## [A condition expression should not be reduced to an assignment](https://discourse.processing.org/t/a-condition-expression-should-not-be-reduced-to-an-assignment/30395)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 2:50pm UTC](https://discourse.processing.org/t/a-condition-expression-should-not-be-reduced-to-an-assignment/30395 "2021-05-31T14:50:02Z")

</div>

boolean check(){ for (int j = 0; j \< grid.size(); j++) { if (grid.get(j-1).visited = true ) { return true; } } } i want run some fuction after the class in a arraylist all been visited. …

---

## [Why does my program return the error, Cannot find a class or type named “Robot”?](https://discourse.processing.org/t/why-does-my-program-return-the-error-cannot-find-a-class-or-type-named-robot/30394)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [May 31, 2021, 2:40pm UTC](https://discourse.processing.org/t/why-does-my-program-return-the-error-cannot-find-a-class-or-type-named-robot/30394 "2021-05-31T14:40:44Z")

</div>

why does my program return the error, Cannot find a class or type named “Robot”?

---

## [Please Help: Issue with 3D](https://discourse.processing.org/t/please-help-issue-with-3d/30290)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 24\
**Last updated:** [May 31, 2021, 12:45pm UTC](https://discourse.processing.org/t/please-help-issue-with-3d/30290 "2021-05-31T12:45:50Z")

</div>

hi guys can anyone help me out please im sorta really stuck. im trying to draw a sphere onto processing but anytime i use P3D, the display image is just grey and blank. does anyone know why?

---

## [\[SOLVED\] Show image stored in SDCARD (sdk 26)](https://discourse.processing.org/t/solved-show-image-stored-in-sdcard-sdk-26/4397)

<div class="topic-metadata">

**Author:** [@julienrat](https://discourse.processing.org/u/julienrat)\
**Replies:** 14\
**Last updated:** [May 31, 2021, 10:18am UTC](https://discourse.processing.org/t/solved-show-image-stored-in-sdcard-sdk-26/4397 "2021-05-31T10:18:59Z")

</div>

Hello, I have try many tutorials/issues whitout succes, but i’have got the same results : java.lang.IllegalArgumentException: File /storage/emulated/0/DCIM/cat.jpg contains a path separator Here is my code : import and…

---

## [Como puedo armar un objeto a partir de un array de videos?](https://discourse.processing.org/t/como-puedo-armar-un-objeto-a-partir-de-un-array-de-videos/30373)

<div class="topic-metadata">

**Author:** [@softailu](https://discourse.processing.org/u/softailu)\
**Replies:** 0\
**Last updated:** [May 30, 2021, 5:11pm UTC](https://discourse.processing.org/t/como-puedo-armar-un-objeto-a-partir-de-un-array-de-videos/30373 "2021-05-30T17:11:24Z")

</div>

Hola! Necesito armar un objeto que contenga un array de videos que tengo funcionando en la actualidad, pero no sé como hacerlo ya que es el uso de la clase Movie al de las imagenes, por ejemplo. La idea es que cuando ha…

---

## [Ufdw\_j4k2\_64bit.dll not loaded](https://discourse.processing.org/t/ufdw-j4k2-64bit-dll-not-loaded/30374)

<div class="topic-metadata">

**Author:** [@sergio\_dm](https://discourse.processing.org/u/sergio_dm)\
**Replies:** 0\
**Last updated:** [May 30, 2021, 5:25pm UTC](https://discourse.processing.org/t/ufdw-j4k2-64bit-dll-not-loaded/30374 "2021-05-30T17:25:33Z")

</div>

hi i have installed the j4d library for Kinect on processing, when i try run an example code i get this message, ufdw\_j4k2\_64bit.dll not loaded. how can solve it ? Thanks for your answers.

---

## [Trouble receiving different data through serial from Arduino to Processing](https://discourse.processing.org/t/trouble-receiving-different-data-through-serial-from-arduino-to-processing/30317)

<div class="topic-metadata">

**Author:** [@Valakas](https://discourse.processing.org/u/Valakas)\
**Replies:** 5\
**Last updated:** [May 30, 2021, 3:23pm UTC](https://discourse.processing.org/t/trouble-receiving-different-data-through-serial-from-arduino-to-processing/30317 "2021-05-30T15:23:06Z")

</div>

Hello everyone, this is my first time using both processing and arduino and I’m having a bit of trouble with receiving data in processing. I have a DHT11 temperature and humidity sensor I’m using with my Arduino and I’m…

---

## [How do i pass a class type into a function](https://discourse.processing.org/t/how-do-i-pass-a-class-type-into-a-function/30337)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 10\
**Last updated:** [May 30, 2021, 2:19pm UTC](https://discourse.processing.org/t/how-do-i-pass-a-class-type-into-a-function/30337 "2021-05-30T14:19:10Z")

</div>

maybe i’m going about this wrong, but i have a base class with a run function, and i want each child class to be able to pass a different class type into it when they use it. the base class is called ‘spawner’, and each…

---

## [Processing.sound: Target VM failed](https://discourse.processing.org/t/processing-sound-target-vm-failed/30186)

<div class="topic-metadata">

**Author:** [@pokelan](https://discourse.processing.org/u/pokelan)\
**Replies:** 1\
**Last updated:** [May 30, 2021, 11:11am UTC](https://discourse.processing.org/t/processing-sound-target-vm-failed/30186 "2021-05-30T11:11:59Z")

</div>

Hi all I am using Processing 3.5.4 on linux. According to the Contribution Manager the sound library from The Processing Foundation is installed. I tried to run this code from the Sound tutorial (Sound \\ Processing.org)…

---

## [Find/calculate all points that lay on a border of shape?](https://discourse.processing.org/t/find-calculate-all-points-that-lay-on-a-border-of-shape/30354)

<div class="topic-metadata">

**Author:** [@uniqueNoSpaces](https://discourse.processing.org/u/uniqueNoSpaces)\
**Replies:** 3\
**Last updated:** [May 29, 2021, 9:57pm UTC](https://discourse.processing.org/t/find-calculate-all-points-that-lay-on-a-border-of-shape/30354 "2021-05-29T21:57:57Z")

</div>

Hello is there a way to find all the points (x,y) that lay on the border of the shape that i’ve drawn? say i have drawn a simple ellipse: ellipse(x,y,width,height)…given that i know the centre point and the dimensions …

---

## [I don't know how to make the shapes appear alternately. Tic tac toe](https://discourse.processing.org/t/i-dont-know-how-to-make-the-shapes-appear-alternately-tic-tac-toe/30273)

<div class="topic-metadata">

**Author:** [@Wiktorpers](https://discourse.processing.org/u/Wiktorpers)\
**Replies:** 2\
**Last updated:** [May 29, 2021, 10:31am UTC](https://discourse.processing.org/t/i-dont-know-how-to-make-the-shapes-appear-alternately-tic-tac-toe/30273 "2021-05-29T10:31:18Z")

</div>

I program tic-tac-toe but I don’t know how to make the shapes appear alternately. that is: the player has bet X is the next time he clicks on a field, O will appear it’s about the mouseClicked function. the one at the …

---

## ["Offline" Rendering?](https://discourse.processing.org/t/offline-rendering/5239)

<div class="topic-metadata">

**Author:** [@namke](https://discourse.processing.org/u/namke)\
**Replies:** 4\
**Last updated:** [May 29, 2021, 5:11am UTC](https://discourse.processing.org/t/offline-rendering/5239 "2021-05-29T05:11:06Z")

</div>

I have a sketch which responds to some audio, and I am happy with how it works. If I feed it a soundfile, that also works as expected. My problem occurs when I want to capture the resultant images to disc, so that I can …

---

## [APDE USB / OTG communication](https://discourse.processing.org/t/apde-usb-otg-communication/30114)

<div class="topic-metadata">

**Author:** [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Replies:** 165\
**Last updated:** [May 27, 2021, 12:29pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114 "2021-05-27T12:29:17Z")

</div>

Last update 2021-05-20T00:00:00Z (UTC) this post will be constantly updated, so someone will be interested, but do not want to scroll through the posts further, they will see and know everything, show what has already …

---

## [Starting ellipse w/ Perlin Noise in Canvas Center on mousePressed()](https://discourse.processing.org/t/starting-ellipse-w-perlin-noise-in-canvas-center-on-mousepressed/30323)

<div class="topic-metadata">

**Author:** [@refchef](https://discourse.processing.org/u/refchef)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 2:19pm UTC](https://discourse.processing.org/t/starting-ellipse-w-perlin-noise-in-canvas-center-on-mousepressed/30323 "2021-05-27T14:19:02Z")

</div>

Hi everyone First time posting here! I hope somebody is able to help. My goal is to start animating on function mousePressed an ellipse with perlin noise. The ellipse needs to be centered on the canvas and start from t…

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

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