Ronin experiment 13 - color flower

Nikolaus Gradwohl2019-07-29T08:53:21+00:00

I added two commands to the ronin library for creating colors (rgba ..) and (hsla ..), now it is a lot easier to animate colors or choose them programmatically

color flower

this is the code I used to generate the flower

(on "animate" '(
(clear)
(map
  (range 0 (mul 2 PI) 0.01)
  (lambda (w) (
    (def r (add 50 (mul 50 (sin
      (add (mul w 5) (time 0.001) )))))
    (def x (add 300 (mul (mul r 2) (cos w))))
    (def y (add 300 (mul (mul r 2) (sin w))))

    (stroke
      (circle x y r)
      (hsla
        (mul 360 (div w 2 PI))
        100
        (sub 100 r)
        0.3
      ) 3)
  ))
)
))
Tweet This! submit to reddit Digg! Tags: | no comments | no trackbacks

See also:

Ronin experiment 21 - morphing lissajous states
ronin experiment 20 - transform flower
ronin experiment 19 - Sonic Pi visualizer
Ronin experiment 18 - Rainbow
Ronin experiment 17 - boids

Trackbacks

Comments

Leave a response

Leave a comment