# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=394

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

**Page:** 395

---

## [lerpColor not working on Processing but working on CodePen](https://discourse.processing.org/t/lerpcolor-not-working-on-processing-but-working-on-codepen/17729)

<div class="topic-metadata">

**Author:** [@Pandoma](https://discourse.processing.org/u/Pandoma)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 11:49pm UTC](https://discourse.processing.org/t/lerpcolor-not-working-on-processing-but-working-on-codepen/17729 "2020-02-11T23:49:27Z")

</div>

I have tried the following code on Processing 3.5.3 and CodePen (https://codepen.io/KevinWorkman/pen/vXZmvB?editors=1000 - paste code within it.) Problem - Apparently the lerpColor does not work with Processing but work…

---

## [How to load an image in python?](https://discourse.processing.org/t/how-to-load-an-image-in-python/17710)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 11:37pm UTC](https://discourse.processing.org/t/how-to-load-an-image-in-python/17710 "2020-02-11T23:37:40Z")

</div>

Can anyone explain how to load an image in python. I looked at a few videos & they use like 5 lines of code or more just to get a single image. so if I do that for all my images that be tons of lines for just images.

---

## [How to name a save?](https://discourse.processing.org/t/how-to-name-a-save/17753)

<div class="topic-metadata">

**Author:** [@MadMarines](https://discourse.processing.org/u/MadMarines)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 10:02pm UTC](https://discourse.processing.org/t/how-to-name-a-save/17753 "2020-02-11T22:02:38Z")

</div>

Hi !, I’m a french student (excuse my english), and I have a problem… :sob: I make a game levels creator and I want to give a name at the save, I know how to save but I don’t know how a can give a name at them. I will …

---

## [Help with loadData() please. +](https://discourse.processing.org/t/help-with-loaddata-please/17749)

<div class="topic-metadata">

**Author:** [@wcneill](https://discourse.processing.org/u/wcneill)\
**Replies:** 1\
**Last updated:** [February 11, 2020, 8:51pm UTC](https://discourse.processing.org/t/help-with-loaddata-please/17749 "2020-02-11T20:51:40Z")

</div>

I’m following along on the Coursera/UCSD class on Java programming. I realize this may be an Unfolding issue, but it seems that Unfolding and Processing are inextricably linked, so here I am. I’m getting a null pointer …

---

## [Getting list of filenames in a folder](https://discourse.processing.org/t/getting-list-of-filenames-in-a-folder/17747)

<div class="topic-metadata">

**Author:** [@cupofcalculus](https://discourse.processing.org/u/cupofcalculus)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 7:54pm UTC](https://discourse.processing.org/t/getting-list-of-filenames-in-a-folder/17747 "2020-02-11T19:54:11Z")

</div>

I’m trying to write the Python equivalent of Java’s: fileList = dataFile("").listFiles(); I’m not seeing a listFiles() in the Python reference. Am I missing it, or a work-around?

---

## [Erro : Untaught SyntaxError: unexpected token 'var'](https://discourse.processing.org/t/erro-untaught-syntaxerror-unexpected-token-var/17733)

<div class="topic-metadata">

**Author:** [@Leonhard](https://discourse.processing.org/u/Leonhard)\
**Replies:** 6\
**Last updated:** [February 11, 2020, 6:11pm UTC](https://discourse.processing.org/t/erro-untaught-syntaxerror-unexpected-token-var/17733 "2020-02-11T18:11:55Z")

</div>

Hi, I’m trying to convert this code to JavaScript, but this error appears: “Untaught SyntaxError: unexpected token ‘var’”. Converted code: https://www.openprocessing.org/sketch/839422/embed/ Original code: https://www.…

---

## [Size() not working](https://discourse.processing.org/t/size-not-working/17660)

<div class="topic-metadata">

**Author:** [@aradeea](https://discourse.processing.org/u/aradeea)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 3:41pm UTC](https://discourse.processing.org/t/size-not-working/17660 "2020-02-11T15:41:14Z")

</div>

Hi there, I’m having problems with size(), it doesn’t work in any sketch. I have even tried to put in on settings() but it doesn’t work either. I have tried Processing 3.5.3 and 3.5.4. void setup(){ size(100,100); } …

---

## [p5.Speech with Microphone Input](https://discourse.processing.org/t/p5-speech-with-microphone-input/17725)

<div class="topic-metadata">

**Author:** [@yehonatan.cohen](https://discourse.processing.org/u/yehonatan.cohen)\
**Replies:** 0\
**Last updated:** [February 11, 2020, 11:36am UTC](https://discourse.processing.org/t/p5-speech-with-microphone-input/17725 "2020-02-11T11:36:01Z")

</div>

Hey, So I’m trying to make the SpeechRec work with the AudioIn, to adjust the font size according to the volume level. But for some reason I don’t get any data from the AudioIn, I don’t see anything on the console. I’…

---

## [Clickable dropdown menu](https://discourse.processing.org/t/clickable-dropdown-menu/17668)

<div class="topic-metadata">

**Author:** [@rihab](https://discourse.processing.org/u/rihab)\
**Replies:** 2\
**Last updated:** [February 11, 2020, 3:04pm UTC](https://discourse.processing.org/t/clickable-dropdown-menu/17668 "2020-02-11T15:04:27Z")

</div>

Hi I want to make a clickable dropdown menu but I find some problems function setup() { textAlign(CENTER); //background(200); sel = createSelect(); sel.position(11.5, 12 ); sel.size(39, 39) sel.option('A'…

---

## [Multiple Canvases preload()](https://discourse.processing.org/t/multiple-canvases-preload/17702)

<div class="topic-metadata">

**Author:** [@dc527x](https://discourse.processing.org/u/dc527x)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 3:02pm UTC](https://discourse.processing.org/t/multiple-canvases-preload/17702 "2020-02-11T15:02:47Z")

</div>

If I have multiple sketches in my HTML page, what is the best way to ensure that they all load after the preload function? As of now I have three sketches. In sketch3 I have a preload function. The issue is I need to re…

---

## [Open file in folder and subfolders](https://discourse.processing.org/t/open-file-in-folder-and-subfolders/17552)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 6\
**Last updated:** [February 11, 2020, 2:12pm UTC](https://discourse.processing.org/t/open-file-in-folder-and-subfolders/17552 "2020-02-11T14:12:19Z")

</div>

Hello, I had this code working at some point. However I’m not sure what I’ve changed and now it’s broken. The method should open every file in a folder and in each subfolders (recursively) to check which one has less l…

---

## [Visually show when 2 pshape lines cross - transparency?](https://discourse.processing.org/t/visually-show-when-2-pshape-lines-cross-transparency/17694)

<div class="topic-metadata">

**Author:** [@martinh](https://discourse.processing.org/u/martinh)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 11:41am UTC](https://discourse.processing.org/t/visually-show-when-2-pshape-lines-cross-transparency/17694 "2020-02-11T11:41:01Z")

</div>

Hi, I’m simply drawing lines for a schematic program using PShapes, and I want some visual indication when lines cross. I’d like to do this by controlling the transparency of the PShape lines so that a crossing would sho…

---

## [Processing Project: falling circles](https://discourse.processing.org/t/processing-project-falling-circles/17712)

<div class="topic-metadata">

**Author:** [@kandrews](https://discourse.processing.org/u/kandrews)\
**Replies:** 1\
**Last updated:** [February 11, 2020, 10:12am UTC](https://discourse.processing.org/t/processing-project-falling-circles/17712 "2020-02-11T10:12:08Z")

</div>

so I’m working on code and I’ve created a falling circle code. right now the circle have random diameter, speed, color, and etc. I’m trying to make the circles interact for a project. every time the circles overlap they …

---

## [Making 3D walls visible](https://discourse.processing.org/t/making-3d-walls-visible/17708)

<div class="topic-metadata">

**Author:** [@Camalf](https://discourse.processing.org/u/Camalf)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 9:34am UTC](https://discourse.processing.org/t/making-3d-walls-visible/17708 "2020-02-11T09:34:31Z")

</div>

I have a 3d box bouncing sim, with a camera around the mouse. anyways i want to make the walls different colors so u can tell its 3d, heres my code. float x; float y; int xa; int xb; int xdirection = 1; int ydirect…

---

## [Handle (and consume) mouse events in classes](https://discourse.processing.org/t/handle-and-consume-mouse-events-in-classes/17689)

<div class="topic-metadata">

**Author:** [@Alex\_Pr](https://discourse.processing.org/u/Alex_Pr)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 1:30am UTC](https://discourse.processing.org/t/handle-and-consume-mouse-events-in-classes/17689 "2020-02-11T01:30:23Z")

</div>

Is there a way to handle (and consume) mouse events within classes, hierarchically, instead of having to call the handlers from, say, the mousePressed() method? Registering the class methods works for handling the event…

---

## [Cannot do if/else statement with Arduino PIR motion sensor](https://discourse.processing.org/t/cannot-do-if-else-statement-with-arduino-pir-motion-sensor/17679)

<div class="topic-metadata">

**Author:** [@arduinonoob](https://discourse.processing.org/u/arduinonoob)\
**Replies:** 3\
**Last updated:** [February 10, 2020, 11:15pm UTC](https://discourse.processing.org/t/cannot-do-if-else-statement-with-arduino-pir-motion-sensor/17679 "2020-02-10T23:15:02Z")

</div>

Project overview: I am connecting an Arduino to processing because I want to speed up/speed down a video through LOW/HIGH on the motion sensor. When the motion sensor detects movement, I need the speed of the video to sl…

---

## [Use javax.swing](https://discourse.processing.org/t/use-javax-swing/17669)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 2\
**Last updated:** [February 9, 2020, 6:45pm UTC](https://discourse.processing.org/t/use-javax-swing/17669 "2020-02-09T18:45:13Z")

</div>

Hi Just some questions regarding using swing: I want to make a sketch that uses javax.swing for the ui buttons and stuff: Does processing have a default JFrame tha I should use (the one I’m interested in)? I have to …

---

## [How to access the sub-arrays of an Array list?](https://discourse.processing.org/t/how-to-access-the-sub-arrays-of-an-array-list/17695)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 4\
**Last updated:** [February 10, 2020, 7:16pm UTC](https://discourse.processing.org/t/how-to-access-the-sub-arrays-of-an-array-list/17695 "2020-02-10T19:16:45Z")

</div>

Hi, Can someone kindly explain how to access the sub arrays of an ArrayList in Processing Java ? The example below throws a casting error when I try to get of the sub-arrays at a specific index. cannot convert from O…

---

## [Can't import AWS library](https://discourse.processing.org/t/cant-import-aws-library/17623)

<div class="topic-metadata">

**Author:** [@Hubbit200](https://discourse.processing.org/u/Hubbit200)\
**Replies:** 1\
**Last updated:** [February 10, 2020, 6:45pm UTC](https://discourse.processing.org/t/cant-import-aws-library/17623 "2020-02-10T18:45:21Z")

</div>

I’ve been trying to work this out for a few days, but I’m starting to give up… How do I import and use the Amazon AWS 2.0 SDK in Processing? I want to use Amazon DynamoDB to be able to have a few variables (highscores,…

---

## [How to change vertical stripes to angled stripes?](https://discourse.processing.org/t/how-to-change-vertical-stripes-to-angled-stripes/17690)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 2\
**Last updated:** [February 10, 2020, 4:52pm UTC](https://discourse.processing.org/t/how-to-change-vertical-stripes-to-angled-stripes/17690 "2020-02-10T16:52:17Z")

</div>

I have a sketch that divides the screen into a bunch of vertical stripes, with each stripe drawn in a distinct color. I have the colors stored in an ArrayList and I use lerpColor() to gradually fade each stripe into the…

---

## [Help with making vector array with specified coordinates](https://discourse.processing.org/t/help-with-making-vector-array-with-specified-coordinates/17671)

<div class="topic-metadata">

**Author:** [@Dangeroustuber](https://discourse.processing.org/u/Dangeroustuber)\
**Replies:** 3\
**Last updated:** [February 10, 2020, 2:31pm UTC](https://discourse.processing.org/t/help-with-making-vector-array-with-specified-coordinates/17671 "2020-02-10T14:31:44Z")

</div>

Hello. I would like help implementing this idea from C# code to processing private Point\[\] grads = new Point\[\] { new Point(0, 1), new Point(1, 1), new Point(1, 0), new Point(1, -1), new Point(0, -1), new Point…

---

## [2D Perlin noise function](https://discourse.processing.org/t/2d-perlin-noise-function/17602)

<div class="topic-metadata">

**Author:** [@Dangeroustuber](https://discourse.processing.org/u/Dangeroustuber)\
**Replies:** 3\
**Last updated:** [February 10, 2020, 2:09pm UTC](https://discourse.processing.org/t/2d-perlin-noise-function/17602 "2020-02-10T14:09:20Z")

</div>

I will keep this brief, im trying to implement my own perlin noise function. It does not work, why does it not work? How can i make it work? I also want to add the fact that i have been programming in proccessing for …

---

## [Help! making a game project](https://discourse.processing.org/t/help-making-a-game-project/17681)

<div class="topic-metadata">

**Author:** [@Thaunagamer](https://discourse.processing.org/u/Thaunagamer)\
**Replies:** 1\
**Last updated:** [February 10, 2020, 12:57pm UTC](https://discourse.processing.org/t/help-making-a-game-project/17681 "2020-02-10T12:57:34Z")

</div>

Back again. This portion is part of one of my levels where i have 5 levels with platforms the “player” (shape) is suppose to navigate through with out touching. on my previous level i was able to make to 2 levels with p…

---

## [I want more fps than 60 in android](https://discourse.processing.org/t/i-want-more-fps-than-60-in-android/17663)

<div class="topic-metadata">

**Author:** [@iamjustcurious](https://discourse.processing.org/u/iamjustcurious)\
**Replies:** 3\
**Last updated:** [February 10, 2020, 8:58am UTC](https://discourse.processing.org/t/i-want-more-fps-than-60-in-android/17663 "2020-02-10T08:58:36Z")

</div>

How can I get more fps than 60 in android?

---

## [Playing video with PIR motion sensor](https://discourse.processing.org/t/playing-video-with-pir-motion-sensor/8214)

<div class="topic-metadata">

**Author:** [@kud7](https://discourse.processing.org/u/kud7)\
**Replies:** 11\
**Last updated:** [February 10, 2020, 3:25am UTC](https://discourse.processing.org/t/playing-video-with-pir-motion-sensor/8214 "2020-02-10T03:25:18Z")

</div>

Processing sketch working great, which i can play video from hdd and PIR motion sensor detect my motion but actually i want to trigger video or Processing sketch from with PIR motion sensor. I also tested motion sensor w…

---

## [Double click on Android](https://discourse.processing.org/t/double-click-on-android/5912)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 11\
**Last updated:** [February 9, 2020, 5:10pm UTC](https://discourse.processing.org/t/double-click-on-android/5912 "2020-02-09T17:10:44Z")

</div>

Hello, Processing can detect a double click on a phone ? If so, how to code it ? Thank you.

---

## [Kinect v1 \*\*I am trying to trigger sound files as my body moves\*\*](https://discourse.processing.org/t/kinect-v1-i-am-trying-to-trigger-sound-files-as-my-body-moves/17664)

<div class="topic-metadata">

**Author:** [@chi](https://discourse.processing.org/u/chi)\
**Replies:** 2\
**Last updated:** [February 9, 2020, 4:44pm UTC](https://discourse.processing.org/t/kinect-v1-i-am-trying-to-trigger-sound-files-as-my-body-moves/17664 "2020-02-09T16:44:00Z")

</div>

Hi! I am new to processing and the kinect, I am trying to play a sound files as my body moves - specifically joints (i.e right arm in x position triggers an audio file ) any links to tutorials or any help at all will be…

---

## [PIR motion sensor, Arduino, Processing, not working](https://discourse.processing.org/t/pir-motion-sensor-arduino-processing-not-working/17655)

<div class="topic-metadata">

**Author:** [@arduinonoob](https://discourse.processing.org/u/arduinonoob)\
**Replies:** 4\
**Last updated:** [February 9, 2020, 4:13pm UTC](https://discourse.processing.org/t/pir-motion-sensor-arduino-processing-not-working/17655 "2020-02-09T16:13:11Z")

</div>

I need help asap please Hello, I am trying to get a mp4 video to play in processing whenever motion is detected in Arduino and then I need it to pause when motion ends. I am a student and I have been trying for 10 hours…

---

## [Pi 4, buster and GLvideo demise](https://discourse.processing.org/t/pi-4-buster-and-glvideo-demise/12909)

<div class="topic-metadata">

**Author:** [@steve\_j](https://discourse.processing.org/u/steve_j)\
**Replies:** 10\
**Last updated:** [February 8, 2020, 9:53pm UTC](https://discourse.processing.org/t/pi-4-buster-and-glvideo-demise/12909 "2020-02-08T21:53:28Z")

</div>

Hi all, So unfortunately the glvideo library is broken with buster and pi4, and is no longer being developed or supported by gohai. Does anyone know if the is plans to make the processing video library compatible? Or do…

---

## [Help needed- asteroids collision detection](https://discourse.processing.org/t/help-needed-asteroids-collision-detection/17622)

<div class="topic-metadata">

**Author:** [@commie630](https://discourse.processing.org/u/commie630)\
**Replies:** 4\
**Last updated:** [February 8, 2020, 9:48pm UTC](https://discourse.processing.org/t/help-needed-asteroids-collision-detection/17622 "2020-02-08T21:48:10Z")

</div>

I am working on a school assignment where we are making “Asteroids” in processing.py My school uses a slightly modified version of processing.py: for example, mouseX is mouse.x. I need help with my collision detection w…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=393)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=395)
