sketch experiment 2 - affine transformation
I continued my exploration of lisp-country with sketch and made a sketch experimenting with loops and affine transformations.
that's the sketch that generates the image.
(make-instance 'blub ) (defsketch blub () (background (rgb 1 1 1)) (dotimes (i 200) (with-pen (make-pen :stroke (rgb 0 0 0 0.2 )) (push-matrix) (translate ( i 2) ( i 2)) (rotate (/ (* i 360) 200)) (setf f (/ i 2)) (rect (- (/ f 2)) (- (/ f 2)) f f ) (pop-matrix ) ) ) )
The documentation is a bit thin at the moment - but the sourcecode is quite readable, and there are some example programs I used as a starting point to figure out how to use it.
sketch experiment 7 - osc events
sketch experiment 6 - color
sketch experiment 5 - grid
sketch experiment 3 - animation