# Latest

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

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

**Page:** 541

---

## [Temporary layers / Multiple canvases using p5](https://discourse.processing.org/t/temporary-layers-multiple-canvases-using-p5/7016)

<div class="topic-metadata">

**Author:** [@davidjj](https://discourse.processing.org/u/davidjj)\
**Replies:** 2\
**Last updated:** [December 31, 2018, 11:46pm UTC](https://discourse.processing.org/t/temporary-layers-multiple-canvases-using-p5/7016 "2018-12-31T23:46:31Z")

</div>

Hey - I’m an experienced javascript developer and have done a bit with plain javascript and html5 canvas. What I’m doing is something similar to the spirograph example on the examples page - the difference being that I …

---

## [TypeError: np\_d.changed is not a function](https://discourse.processing.org/t/typeerror-np-d-changed-is-not-a-function/7056)

<div class="topic-metadata">

**Author:** [@Strex](https://discourse.processing.org/u/Strex)\
**Replies:** 1\
**Last updated:** [December 31, 2018, 5:48pm UTC](https://discourse.processing.org/t/typeerror-np-d-changed-is-not-a-function/7056 "2018-12-31T17:48:02Z")

</div>

i have this error and i don;t know how fix it. code: var np; var r = 300; var t; var alp; var point1 = \[\]; function setup() { createCanvas(windowWidth, windowHeight); np\_d = document.getElementById("points")…

---

## [\[garbage\]\[🐍 game\]List has no attribute X (or Y)](https://discourse.processing.org/t/garbage-game-list-has-no-attribute-x-or-y/7053)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 29\
**Last updated:** [December 31, 2018, 5:07pm UTC](https://discourse.processing.org/t/garbage-game-list-has-no-attribute-x-or-y/7053 "2018-12-31T17:07:06Z")

</div>

if dist(snake.vec.x,snake.vec.y,fruit.vec.x,fruit.vec.y) \< 12.5: fruit.respawn() snake.score += 1 snake.addtail(snake.vec.x,snake.vec.y) def addtail(self,x,y): self.prevs.append(PVecto…

---

## [Beta testers required](https://discourse.processing.org/t/beta-testers-required/6983)

<div class="topic-metadata">

**Author:** [@Pr0tonX](https://discourse.processing.org/u/Pr0tonX)\
**Replies:** 7\
**Last updated:** [December 31, 2018, 3:55pm UTC](https://discourse.processing.org/t/beta-testers-required/6983 "2018-12-31T15:55:05Z")

</div>

Hieveryone, I’ve almost done my project, wich is a remake of the concept of jonobr1 and lullatone : a visualization of sounds, wich are corresponding to one letter of the keyboard. See https://www.patatap.com/ for the o…

---

## [Hello! My presentation](https://discourse.processing.org/t/hello-my-presentation/7052)

<div class="topic-metadata">

**Author:** [@lemon](https://discourse.processing.org/u/lemon)\
**Replies:** 1\
**Last updated:** [December 31, 2018, 11:14am UTC](https://discourse.processing.org/t/hello-my-presentation/7052 "2018-12-31T11:14:05Z")

</div>

Hi, my name luigi from italy … learn programmation processing for arduino. My english elementary . Old 36 year . Happy new Year 2019.

---

## [How do i create a flight path using i3 processing](https://discourse.processing.org/t/how-do-i-create-a-flight-path-using-i3-processing/6838)

<div class="topic-metadata">

**Author:** [@ArduinoKer](https://discourse.processing.org/u/ArduinoKer)\
**Replies:** 18\
**Last updated:** [December 24, 2018, 10:47pm UTC](https://discourse.processing.org/t/how-do-i-create-a-flight-path-using-i3-processing/6838 "2018-12-24T22:47:07Z")

</div>

Hello everyone, I am trying to use i3 Processing to create a flight path. Currently i am able to use i3 processing for accurate positioning of my device. But after looking through the reference, i saw the " line() " fun…

---

## [Simple Pendulum Project](https://discourse.processing.org/t/simple-pendulum-project/7048)

<div class="topic-metadata">

**Author:** [@oheuysal](https://discourse.processing.org/u/oheuysal)\
**Replies:** 1\
**Last updated:** [December 31, 2018, 8:28am UTC](https://discourse.processing.org/t/simple-pendulum-project/7048 "2018-12-31T08:28:51Z")

</div>

I have a project.This is very important to me.I have similar code to this project but this code is too hard and not understanding to me.I want to very easy code because this project wants to be some calculation and simpl…

---

## [Strange problem with an eclipse project and the Serial library](https://discourse.processing.org/t/strange-problem-with-an-eclipse-project-and-the-serial-library/6982)

<div class="topic-metadata">

**Author:** [@jaeger](https://discourse.processing.org/u/jaeger)\
**Replies:** 2\
**Last updated:** [December 31, 2018, 7:59am UTC](https://discourse.processing.org/t/strange-problem-with-an-eclipse-project-and-the-serial-library/6982 "2018-12-31T07:59:08Z")

</div>

Hi guys, as the title said i have a problem! I made an eclipse project with processing and the Serial library, on my windows 10 laptop everything works well and i have no problem. i tried to run the same project on my w…

---

## [Saving objects from different classes into the same array](https://discourse.processing.org/t/saving-objects-from-different-classes-into-the-same-array/6818)

<div class="topic-metadata">

**Author:** [@MichaelPCgamer](https://discourse.processing.org/u/MichaelPCgamer)\
**Replies:** 8\
**Last updated:** [December 31, 2018, 2:00am UTC](https://discourse.processing.org/t/saving-objects-from-different-classes-into-the-same-array/6818 "2018-12-31T02:00:00Z")

</div>

This is my first post here ever so I’m gonna format it intuitively. I’m attempting to remake a game I already made months ago (using scratch) into processing. Here’s the game in scratch… https://scratch.mit.edu/projec…

---

## [\[SOLVED\] Code not working for a strange reason](https://discourse.processing.org/t/solved-code-not-working-for-a-strange-reason/7030)

<div class="topic-metadata">

**Author:** [@bilo](https://discourse.processing.org/u/bilo)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 11:51pm UTC](https://discourse.processing.org/t/solved-code-not-working-for-a-strange-reason/7030 "2018-12-30T23:51:30Z")

</div>

i have wrote a simple code that supposed to make a ball bounce aroud the screen so what\`s happening is that the if,elseif and else statment are getting followed in the case of the width but not the heigth if someone can…

---

## [There is a delay when i use keypressed() to change value](https://discourse.processing.org/t/there-is-a-delay-when-i-use-keypressed-to-change-value/7028)

<div class="topic-metadata">

**Author:** [@Jani](https://discourse.processing.org/u/Jani)\
**Replies:** 3\
**Last updated:** [December 30, 2018, 11:27pm UTC](https://discourse.processing.org/t/there-is-a-delay-when-i-use-keypressed-to-change-value/7028 "2018-12-30T23:27:09Z")

</div>

Hi all! I am a newbie of processing. I find that the keyPressed() can’t change the value directly until the all codes in draw() are executed for one time. Like my example below,I want to use keyPressed() function to cha…

---

## [Colors! (a lot of colors but not all of them)](https://discourse.processing.org/t/colors-a-lot-of-colors-but-not-all-of-them/7022)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 1\
**Last updated:** [December 30, 2018, 9:35pm UTC](https://discourse.processing.org/t/colors-a-lot-of-colors-but-not-all-of-them/7022 "2018-12-30T21:35:44Z")

</div>

import random class Walker: def \_\_init\_\_ (self): self.x = width \>\> 1 self.y = height \>\> 1 self.foot = 10 #space between every step self.strw = 3#stroke weight def move(self): …

---

## [Solution to prevent spam for keyReleased()?](https://discourse.processing.org/t/solution-to-prevent-spam-for-keyreleased/6996)

<div class="topic-metadata">

**Author:** [@immortalTech](https://discourse.processing.org/u/immortalTech)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 7:02pm UTC](https://discourse.processing.org/t/solution-to-prevent-spam-for-keyreleased/6996 "2018-12-30T19:02:10Z")

</div>

Hello! So basically I have programmed a breakout game. I made a pause feature going, but it’ll break if it’s spammed (and practically anything will break if spammed, but this pause feature is like a critical component to…

---

## [How to replace "noise" with "music"?](https://discourse.processing.org/t/how-to-replace-noise-with-music/7001)

<div class="topic-metadata">

**Author:** [@aewan](https://discourse.processing.org/u/aewan)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 6:17pm UTC](https://discourse.processing.org/t/how-to-replace-noise-with-music/7001 "2018-12-30T18:17:41Z")

</div>

Hi everyone! I really love sketches like these two: They are based off the noise function in processing, but I would like to try and change them to work off music files. Using Minim to play an audio file, I’ve t…

---

## [I don't know if the result is the right result for a penteract( aka: 5D"cube")](https://discourse.processing.org/t/i-dont-know-if-the-result-is-the-right-result-for-a-penteract-aka-5d-cube/6981)

<div class="topic-metadata">

**Author:** [@ExellentCoin2044](https://discourse.processing.org/u/ExellentCoin2044)\
**Replies:** 3\
**Last updated:** [December 30, 2018, 5:34pm UTC](https://discourse.processing.org/t/i-dont-know-if-the-result-is-the-right-result-for-a-penteract-aka-5d-cube/6981 "2018-12-30T17:34:53Z")

</div>

Hello First, I created a cube in a 2D engine (processing) slightly inspired by Daniel Shiffmann. Then I made I Hypercube also inspired by him. In that video he talks about the fact that you could take further and make a…

---

## [The Game of Life](https://discourse.processing.org/t/the-game-of-life/7007)

<div class="topic-metadata">

**Author:** [@Baipyrus](https://discourse.processing.org/u/Baipyrus)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 2:59pm UTC](https://discourse.processing.org/t/the-game-of-life/7007 "2018-12-30T14:59:07Z")

</div>

To anyone that has watched The Coding Train’s Video about it or just knows the Game of Life, can you take a look at my script in over here and tell me if I did anything wrong? I made it just for fun, and noticed that it …

---

## [Select output of printWriter](https://discourse.processing.org/t/select-output-of-printwriter/7014)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 30, 2018, 10:54am UTC](https://discourse.processing.org/t/select-output-of-printwriter/7014 "2018-12-30T10:54:57Z")

</div>

hello! how can i save the printWriter object inside a custom folder? wr = createWriter("obj"+ index + "txt"); i want to create a folder inside a sketch and save the files there. Thanks!

---

## [Shuffling vertex order in beginshape() to draw random polygons](https://discourse.processing.org/t/shuffling-vertex-order-in-beginshape-to-draw-random-polygons/6989)

<div class="topic-metadata">

**Author:** [@cftpa](https://discourse.processing.org/u/cftpa)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 10:37am UTC](https://discourse.processing.org/t/shuffling-vertex-order-in-beginshape-to-draw-random-polygons/6989 "2018-12-30T10:37:29Z")

</div>

Hello, this is my first post and I’m fairly new to Processing. I have a series of vertex coordinates and I was wondering if it’s possible to shuffle the order in which they draw the polygon (v0, v1, v2, v3 -\> v3, v1, v…

---

## [P3D on Mac problems](https://discourse.processing.org/t/p3d-on-mac-problems/7005)

<div class="topic-metadata">

**Author:** [@sham](https://discourse.processing.org/u/sham)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 4:03am UTC](https://discourse.processing.org/t/p3d-on-mac-problems/7005 "2018-12-30T04:03:59Z")

</div>

Hi All, Happy Holidays!! I am spending my days trying to create an audio visualizer using Processing with P3D and Minim. I am relatively new to Processing, so if anyone has any previous projects in that area that I coul…

---

## [Objects follow ground with gravity](https://discourse.processing.org/t/objects-follow-ground-with-gravity/7012)

<div class="topic-metadata">

**Author:** [@tommyokie](https://discourse.processing.org/u/tommyokie)\
**Replies:** 3\
**Last updated:** [December 30, 2018, 2:44am UTC](https://discourse.processing.org/t/objects-follow-ground-with-gravity/7012 "2018-12-30T02:44:40Z")

</div>

hey, I’m pretty new with processing so this might be pretty simple How could I have an object, a ball, with location, velocity, and acceleration vectors, be constrained on top of a 2d ground (a slanted line to be simpl…

---

## [Writeln in p5.js](https://discourse.processing.org/t/writeln-in-p5-js/7010)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 9\
**Last updated:** [December 30, 2018, 2:15am UTC](https://discourse.processing.org/t/writeln-in-p5-js/7010 "2018-12-30T02:15:05Z")

</div>

Hello my friends, I would like to save a txt file with the broken lines, but I am not finding a command similar to println to write to the .txt file The only one I found was the write.print which unfortunately does not …

---

## [Using "get" to save pictures, but they come up in color](https://discourse.processing.org/t/using-get-to-save-pictures-but-they-come-up-in-color/6944)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 8\
**Last updated:** [December 30, 2018, 12:51am UTC](https://discourse.processing.org/t/using-get-to-save-pictures-but-they-come-up-in-color/6944 "2018-12-30T00:51:01Z")

</div>

I wrote this event triggered picture saving sketch. I want to put the pics in the tenser flow later. I have 2 cameras connected in the same time and after I bring the video in, I turn it into grayscale right away with …

---

## [Uploading and parsing files](https://discourse.processing.org/t/uploading-and-parsing-files/6999)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 1\
**Last updated:** [December 30, 2018, 12:09am UTC](https://discourse.processing.org/t/uploading-and-parsing-files/6999 "2018-12-30T00:09:31Z")

</div>

New to webdev. I’ve made a Processing program to open a proprietary game map file, generate a .png preview of the map and extract the meta data like the mapmakers name, map description, dimensions, etc. I want to make …

---

## [Keep track and save objects variables](https://discourse.processing.org/t/keep-track-and-save-objects-variables/6993)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 29, 2018, 10:19pm UTC](https://discourse.processing.org/t/keep-track-and-save-objects-variables/6993 "2018-12-29T22:19:12Z")

</div>

Hello! i try to keeping track and save the objects values in a file and next read the changes. If i\`ve only one object a printWriter works fine, becouse i read the changes over time. but with and array of differents obj…

---

## [Making a trail with an image](https://discourse.processing.org/t/making-a-trail-with-an-image/6987)

<div class="topic-metadata">

**Author:** [@Jeany](https://discourse.processing.org/u/Jeany)\
**Replies:** 6\
**Last updated:** [December 29, 2018, 10:01pm UTC](https://discourse.processing.org/t/making-a-trail-with-an-image/6987 "2018-12-29T22:01:17Z")

</div>

Hi, I have a question about making a trail (which is goin to be an image of a car trail) in my code. Im working on a project where you can race with a car and I thought it would be a nice idea to leave a trace on the r…

---

## [\[RESOLVED\] Rotating a quad() towards player(that moves around)](https://discourse.processing.org/t/resolved-rotating-a-quad-towards-player-that-moves-around/6997)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 4\
**Last updated:** [December 29, 2018, 9:50pm UTC](https://discourse.processing.org/t/resolved-rotating-a-quad-towards-player-that-moves-around/6997 "2018-12-29T21:50:39Z")

</div>

def AI(self,plx,ply): #traslates angle1 = atan2(ply - self.y1,plx - self.x1) self.x1 = cos(angle1) \* self.speed + self.x1 self.y1 = sin(angle1) \* self.speed + self.y1 self.x2 = co…

---

## [Made a simple 2d top down dungeon crawler](https://discourse.processing.org/t/made-a-simple-2d-top-down-dungeon-crawler/6998)

<div class="topic-metadata">

**Author:** [@jarlah](https://discourse.processing.org/u/jarlah)\
**Replies:** 0\
**Last updated:** [December 29, 2018, 8:36pm UTC](https://discourse.processing.org/t/made-a-simple-2d-top-down-dungeon-crawler/6998 "2018-12-29T20:36:45Z")

</div>

Made a simple top down dungeon crawler, shamelessly using some spritesheets i found on opengameart. Its freely based on some YouTube videos I was looking at. I am using the YouTube tutorials as a way to fuel new ideas a…

---

## [Help needed: output window small](https://discourse.processing.org/t/help-needed-output-window-small/6992)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 4\
**Last updated:** [December 29, 2018, 8:33pm UTC](https://discourse.processing.org/t/help-needed-output-window-small/6992 "2018-12-29T20:33:12Z")

</div>

Hi, sometimes no matter how I set the canvas size, after pressing run, the output is a tiny window. Normally it’s a much bigger canvas. What could be the problem and how to tackle it? Thanks so much.

---

## [What is the best way to do 3D Mesh Collision with imported .obj files?](https://discourse.processing.org/t/what-is-the-best-way-to-do-3d-mesh-collision-with-imported-obj-files/6971)

<div class="topic-metadata">

**Author:** [@Ethanp247](https://discourse.processing.org/u/Ethanp247)\
**Replies:** 2\
**Last updated:** [December 29, 2018, 8:17pm UTC](https://discourse.processing.org/t/what-is-the-best-way-to-do-3d-mesh-collision-with-imported-obj-files/6971 "2018-12-29T20:17:22Z")

</div>

Hello! I’m asking this question because I don’t know exactly where to begin. This kind of collision is new to me, and I’m trying to create a system of collision detection for imported .obj PShapes. In short, what is th…

---

## [If Processing is used for prototyping, what languages are commonly used after?](https://discourse.processing.org/t/if-processing-is-used-for-prototyping-what-languages-are-commonly-used-after/6967)

<div class="topic-metadata">

**Author:** [@aaronshenhao](https://discourse.processing.org/u/aaronshenhao)\
**Replies:** 6\
**Last updated:** [December 29, 2018, 7:20pm UTC](https://discourse.processing.org/t/if-processing-is-used-for-prototyping-what-languages-are-commonly-used-after/6967 "2018-12-29T19:20:23Z")

</div>

Hi, I’ve been learning Processing v3 for a few months now for visualising various things. I heard that Processing is a prototyping language, and further performance and benefits can be gained by writing a project in anot…

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

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