# Latest

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

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

**Page:** 429

---

## [Sketch is displayed twice inside my index.html page](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335)

<div class="topic-metadata">

**Author:** [@MsMonicaAraujo](https://discourse.processing.org/u/MsMonicaAraujo)\
**Replies:** 16\
**Last updated:** [November 8, 2019, 5:46pm UTC](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335 "2019-11-08T17:46:27Z")

</div>

Hi, I’m trying to run my sketches in a pretty simple webpage, just to show students how to put P5.js and index.html together and run it. What happens is that the canvas and its elements and behavior are created twice on …

---

## [Easy typing program](https://discourse.processing.org/t/easy-typing-program/15226)

<div class="topic-metadata">

**Author:** [@helpme123](https://discourse.processing.org/u/helpme123)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 5:30pm UTC](https://discourse.processing.org/t/easy-typing-program/15226 "2019-11-08T17:30:06Z")

</div>

Im trying to create a program where a random letter appears on the screen and the user has to type it to gain 1 point and if they type it within a time frame they get bonus points (I haven’t wrote the point system yet be…

---

## [Creating a self-moving face (eyes and mouth only)](https://discourse.processing.org/t/creating-a-self-moving-face-eyes-and-mouth-only/15293)

<div class="topic-metadata">

**Author:** [@JigKSaw](https://discourse.processing.org/u/JigKSaw)\
**Replies:** 3\
**Last updated:** [November 8, 2019, 3:52pm UTC](https://discourse.processing.org/t/creating-a-self-moving-face-eyes-and-mouth-only/15293 "2019-11-08T15:52:20Z")

</div>

Hi there. It’s my intention to create a storyteller at the center of the window, who will speak, kinda like this: :eyes: :lips: which opens autonomously eyes and mouth (in a mechanic way). How can I draw/create them? …

---

## [Convert image in to blinking LED on processing](https://discourse.processing.org/t/convert-image-in-to-blinking-led-on-processing/15022)

<div class="topic-metadata">

**Author:** [@shonerudeetha](https://discourse.processing.org/u/shonerudeetha)\
**Replies:** 45\
**Last updated:** [November 8, 2019, 6:37am UTC](https://discourse.processing.org/t/convert-image-in-to-blinking-led-on-processing/15022 "2019-11-08T06:37:43Z")

</div>

Dear guys, i m a very beginner for processing.i m looking for a help from you.i have connect a SD card and a LED on my arduino board. I know processing can get a pixel array from that image which have saved in SD. ther…

---

## [RGB Colour Squares](https://discourse.processing.org/t/rgb-colour-squares/15266)

<div class="topic-metadata">

**Author:** [@Civil](https://discourse.processing.org/u/Civil)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 5:48am UTC](https://discourse.processing.org/t/rgb-colour-squares/15266 "2019-11-08T05:48:04Z")

</div>

So I thought a fun little thing to do would be to draw some squares using RGB and the simple double for loop. However, there are 3 different combinations that you can do: Iterate Red and Green, leave Blue 255 Iterate R…

---

## [How to save logs in a Processing web app using processing.js?](https://discourse.processing.org/t/how-to-save-logs-in-a-processing-web-app-using-processing-js/15196)

<div class="topic-metadata">

**Author:** [@emabiatch](https://discourse.processing.org/u/emabiatch)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 4:40am UTC](https://discourse.processing.org/t/how-to-save-logs-in-a-processing-web-app-using-processing-js/15196 "2019-11-08T04:40:53Z")

</div>

I am building a simulation of a microwave web app for my thesis. I found out that with Processing was exactly what I was looking for and with the processing.js it is possible to run it in a web page that I’ll use to shar…

---

## [saveCanvas file name issues](https://discourse.processing.org/t/savecanvas-file-name-issues/15320)

<div class="topic-metadata">

**Author:** [@andylion](https://discourse.processing.org/u/andylion)\
**Replies:** 3\
**Last updated:** [November 8, 2019, 1:48am UTC](https://discourse.processing.org/t/savecanvas-file-name-issues/15320 "2019-11-08T01:48:00Z")

</div>

So I’ve been searching through various forums trying to find a solution, and I’ve turned up empty. I’m wondering if someone here can help. I’ve created a simple sketch that generates a series of random shapes as part of…

---

## [Variable to read an array of numbers in p5?](https://discourse.processing.org/t/variable-to-read-an-array-of-numbers-in-p5/13377)

<div class="topic-metadata">

**Author:** [@calornorte](https://discourse.processing.org/u/calornorte)\
**Replies:** 4\
**Last updated:** [November 7, 2019, 10:58pm UTC](https://discourse.processing.org/t/variable-to-read-an-array-of-numbers-in-p5/13377 "2019-11-07T22:58:18Z")

</div>

I come from modular programing, (Max/puredata) world, the pic above explains better (at least for me) what I want to do in p5. I have a variable that goes in between 0 and 100, I want to use this variable to read from…

---

## [Serial.list() can't work in python mode](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 7:54pm UTC](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681 "2019-11-07T19:54:11Z")

</div>

code is very simply. But can’t work. add\_library('serial') def setup(): size(200,200) print Serial.list() def draw(): background(0) The version is 3.3.7 And I also installed a processing version 2.2.1, i…

---

## [Glitch FX (Processing Version)](https://discourse.processing.org/t/glitch-fx-processing-version/9254)

<div class="topic-metadata">

**Author:** [@JustinJohnson](https://discourse.processing.org/u/JustinJohnson)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 7:12pm UTC](https://discourse.processing.org/t/glitch-fx-processing-version/9254 "2019-11-07T19:12:52Z")

</div>

Hey everyone, I made (and still sort of in the process of) a fun sketch based off of my most popular OpenProcessing sketch (GlitchFX). It includes some filters from the original to emulate glitch effects, and it’s fair…

---

## [Unsure why I cant call a method from a class](https://discourse.processing.org/t/unsure-why-i-cant-call-a-method-from-a-class/15315)

<div class="topic-metadata">

**Author:** [@Djharr](https://discourse.processing.org/u/Djharr)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 5:45pm UTC](https://discourse.processing.org/t/unsure-why-i-cant-call-a-method-from-a-class/15315 "2019-11-07T17:45:58Z")

</div>

Why does it say my DATE class or method doesnt exist? probably missing something silly but new to processing.

---

## [string.toUpperCase() behaving weirdly](https://discourse.processing.org/t/string-touppercase-behaving-weirdly/15321)

<div class="topic-metadata">

**Author:** [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 5:19pm UTC](https://discourse.processing.org/t/string-touppercase-behaving-weirdly/15321 "2019-11-07T17:19:21Z")

</div>

I was trying to make an if statement that checks a string but isn’t case sensitive, and I came across some weird behavior: String str = "Hello World."; void setup(){ println(str.toUpperCase()); //Outputs HELLO WORLD.…

---

## [Switching between front and rear camera on a smartphone using P5.js #4140](https://discourse.processing.org/t/switching-between-front-and-rear-camera-on-a-smartphone-using-p5-js-4140/15316)

<div class="topic-metadata">

**Author:** [@GeeveGeorge](https://discourse.processing.org/u/GeeveGeorge)\
**Replies:** 0\
**Last updated:** [November 7, 2019, 4:01pm UTC](https://discourse.processing.org/t/switching-between-front-and-rear-camera-on-a-smartphone-using-p5-js-4140/15316 "2019-11-07T16:01:55Z")

</div>

Hi Guys, I have written the program below for switching between front and rear camera on a phone when clicking on the switchBtn. On cliking the button, it doesn’t switch as intended. Hope you could have a look at my cod…

---

## [How to create real randomized objects](https://discourse.processing.org/t/how-to-create-real-randomized-objects/15304)

<div class="topic-metadata">

**Author:** [@Andreas](https://discourse.processing.org/u/Andreas)\
**Replies:** 1\
**Last updated:** [November 7, 2019, 1:55pm UTC](https://discourse.processing.org/t/how-to-create-real-randomized-objects/15304 "2019-11-07T13:55:05Z")

</div>

I want to make an ‘iOS dynamic wallpaper generator’ in processing. I made a class that can draw a dynamic gradient color spot. But I don’t know how to draw multiple spots with different(random) color, shape, and positio…

---

## [Self contained layers by extending PGraphics](https://discourse.processing.org/t/self-contained-layers-by-extending-pgraphics/15307)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 0\
**Last updated:** [November 7, 2019, 1:48pm UTC](https://discourse.processing.org/t/self-contained-layers-by-extending-pgraphics/15307 "2019-11-07T13:48:21Z")

</div>

Inspired by code I showed in https://discourse.processing.org/t/writing-processing-in-kotlin/3957/24 I wrote two examples that might be interesting for someone. Maybe not :slight\_smile: 1 FPSLayer fpsLayer; // FPS vo…

---

## [Pong collision when ball hits paddle](https://discourse.processing.org/t/pong-collision-when-ball-hits-paddle/15281)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 11:46am UTC](https://discourse.processing.org/t/pong-collision-when-ball-hits-paddle/15281 "2019-11-07T11:46:57Z")

</div>

Hello, can you help me how to do collision so when the ball hits the paddle, it will go back? The code \> float x = 400; float y = 300; float k = width - 20; float e = height / 2; float c = 715; float h = height / 2; fl…

---

## [Playing audio once on Processing Android](https://discourse.processing.org/t/playing-audio-once-on-processing-android/15032)

<div class="topic-metadata">

**Author:** [@anony](https://discourse.processing.org/u/anony)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 11:36am UTC](https://discourse.processing.org/t/playing-audio-once-on-processing-android/15032 "2019-11-07T11:36:11Z")

</div>

Hi guys! I was trying to play an audio file only once, not il loop. I found Cassette as an android audio library, but it contains only file.loop() and file.stop(). I was trying to create a function which can do this, but…

---

## [Keep getting misclicks, with my buttonClicked function](https://discourse.processing.org/t/keep-getting-misclicks-with-my-buttonclicked-function/15295)

<div class="topic-metadata">

**Author:** [@JellyG37](https://discourse.processing.org/u/JellyG37)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 11:30am UTC](https://discourse.processing.org/t/keep-getting-misclicks-with-my-buttonclicked-function/15295 "2019-11-07T11:30:10Z")

</div>

Hello everyone. I’m coding a GUI for a schoolproject, where i need to register whether or not the user has clicked on the right button or not. I’ve made different hitboxes on the screen where the clicks will be true, but…

---

## [How to use images on windows 10](https://discourse.processing.org/t/how-to-use-images-on-windows-10/15284)

<div class="topic-metadata">

**Author:** [@jpmills13](https://discourse.processing.org/u/jpmills13)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 1:43am UTC](https://discourse.processing.org/t/how-to-use-images-on-windows-10/15284 "2019-11-07T01:43:20Z")

</div>

Im trying to insert custom images into p5JS, I cant enter any images period. Even if I change the name of the base files and rename them excatly what they were before hand the images now dont work. My code and files are …

---

## [Arduino with usb host shield and 2d Scanner](https://discourse.processing.org/t/arduino-with-usb-host-shield-and-2d-scanner/15234)

<div class="topic-metadata">

**Author:** [@Graci2017](https://discourse.processing.org/u/Graci2017)\
**Replies:** 10\
**Last updated:** [November 6, 2019, 6:51pm UTC](https://discourse.processing.org/t/arduino-with-usb-host-shield-and-2d-scanner/15234 "2019-11-06T18:51:13Z")

</div>

Hello Processing World. I am new to Processing, but not to Arduino. i am working with a 2d Scanner connected to a USB Host Shield in which is mounted onto an Arduino MEGA . Well the thing is that the Arduino sees the Sca…

---

## [Launch sketch with vm arguments](https://discourse.processing.org/t/launch-sketch-with-vm-arguments/15206)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 2:05pm UTC](https://discourse.processing.org/t/launch-sketch-with-vm-arguments/15206 "2019-11-06T14:05:57Z")

</div>

Is there any way to launch a sketch with vm arguments?

---

## [Why wont the ball animate?](https://discourse.processing.org/t/why-wont-the-ball-animate/15273)

<div class="topic-metadata">

**Author:** [@drawrs](https://discourse.processing.org/u/drawrs)\
**Replies:** 8\
**Last updated:** [November 6, 2019, 9:11am UTC](https://discourse.processing.org/t/why-wont-the-ball-animate/15273 "2019-11-06T09:11:57Z")

</div>

// Where is the circle let x, y; function setup() { createCanvas(720, 400); // Starts in the middle } function draw() { background(200); ball(); } function ball(x, y) { x = width / 2; y = height; // D…

---

## [Line help beginner completely new](https://discourse.processing.org/t/line-help-beginner-completely-new/15120)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 15\
**Last updated:** [November 6, 2019, 9:05am UTC](https://discourse.processing.org/t/line-help-beginner-completely-new/15120 "2019-11-06T09:05:45Z")

</div>

How to make a line that is at the same position as mouse but is longer than the distance. below

---

## [Draw line and play corresponding sound](https://discourse.processing.org/t/draw-line-and-play-corresponding-sound/15075)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 8:31am UTC](https://discourse.processing.org/t/draw-line-and-play-corresponding-sound/15075 "2019-11-06T08:31:21Z")

</div>

Hi, sorry for the title, didn’t know what to put. My question is mostly theoretical rather than actual code. I made a simple canvas where a user can draw a line (as image below). Now, assuming that vertical axis corre…

---

## [I want something like persistent ripples on the pool, But problems occur!](https://discourse.processing.org/t/i-want-something-like-persistent-ripples-on-the-pool-but-problems-occur/15271)

<div class="topic-metadata">

**Author:** [@CMSwift](https://discourse.processing.org/u/CMSwift)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 3:56am UTC](https://discourse.processing.org/t/i-want-something-like-persistent-ripples-on-the-pool-but-problems-occur/15271 "2019-11-06T03:56:10Z")

</div>

Refering to https://www.openprocessing.org/sketch/775186 I made a little bit changes :slight\_smile: float incX = 0.04; float incY = 0.05; float distance = 12; int wavesHeight = 200; boolean looping = true; float frame …

---

## [contactStarted() in Fisica(python Mode) not worked](https://discourse.processing.org/t/contactstarted-in-fisica-python-mode-not-worked/15172)

<div class="topic-metadata">

**Author:** [@Shitou](https://discourse.processing.org/u/Shitou)\
**Replies:** 2\
**Last updated:** [November 6, 2019, 2:25am UTC](https://discourse.processing.org/t/contactstarted-in-fisica-python-mode-not-worked/15172 "2019-11-06T02:25:49Z")

</div>

The contactStarted() in my python code never be called, please tell me how to fix it. add\_library('fisica') from my\_module import \* from random import random def contactStarted(c): print("hello") b1 = c.getBo…

---

## [Help with drawing edges of 3d shapes against background!](https://discourse.processing.org/t/help-with-drawing-edges-of-3d-shapes-against-background/15264)

<div class="topic-metadata">

**Author:** [@projecty](https://discourse.processing.org/u/projecty)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 12:16am UTC](https://discourse.processing.org/t/help-with-drawing-edges-of-3d-shapes-against-background/15264 "2019-11-06T00:16:08Z")

</div>

PLEASE RESPOND WITH AT LEAST “this is impossible for processing” OR SOMETHING! Hi there! I have been researching this for a while and I can’t be sure if its something to do with shaders or not, but I haven’t been able …

---

## [Looking for guidance on rotating objects](https://discourse.processing.org/t/looking-for-guidance-on-rotating-objects/15247)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 12:12am UTC](https://discourse.processing.org/t/looking-for-guidance-on-rotating-objects/15247 "2019-11-06T00:12:13Z")

</div>

HI, I’m looking for ideas on how to approach this concept. I have a smaller octagon inside of another ocagon. They are connected by lines on each vertex. I want to rotate the outside octagon while keeping the inner, sm…

---

## [Obstacle game in 3d (with 2d obstacles), unable to add more than 1 obstacle](https://discourse.processing.org/t/obstacle-game-in-3d-with-2d-obstacles-unable-to-add-more-than-1-obstacle/15110)

<div class="topic-metadata">

**Author:** [@D.Signer](https://discourse.processing.org/u/D.Signer)\
**Replies:** 10\
**Last updated:** [November 5, 2019, 10:12pm UTC](https://discourse.processing.org/t/obstacle-game-in-3d-with-2d-obstacles-unable-to-add-more-than-1-obstacle/15110 "2019-11-05T22:12:28Z")

</div>

I am trying to make an obstacle game where you are supposedly driving and there are trees you need to avoid (for now those are just rectangles). Since I am pretty new to processing, I tried some stuff out, and it all see…

---

## [Triangle movement | Last thread this week](https://discourse.processing.org/t/triangle-movement-last-thread-this-week/15191)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 8:33pm UTC](https://discourse.processing.org/t/triangle-movement-last-thread-this-week/15191 "2019-11-03T20:33:56Z")

</div>

I Have an ellipse(x, y, 20, 20); and I want it to be a triangle of any parameter, but will still have position x, y so I can move it with my keys. Thank you!!

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

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