# Latest

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

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

**Page:** 564

---

## [Pass an array to a new instance of my class](https://discourse.processing.org/t/pass-an-array-to-a-new-instance-of-my-class/5183)

<div class="topic-metadata">

**Author:** [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Replies:** 20\
**Last updated:** [November 6, 2018, 10:21pm UTC](https://discourse.processing.org/t/pass-an-array-to-a-new-instance-of-my-class/5183 "2018-11-06T22:21:19Z")

</div>

How would I go about passing an array of images to a class? My endgame is to have one class that creates an animation, so when I create multiple instances of this class they build a 3x3 grid of animations with each insta…

---

## [Perlin Noise Loop Array](https://discourse.processing.org/t/perlin-noise-loop-array/5265)

<div class="topic-metadata">

**Author:** [@ronantuite](https://discourse.processing.org/u/ronantuite)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 9:17pm UTC](https://discourse.processing.org/t/perlin-noise-loop-array/5265 "2018-11-06T21:17:58Z")

</div>

Ive been stuck on the problem of drawing an array of zig-zag lines that uses Perlin Nosie to create the zig-zag. Im drawing the lines in the draw function which updates the points on the line continuously, making the lin…

---

## [Developing a Robot Into Command Keys Function](https://discourse.processing.org/t/developing-a-robot-into-command-keys-function/5273)

<div class="topic-metadata">

**Author:** [@SteveTombs92](https://discourse.processing.org/u/SteveTombs92)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 7:52pm UTC](https://discourse.processing.org/t/developing-a-robot-into-command-keys-function/5273 "2018-11-06T19:52:43Z")

</div>

Hello Processing friends. I have been learning Processing by myself and doing coding for robots. I am getting a lot of fun. However, I am getting frustrated because I has not been able to turn the code from mouse functio…

---

## [Creating the Code for A Robot with Command Keys](https://discourse.processing.org/t/creating-the-code-for-a-robot-with-command-keys/5274)

<div class="topic-metadata">

**Author:** [@SteveTombs92](https://discourse.processing.org/u/SteveTombs92)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 7:51pm UTC](https://discourse.processing.org/t/creating-the-code-for-a-robot-with-command-keys/5274 "2018-11-06T19:51:47Z")

</div>

Hello Processing folks. I am learning Processing by myself. I am getting fun because I am creating robots. Nevertheless, I feel like overwhelmed because I has not been capable of turning this code from mouse function int…

---

## [Question about Draw Arrays](https://discourse.processing.org/t/question-about-draw-arrays/5270)

<div class="topic-metadata">

**Author:** [@Blake](https://discourse.processing.org/u/Blake)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 7:09pm UTC](https://discourse.processing.org/t/question-about-draw-arrays/5270 "2018-11-06T19:09:03Z")

</div>

OK, new to processing here, I could use a little help solving this. What I am trying to do. Use an Arduino/motion detector to detect when someone walks by. When they do walk by I want a random .PNG from a file to open …

---

## [Quarks Shape3d - BezTube Editor Generating Wrong Code](https://discourse.processing.org/t/quarks-shape3d-beztube-editor-generating-wrong-code/4961)

<div class="topic-metadata">

**Author:** [@ZigZag](https://discourse.processing.org/u/ZigZag)\
**Replies:** 15\
**Last updated:** [November 6, 2018, 5:50pm UTC](https://discourse.processing.org/t/quarks-shape3d-beztube-editor-generating-wrong-code/4961 "2018-11-06T17:50:07Z")

</div>

Hello, I have been exploring the (excellent) Shapes3D library by Quark. I attempted to reply to a thread from a post on this same topic last year where this exact problem was discussed but keep getting kicked back to th…

---

## [Plotting a scrolling Graph](https://discourse.processing.org/t/plotting-a-scrolling-graph/5219)

<div class="topic-metadata">

**Author:** [@romek](https://discourse.processing.org/u/romek)\
**Replies:** 28\
**Last updated:** [November 6, 2018, 4:35pm UTC](https://discourse.processing.org/t/plotting-a-scrolling-graph/5219 "2018-11-06T16:35:35Z")

</div>

Hello !, for my school project I need to make a scrolling graph of several data. It’s combined with arduino data. We are already at the point that arduino sends the data from the sensors to processing, and everything w…

---

## [Error with Licence agreements](https://discourse.processing.org/t/error-with-licence-agreements/767)

<div class="topic-metadata">

**Author:** [@martinstacey](https://discourse.processing.org/u/martinstacey)\
**Replies:** 5\
**Last updated:** [November 6, 2018, 2:30pm UTC](https://discourse.processing.org/t/error-with-licence-agreements/767 "2018-11-06T14:30:24Z")

</div>

Does any body get this error when running your app? how do you solve this??? You have not accepted the license agreements of the following SDK components: \[Android SDK Build-Tools 26.0.2\]. Before building your projec…

---

## [ Playing video backwards (ogg file does not load)](https://discourse.processing.org/t/playing-video-backwards-ogg-file-does-not-load/5243)

<div class="topic-metadata">

**Author:** [@eda](https://discourse.processing.org/u/eda)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 12:36pm UTC](https://discourse.processing.org/t/playing-video-backwards-ogg-file-does-not-load/5243 "2018-11-06T12:36:14Z")

</div>

Hello, I am trying to play a video backwards and forwards. As advised on the video library - speed (https://processing.org/reference/libraries/video/Movie\_speed\_.html ), I managed to convert the video from a mp4 to ogg f…

---

## [Is "text()" a good idea for this game?](https://discourse.processing.org/t/is-text-a-good-idea-for-this-game/5234)

<div class="topic-metadata">

**Author:** [@Oighen](https://discourse.processing.org/u/Oighen)\
**Replies:** 7\
**Last updated:** [November 6, 2018, 10:27am UTC](https://discourse.processing.org/t/is-text-a-good-idea-for-this-game/5234 "2018-11-06T10:27:58Z")

</div>

Hi all, I’m trying to write a sketch, a sort of game, so that: At the beginning of the game the “\*” character is at the center of the screen and a certain number (nz=8) of a different character, “0”, are at the borde…

---

## [Please greatly teach me how to use the work to present it. I am very grateful](https://discourse.processing.org/t/please-greatly-teach-me-how-to-use-the-work-to-present-it-i-am-very-grateful/5195)

<div class="topic-metadata">

**Author:** [@alk5603](https://discourse.processing.org/u/alk5603)\
**Replies:** 10\
**Last updated:** [November 6, 2018, 10:24am UTC](https://discourse.processing.org/t/please-greatly-teach-me-how-to-use-the-work-to-present-it-i-am-very-grateful/5195 "2018-11-06T10:24:27Z")

</div>

I would like to ask you a lot like this triangle. How can I present it in a recursive way? How can I play?

---

## [Processing program tutor](https://discourse.processing.org/t/processing-program-tutor/5252)

<div class="topic-metadata">

**Author:** [@sarayncho](https://discourse.processing.org/u/sarayncho)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 6:47am UTC](https://discourse.processing.org/t/processing-program-tutor/5252 "2018-11-06T06:47:22Z")

</div>

I’m a parent of a high school student in Connecticut. She’s trying to learn progressing for her independent study program but she needs help. I’m looking for someone who could her understand coding language and processin…

---

## [lerpColor and float\[\] values do not seem to change](https://discourse.processing.org/t/lerpcolor-and-float-values-do-not-seem-to-change/5207)

<div class="topic-metadata">

**Author:** [@mhmmadeel](https://discourse.processing.org/u/mhmmadeel)\
**Replies:** 4\
**Last updated:** [November 6, 2018, 2:00am UTC](https://discourse.processing.org/t/lerpcolor-and-float-values-do-not-seem-to-change/5207 "2018-11-06T02:00:52Z")

</div>

Hi everyone :blush: I’m currently new to coding and am taking a class for it at a university. I have a code running which is currently reading the data from the NYC Tree Census and loading svg’s of the leaf shape for t…

---

## [Grey is not grey](https://discourse.processing.org/t/grey-is-not-grey/5220)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 5\
**Last updated:** [November 6, 2018, 12:22am UTC](https://discourse.processing.org/t/grey-is-not-grey/5220 "2018-11-06T00:22:01Z")

</div>

Current Processing 3, current Android mode: App renders 3 rects with shades of grey and some alpha over each other (FFB0B0B0 under FF909090 under 10FFFFFF) On-screen result should be pure grey - and it is under Windows…

---

## [Alternative to for and while loops?](https://discourse.processing.org/t/alternative-to-for-and-while-loops/5142)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 6\
**Last updated:** [November 6, 2018, 12:19am UTC](https://discourse.processing.org/t/alternative-to-for-and-while-loops/5142 "2018-11-06T00:19:28Z")

</div>

I‘m looking for an alternative for for and while loops. The functionality i‘m looking for is basically the speed given by a for loop or a while loop. The Problem lies in the fact, that if my for loop is too big (millions…

---

## [A working sound playing app sketch - works as of May 27 2018](https://discourse.processing.org/t/a-working-sound-playing-app-sketch-works-as-of-may-27-2018/451)

<div class="topic-metadata">

**Author:** [@gpteacher](https://discourse.processing.org/u/gpteacher)\
**Replies:** 18\
**Last updated:** [August 19, 2018, 11:29am UTC](https://discourse.processing.org/t/a-working-sound-playing-app-sketch-works-as-of-may-27-2018/451 "2018-08-19T11:29:14Z")

</div>

Thanks to ‘kfrajer’ for his help in getting sound files to play in an Android app created with Processing. Much appreciated! Here’s a sketch that demonstrates how to do it: // works with Processing 3.3.7 as of May 27 2…

---

## [Moving objects: move game ghost back and forth](https://discourse.processing.org/t/moving-objects-move-game-ghost-back-and-forth/5206)

<div class="topic-metadata">

**Author:** [@ari\_y](https://discourse.processing.org/u/ari_y)\
**Replies:** 5\
**Last updated:** [November 5, 2018, 11:18pm UTC](https://discourse.processing.org/t/moving-objects-move-game-ghost-back-and-forth/5206 "2018-11-05T23:18:14Z")

</div>

I’m new to coding and I’m trying to write a program that is similar to the pacman game. I can’t figure out how to move the ghost back and forth using parameters. here’s part of my code: void drawRedghost(int x, int y)…

---

## [Problem with colors](https://discourse.processing.org/t/problem-with-colors/5241)

<div class="topic-metadata">

**Author:** [@mikany](https://discourse.processing.org/u/mikany)\
**Replies:** 1\
**Last updated:** [November 5, 2018, 10:08pm UTC](https://discourse.processing.org/t/problem-with-colors/5241 "2018-11-05T22:08:44Z")

</div>

Hi my project is a little paint program but i have problems with the colorChooser in java , for change of color , to change color, pressing the color button opens chooser color but does not change it.

---

## [Loading in svg : problem](https://discourse.processing.org/t/loading-in-svg-problem/5224)

<div class="topic-metadata">

**Author:** [@Elrig23](https://discourse.processing.org/u/Elrig23)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 8:31pm UTC](https://discourse.processing.org/t/loading-in-svg-problem/5224 "2018-11-05T20:31:00Z")

</div>

Hi there I am trying to import a vector using the load shape command, it’s a Dennis the menace top and it keeps loading in as black. I haven’t done any fills just a standard loadshape. What could I do to fix this ?

---

## [I need help with my program ( PROCESSING 3.0)](https://discourse.processing.org/t/i-need-help-with-my-program-processing-3-0/5212)

<div class="topic-metadata">

**Author:** [@epicwyvern](https://discourse.processing.org/u/epicwyvern)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 8:17pm UTC](https://discourse.processing.org/t/i-need-help-with-my-program-processing-3-0/5212 "2018-11-05T20:17:54Z")

</div>

hi i need help. i have a settings page for this program that has a function to turn the border on and off, which is controlled by the boolean borders. however, another function, which can turn the background on or off, …

---

## [Game Made in p5.js](https://discourse.processing.org/t/game-made-in-p5-js/5133)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 25\
**Last updated:** [November 5, 2018, 7:30pm UTC](https://discourse.processing.org/t/game-made-in-p5-js/5133 "2018-11-05T19:30:42Z")

</div>

A couple years ago I made this game in processing. I recently converted it to p5.js, and I wanted to share it. http://pizza-penguin.quillbert.tk

---

## [PImage::save() returns a bigger image than the input](https://discourse.processing.org/t/pimage-save-returns-a-bigger-image-than-the-input/5231)

<div class="topic-metadata">

**Author:** [@Rothuskrill](https://discourse.processing.org/u/Rothuskrill)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 5:18pm UTC](https://discourse.processing.org/t/pimage-save-returns-a-bigger-image-than-the-input/5231 "2018-11-05T17:18:50Z")

</div>

Hello everyone, I am currenlty playing with the load/save methods built-in processing, and I notice something weird with this simple snippet : PImage test = loadImage(“store.png”); test.save(“store2.png”); The image …

---

## [Raining effect in transparent background](https://discourse.processing.org/t/raining-effect-in-transparent-background/4565)

<div class="topic-metadata">

**Author:** [@juju11](https://discourse.processing.org/u/juju11)\
**Replies:** 7\
**Last updated:** [November 5, 2018, 2:57pm UTC](https://discourse.processing.org/t/raining-effect-in-transparent-background/4565 "2018-11-05T14:57:45Z")

</div>

Hi, I’m really new to p5js :tired\_face: and right now I’m making a rain effect in p5. It went well with a background color in my canvas. ( https://cl.ly/d49185682356 ) However, What I want to do is making the background…

---

## [Citing p5.js (academic)?](https://discourse.processing.org/t/citing-p5-js-academic/4877)

<div class="topic-metadata">

**Author:** [@j6m8](https://discourse.processing.org/u/j6m8)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 2:57pm UTC](https://discourse.processing.org/t/citing-p5-js-academic/4877 "2018-11-05T14:57:30Z")

</div>

I would like to cite p5.js in an upcoming publication and am not sure where to point; currently we’re just pointing to the homepage (https://p5js.org/) but if there’s a specific document you like us to reference, I’d pre…

---

## [Point co-ordinate generator using mouse](https://discourse.processing.org/t/point-co-ordinate-generator-using-mouse/5203)

<div class="topic-metadata">

**Author:** [@ReDeagle](https://discourse.processing.org/u/ReDeagle)\
**Replies:** 7\
**Last updated:** [November 5, 2018, 1:52pm UTC](https://discourse.processing.org/t/point-co-ordinate-generator-using-mouse/5203 "2018-11-05T13:52:39Z")

</div>

I’m trying to make a piece of code that displays the co-ordinates at which the mouseX and mouseY co-ordinates are. This is the code I have so far… Help? int mousex = mouseX; int mousey = mouseY; void setup () { size (…

---

## [Moving line graph](https://discourse.processing.org/t/moving-line-graph/4463)

<div class="topic-metadata">

**Author:** [@Myselium](https://discourse.processing.org/u/Myselium)\
**Replies:** 6\
**Last updated:** [November 5, 2018, 11:10am UTC](https://discourse.processing.org/t/moving-line-graph/4463 "2018-11-05T11:10:24Z")

</div>

Hello, Currently im working on a project to control an arduino with processing. The serial communication is going fine but i cant seem to find any good way to put waveforms into a moving line graph. I have looked at …

---

## [Making a secret message reader](https://discourse.processing.org/t/making-a-secret-message-reader/5031)

<div class="topic-metadata">

**Author:** [@Dee-3\_123](https://discourse.processing.org/u/Dee-3_123)\
**Replies:** 23\
**Last updated:** [November 5, 2018, 10:11am UTC](https://discourse.processing.org/t/making-a-secret-message-reader/5031 "2018-11-05T10:11:05Z")

</div>

Hello everyone, right now I am working on a code which accepts number of letters from users and convert it in encrypted message. but I had a problem while declaring 8=1. how can I declare 8=1.

---

## [Help with drawing checker board](https://discourse.processing.org/t/help-with-drawing-checker-board/5214)

<div class="topic-metadata">

**Author:** [@gpevehou](https://discourse.processing.org/u/gpevehou)\
**Replies:** 3\
**Last updated:** [November 5, 2018, 7:22am UTC](https://discourse.processing.org/t/help-with-drawing-checker-board/5214 "2018-11-05T07:22:09Z")

</div>

For my assignment, we have to create a chess board on a canvas so that it doesn’t take up the full canvas. However, all I can create is one that does not look completed. Each square must be 3030 and it is an 88 board. I …

---

## [Referencing a variable of any data type](https://discourse.processing.org/t/referencing-a-variable-of-any-data-type/5213)

<div class="topic-metadata">

**Author:** [@Mchar7](https://discourse.processing.org/u/Mchar7)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 5:19am UTC](https://discourse.processing.org/t/referencing-a-variable-of-any-data-type/5213 "2018-11-05T05:19:48Z")

</div>

So, I am trying to make a function that will display a certain picture OR play a video depending on whether the variable passed to the function as an argument is a picture (data type PImage) or a video (data type Movie).…

---

## [How to code 3 magnets?](https://discourse.processing.org/t/how-to-code-3-magnets/5173)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 4:35am UTC](https://discourse.processing.org/t/how-to-code-3-magnets/5173 "2018-11-05T04:35:17Z")

</div>

Hi, what i need is less an actualy magnet, than an object that attracts at a higher distance and pushes back if closer. Though not as simple as that. It should basically end up being stuck on a perimeter around the 2st …

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

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