Created
October 3, 2017 13:44
-
-
Save jackrusher/edb087e85ae4a5cd52ad95e636ab54b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defn confetti [] | |
(let [palette (cycle ["aqua" "springgreen" "magenta"])] | |
(->> (repeat 20 (triangle 20)) | |
(map #(position (rand-int 500) (rand-int 500) %)) | |
(map colorize palette) | |
(apply layer)))) | |
(cell (interval 100 confetti)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment