# Latest

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

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

**Page:** 294

---

## [Posterize question-What does this statement mean(set the pixel at the current index to r,g,b.)?](https://discourse.processing.org/t/posterize-question-what-does-this-statement-mean-set-the-pixel-at-the-current-index-to-r-g-b/24862)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 3\
**Last updated:** [October 24, 2020, 1:40am UTC](https://discourse.processing.org/t/posterize-question-what-does-this-statement-mean-set-the-pixel-at-the-current-index-to-r-g-b/24862 "2020-10-24T01:40:14Z")

</div>

I am supposed to posterize an image with purple and green. This is the code I am working with. I am trying to set the pixel at the current index to r,g,b. What exactly does it mean to::: set the pixel at the current i…

---

## [VIDEO LIBRARY FOR MAC CATALINA (64 bit)?](https://discourse.processing.org/t/video-library-for-mac-catalina-64-bit/24849)

<div class="topic-metadata">

**Author:** [@ggort](https://discourse.processing.org/u/ggort)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 5:31pm UTC](https://discourse.processing.org/t/video-library-for-mac-catalina-64-bit/24849 "2020-10-23T17:31:33Z")

</div>

Has anyone found a work around for video library for Mac Catalina or a new library for 64 bit? Everything I see, and everything I’ve tried suggested in the forum, doesn’t recognize webcam/external cam/or onboard cam. not…

---

## [Need help coding with coding SNAKE](https://discourse.processing.org/t/need-help-coding-with-coding-snake/24848)

<div class="topic-metadata">

**Author:** [@JohnnyTesto](https://discourse.processing.org/u/JohnnyTesto)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 12:31pm UTC](https://discourse.processing.org/t/need-help-coding-with-coding-snake/24848 "2020-10-23T12:31:51Z")

</div>

Hello, I really need help. I have to code snake but I have no clue anymore what to do. I currently have the snake coded and an apple which spawns at the start randomly. I need help in the following: Snake should be ab…

---

## [OpenCV detection problem](https://discourse.processing.org/t/opencv-detection-problem/24831)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 12:27pm UTC](https://discourse.processing.org/t/opencv-detection-problem/24831 "2020-10-23T12:27:07Z")

</div>

So I’m doing a videogame where you use your face to move the gun and blink to shot. Mi first attempt was doing it like this: setup() { camara = new Capture( this, ancho, alto ); camara.start(); opencv = new Open…

---

## [Spawn one sprite when another sprite exits](https://discourse.processing.org/t/spawn-one-sprite-when-another-sprite-exits/24811)

<div class="topic-metadata">

**Author:** [@jxjohn](https://discourse.processing.org/u/jxjohn)\
**Replies:** 14\
**Last updated:** [October 23, 2020, 12:19pm UTC](https://discourse.processing.org/t/spawn-one-sprite-when-another-sprite-exits/24811 "2020-10-23T12:19:25Z")

</div>

Hi I’m trying to say that whenever the enemy sprite leaves the screen a mini sprite will be spawned. I already managed to ensure that mini sprites are spawn when enemy leaves the screen but it spawns all eight mini sprit…

---

## [Can't get audioIn in Android browsers (apparently solved)](https://discourse.processing.org/t/cant-get-audioin-in-android-browsers-apparently-solved/24832)

<div class="topic-metadata">

**Author:** [@rvalla](https://discourse.processing.org/u/rvalla)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 10:53am UTC](https://discourse.processing.org/t/cant-get-audioin-in-android-browsers-apparently-solved/24832 "2020-10-23T10:53:14Z")

</div>

Hi everyone, I am working in a little simulation to guide users to record sound. I am testing p5.sound here (the code is this). The sketch works records and triggered a local download correctly on Firefox, Brave, Opera…

---

## [Boolean / if statement help](https://discourse.processing.org/t/boolean-if-statement-help/24809)

<div class="topic-metadata">

**Author:** [@kimchi](https://discourse.processing.org/u/kimchi)\
**Replies:** 9\
**Last updated:** [October 23, 2020, 8:13am UTC](https://discourse.processing.org/t/boolean-if-statement-help/24809 "2020-10-23T08:13:20Z")

</div>

Hi there, I’m trying to make a program that has a “fly” that jumps around the 4 dots of the clock. I have to use if statements in order to make the fly to move and I think I have a good idea of how to do it, but now I’m …

---

## [Multplying each element in an array](https://discourse.processing.org/t/multplying-each-element-in-an-array/24827)

<div class="topic-metadata">

**Author:** [@Mischief-Managed](https://discourse.processing.org/u/Mischief-Managed)\
**Replies:** 7\
**Last updated:** [October 23, 2020, 1:13am UTC](https://discourse.processing.org/t/multplying-each-element-in-an-array/24827 "2020-10-23T01:13:44Z")

</div>

Hi, I wanted to make an array where each element is simply being multiplied by 2. Here is what I have so far. Help would be greatly appreciated int expo(int\[\] array\[\]){ int mult = 2; for (int i=0;i\<array.length;i++)…

---

## [Could somebody proof-read my curve Class?](https://discourse.processing.org/t/could-somebody-proof-read-my-curve-class/24828)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [October 22, 2020, 11:25pm UTC](https://discourse.processing.org/t/could-somebody-proof-read-my-curve-class/24828 "2020-10-22T23:25:35Z")

</div>

Hello all! I just wrote a class for curve. Could somebody check / proofread my code? I am surprised why the curve goes UP when my the control point goes down. my understanding of https://www.processing.org/reference/…

---

## [Is it possible to dim the entire screen in Processing?](https://discourse.processing.org/t/is-it-possible-to-dim-the-entire-screen-in-processing/24786)

<div class="topic-metadata">

**Author:** [@tea](https://discourse.processing.org/u/tea)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 11:56am UTC](https://discourse.processing.org/t/is-it-possible-to-dim-the-entire-screen-in-processing/24786 "2020-10-21T11:56:22Z")

</div>

So I’m trying to make a 2D Platformer game that goes like this: A boy (the player) is trying to get home from the starting point before dawn, and he has a companion of a little flame sprite to keep his surrounding illum…

---

## [Additive Wave example](https://discourse.processing.org/t/additive-wave-example/24763)

<div class="topic-metadata">

**Author:** [@DoMi](https://discourse.processing.org/u/DoMi)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 10:55pm UTC](https://discourse.processing.org/t/additive-wave-example/24763 "2020-10-22T22:55:43Z")

</div>

I find a little mistake in Additive Wave exemple, in function renderWave: ellipse(x \* xspacing, height / 2 + yvalues\[x\], 16, 16); height instead of width DoMi

---

## [How do I lerp() colors on a curve? (non linear interpolation)](https://discourse.processing.org/t/how-do-i-lerp-colors-on-a-curve-non-linear-interpolation/24815)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 3\
**Last updated:** [October 22, 2020, 8:26pm UTC](https://discourse.processing.org/t/how-do-i-lerp-colors-on-a-curve-non-linear-interpolation/24815 "2020-10-22T20:26:52Z")

</div>

How do I interpolate two (or maybe even more) colors in a non-linear way along a curve? For example, instead of the mid-point being 50/50, I would want it to be 25/75, or shifted according to the control point. I tried …

---

## [Remove Audio when finished playing](https://discourse.processing.org/t/remove-audio-when-finished-playing/24802)

<div class="topic-metadata">

**Author:** [@Darkfusion2](https://discourse.processing.org/u/Darkfusion2)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 5:21pm UTC](https://discourse.processing.org/t/remove-audio-when-finished-playing/24802 "2020-10-22T17:21:48Z")

</div>

So baysicly I got a Video that starts playing when the score of an clickergame hits 100. Everything works good but when the video is finished it stays on the screen. Is there a way so that when the video is over it is …

---

## [Copying ArrayLists without affecting original](https://discourse.processing.org/t/copying-arraylists-without-affecting-original/24820)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [October 22, 2020, 1:37pm UTC](https://discourse.processing.org/t/copying-arraylists-without-affecting-original/24820 "2020-10-22T13:37:10Z")

</div>

Hi, Is there a way to create a new copy of an ArrayList full of custom classes (in case it’s relevant), such that modifications to the objects in the new list will not affect the originals? Failing that, is there a way…

---

## [How do I make these rows and columns (csv to grid) work?](https://discourse.processing.org/t/how-do-i-make-these-rows-and-columns-csv-to-grid-work/24818)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 12:44pm UTC](https://discourse.processing.org/t/how-do-i-make-these-rows-and-columns-csv-to-grid-work/24818 "2020-10-22T12:44:34Z")

</div>

Hello, I’m trying to make a grid that looks a bit like this photo, except I’m using different data which corresponds to the days of the year. I’ve noticed it works if I use something like “int rows = 10; int cols = 5;” …

---

## [Draw a Pyramid with for-loop and with rect](https://discourse.processing.org/t/draw-a-pyramid-with-for-loop-and-with-rect/24751)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 5\
**Last updated:** [October 20, 2020, 9:07pm UTC](https://discourse.processing.org/t/draw-a-pyramid-with-for-loop-and-with-rect/24751 "2020-10-20T21:07:36Z")

</div>

Hello, I’m trying to get a pyramid with a for loop. It has to start at the middle with a rect like in my code (but there are 2 rects actually idk why) and then go down on both sides step by step but i’m really confused …

---

## [Why isn't my code working when it's the exact same as my tutors?](https://discourse.processing.org/t/why-isnt-my-code-working-when-its-the-exact-same-as-my-tutors/24813)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 9\
**Last updated:** [October 22, 2020, 10:09am UTC](https://discourse.processing.org/t/why-isnt-my-code-working-when-its-the-exact-same-as-my-tutors/24813 "2020-10-22T10:09:05Z")

</div>

Hello, I’m following a tutorial from my tutor and it’s just the start so he made a mistake on purpose for all of the ellipses to fall in to the top left (so that’s not the issue here) but whenever I try to do the exact s…

---

## [Import a lot of svg](https://discourse.processing.org/t/import-a-lot-of-svg/24805)

<div class="topic-metadata">

**Author:** [@Dimdimtri](https://discourse.processing.org/u/Dimdimtri)\
**Replies:** 4\
**Last updated:** [October 22, 2020, 9:08am UTC](https://discourse.processing.org/t/import-a-lot-of-svg/24805 "2020-10-22T09:08:42Z")

</div>

Hi everyone, I wanted to know if there is a solution to import a lot of svg at the same time. they are all in the same folder. I have like 100 and I can’t see myself writing “PShape bot, bot2, bot3 …;” Because I wanted …

---

## [About Processing.video](https://discourse.processing.org/t/about-processing-video/24755)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [October 22, 2020, 6:27am UTC](https://discourse.processing.org/t/about-processing-video/24755 "2020-10-22T06:27:56Z")

</div>

Everytime when I try to run a sketch including processing video library it crashes and gives this error: UnsatisfiedLinkError: Could not load library: gstreamer UnsatisfiedLinkError: Could not load library: gstreamer …

---

## [Why cant I run 2 5pjs sketches on a html website?](https://discourse.processing.org/t/why-cant-i-run-2-5pjs-sketches-on-a-html-website/24806)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 6\
**Last updated:** [October 22, 2020, 12:43am UTC](https://discourse.processing.org/t/why-cant-i-run-2-5pjs-sketches-on-a-html-website/24806 "2020-10-22T00:43:50Z")

</div>

I put two script sources but the second one is not showing up, why and how can I fix this? \<!DOCTYPE html\> \<html lang=" \<head\> \<title\>MNCE P5.js2020 Neon Gallery\</title\> \<meta charset="utf-8"\> \<meta name="viewpo…

---

## [About processing](https://discourse.processing.org/t/about-processing/13648)

<div class="topic-metadata">

**Author:** [@ermina](https://discourse.processing.org/u/ermina)\
**Replies:** 3\
**Last updated:** [August 30, 2019, 9:52am UTC](https://discourse.processing.org/t/about-processing/13648 "2019-08-30T09:52:12Z")

</div>

Hello, i would like to know if there is a way to open an existing apk file with processing 3? If there is, how can i open it and which mode must i use?Android? Thank you

---

## [Object help new user](https://discourse.processing.org/t/object-help-new-user/24711)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 10\
**Last updated:** [October 21, 2020, 9:44pm UTC](https://discourse.processing.org/t/object-help-new-user/24711 "2020-10-21T21:44:35Z")

</div>

I’m a realtively new user. I’ve been watching Dan SHiffman videos and studying the examples given in the processing environment. Lately, I’ve been studying the example in the contributed libraries/controlP5/controllers/c…

---

## [Execution of build is in an endless loop](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803)

<div class="topic-metadata">

**Author:** [@Dr.Quark](https://discourse.processing.org/u/Dr.Quark)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 9:08pm UTC](https://discourse.processing.org/t/execution-of-build-is-in-an-endless-loop/24803 "2020-10-21T21:08:39Z")

</div>

I’m building a sketch for a Samsung Tab A. Everything seems to be connected and going OK, but the build has completed about 50 tasks and is stuck on the last one shown here. What to do? (Processing under Win10) … Task…

---

## [Explosion in on impact](https://discourse.processing.org/t/explosion-in-on-impact/24800)

<div class="topic-metadata">

**Author:** [@kasper1](https://discourse.processing.org/u/kasper1)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 9:05pm UTC](https://discourse.processing.org/t/explosion-in-on-impact/24800 "2020-10-21T21:05:08Z")

</div>

I am trying to implement a code where when the bird hits something it will explode but I am having trouble with displaying it. It gives me the error “NullPointerException” at code \<explosions\[a\].display(); explosions\[a\]…

---

## [Link to Samsung Tab A](https://discourse.processing.org/t/link-to-samsung-tab-a/24750)

<div class="topic-metadata">

**Author:** [@Dr.Quark](https://discourse.processing.org/u/Dr.Quark)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 4:32pm UTC](https://discourse.processing.org/t/link-to-samsung-tab-a/24750 "2020-10-21T16:32:20Z")

</div>

I’m hooked up via USB to the Tab A. The Tab’s settings show the developer options are on and the debugging mode is “on” (debugging mode launches when USB is connected). The Tab USB configuration is MTP. I get all the nor…

---

## [Rosetta Examples development](https://discourse.processing.org/t/rosetta-examples-development/18945)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 79\
**Last updated:** [October 21, 2020, 4:17pm UTC](https://discourse.processing.org/t/rosetta-examples-development/18945 "2020-10-21T16:17:07Z")

</div>

We have a great development chat happening on the Rosetta Examples release announcement thread – so I’m moving all that discussion here so that it can continue. The idea is to make the other thread announcements-only so…

---

## [Read the pixels of input file](https://discourse.processing.org/t/read-the-pixels-of-input-file/24797)

<div class="topic-metadata">

**Author:** [@pixelMaker](https://discourse.processing.org/u/pixelMaker)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 3:26pm UTC](https://discourse.processing.org/t/read-the-pixels-of-input-file/24797 "2020-10-21T15:26:20Z")

</div>

Hi, I have been working with processing on java for a while, but new to JS. I am trying to let the user upload an image, and then I want to be able to use get() or pixels\[\] to read specific pixels within the image the …

---

## [I'm trying to run 5p.js code from the example files but it is stuck at "loading..."](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 3\
**Last updated:** [October 21, 2020, 3:05pm UTC](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794 "2020-10-21T15:05:36Z")

</div>

I’ve double-clicked the index.html file in the example folder that you can download from the p5js website and it’s stuck at loading. I have copy-pasted 51 lines of code from a project I made in open processing into the s…

---

## [Continuously update drawing during mouseDragged](https://discourse.processing.org/t/continuously-update-drawing-during-mousedragged/24762)

<div class="topic-metadata">

**Author:** [@rajmb](https://discourse.processing.org/u/rajmb)\
**Replies:** 6\
**Last updated:** [October 21, 2020, 1:54pm UTC](https://discourse.processing.org/t/continuously-update-drawing-during-mousedragged/24762 "2020-10-21T13:54:41Z")

</div>

I am trying to create a simple mspaint like application on the web using p5 as a learning exercise. I have provided a button to draw an ellipse on the canvas and want to show the ellipse being resized as the mouse is dra…

---

## [Is disabling i18n possible?](https://discourse.processing.org/t/is-disabling-i18n-possible/24792)

<div class="topic-metadata">

**Author:** [@dievardump](https://discourse.processing.org/u/dievardump)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 12:48pm UTC](https://discourse.processing.org/t/is-disabling-i18n-possible/24792 "2020-10-21T12:48:19Z")

</div>

Hi there, I am running p5js in a Sandboxed iframe, with no allow-origin. The used i18n lib tries to access document.cookie which is not safe, throwing an error and preventing p5.js to do its work. Is there any way (li…

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

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