processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.66k stars 3.32k forks source link

feedback (previous frame)? #1217

Closed artofmus closed 8 years ago

artofmus commented 8 years ago

is it possible feedback texture in p5.js (get previous frame) for create dynamic system like CA or reaction diffusion? Thanks!

lmccart commented 8 years ago

you could save out the canvas image from the previous frame using get() and then do whatever you like with that. http://p5js.org/reference/#/p5/get

this sort of question is best posted in the forum: https://forum.processing.org/two/categories/p5-js, the github issues are just for code bugs. thanks!

artofmus commented 8 years ago

Ok. Thanks!