We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everyone,
I am playing with clock functions in processing and I was curious if Is it possible to have different frame rate for drawing different objects in a sketch? in below sketch some dots are randomly drawn in approximate place of endpoints of a clock and I want to draw each bunch of points with different speed. anyone has any idea?
Answers
this isn't a frameRate question, Framerate is the wrong thing to use here.
Common Questions:
https://forum.processing.org/two/discussion/8084/how-do-i-display-a-message-for-a-few-seconds
use a different variable for hours, minutes and seconds refresh delay.
i'd also change
to
which is a lot neater and doesn't repeat the calls to sin / cos.
something like
before setup (global)
in draw
BUT
draw runs 60 times a second, and that's plenty of time to redraw everything every frame using minimal cpu.