sketch experiment 3 - animation
For experiment number 4 of my exploration of the commonlisp based sketch framewor, I started working with animations.
obviously my previous sketches have been animations as well - they just drew the same picture at every frame.
(defsketch blub (
(title "sketch ex4")
(width 400)
(height 400)
(f 0)
(p 0)
)
(incf f 0.1)
(background (rgb 1 1 1))
(dotimes (i 100)
(setf p (- f (/ i 5)))
(with-pen (make-pen :stroke (rgb 0 0 0 0.1))
(ellipse (/ width 2) (/ height 2)
(* 100 (sin (/ p 10))) (* 100 (cos (/ p 17))))
)
)
)
See also:
sketch experiment 8 - circles animated
sketch experiment 7 - osc events
sketch experiment 6 - color
sketch experiment 5 - grid
sketch experiment 3 - circles
sketch experiment 7 - osc events
sketch experiment 6 - color
sketch experiment 5 - grid
sketch experiment 3 - circles
So where do I put the code, processing?