Re: Using 2 canvas one above the other

28 views
Skip to first unread message

Erik Blankinship

unread,
May 15, 2013, 10:21:31 AM5/15/13
to proces...@googlegroups.com
Create two (or more) PGraphics (see createGraphics) for your painting and then position these PGraphics where you need in your main draw loop.


On Tue, May 14, 2013 at 9:13 PM, CarlLM <clasespart...@gmail.com> wrote:
sorry if this is a stupid question but I don't have enough experience with processingjs...I need display 100M points in a canvas adding points sequentially , obviously use an array would be a bad idea, I don't need erase or change the points once painted...then my solution is don't erase the canvas (paint the background with every loop)...the problem is than every point needs to be animated when appear in the screen..the solution would be use 2 canvas one above other and display the animation, when this finish the point dissapear and is only visible the static point in the back layer..sorry if you don't get the idea but my english sucks and the question looks terrible...now..is it possible with processing...use canvas like layer...exist any code than could help me??

I'm writing the entire code in plain javascript...

thanks!!


Reply all
Reply to author
Forward
0 new messages