We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi!
I am trying to apply a zoom effect in an image. I am using a resize() method that you can see in the code below.
However, it is occurring a mix color effect.
In the first moment, the image initialize according the image below:
After a few minutes, the image is this way: .
My question is: how to apply a zoom effect in an image no this "mix color effect"?
Answers
Here is the code:
Ok guys!
About the "mix color effect", I resolved with a background() in the beginning of draw(). I taked solution from this topic: http://forum.processing.org/one/topic/how-to-clear-the-screen-after-drawing-something.html
About "zoom effect", instead of resize(), I used a the perspective() function. I adapted the code from this example: http://www.processing.org/reference/perspective_.html.
The result can be seen here: http://www.openprocessing.org/sketch/130206.
Thanks for the space in the forum!