Created
April 18, 2013 10:02
-
-
Save jsilence/5411597 to your computer and use it in GitHub Desktop.
Simple Fluxus sketch. Fluctuating colour pattern made with perlin noise.
Variation of https://gist.github.com/jsilence/5411516 with different blend mode which adds a nice sawtooth like effect.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(clear) | |
(translate (vector -9.5 -8 0)) | |
(opacity .2) | |
(hint-ignore-depth) | |
(blend-mode 'one 'src-alpha) | |
(define (ani) | |
(for* ([i (in-range 33)] | |
[j (in-range 20)]) | |
(with-state | |
(translate (vector (* .6 i) (* .9 j) 0)) | |
(rotate (vector 0 0 (+ 2 i (* .9 j (time))))) | |
(scale (+ 1.8 (* .8 (sin(* .21 (time)))) (* .4 (atan(* 3 (time)))))) | |
(colour (vector (noise .9 (+ (* .12 i) (* .1 (time)))) | |
(noise .1 (+ (* .141 j) (* .08 (time)))) | |
(noise .5 (+ (* .124 j) (* .09 (time)))))) | |
(opacity (+ .1 (* .1 (noise (* 5 j) (+ (* .8 i) (* .3 (time))))))) | |
(draw-cube) | |
) | |
) | |
) | |
(every-frame (ani)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment