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
(ns fun-with-quil.tennis-ball | |
(:use quil.core)) | |
(def screen-w 800) | |
(def screen-h 800) | |
(defn seam [θ w] | |
[(* 300 (sin (radians θ)) (cos (* w (cos (radians θ))))) | |
(* 300 (sin (radians θ)) (sin (* w (cos (radians θ))))) | |
(* 300 (cos (radians θ)))]) |
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
(ns fun-with-quil.breezy | |
(:use quil.core)) | |
(def ^:constant screen-w 1920) | |
(def ^:constant screen-h 1080) | |
(defn r ^double [^long x ^long y] | |
(loop [k 0 i 0.0 j 0.0] | |
(let [si (sin i) | |
cj (cos j)] |
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
(ns fun-with-quil.wavey-thingy | |
(:use quil.core)) | |
(def screen-w 1024) | |
(def screen-h screen-w) | |
(defn make-wave-fn [] | |
"[x1 y1] specifies the epicenter of the waves | |
[x2 y2] specifies an anti-epicenter of sorts | |
l controls the length between waves |
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
Windows | |
---------- | |
Blue Wish Resurrection Plus http://www004.upp.so-net.ne.jp/x_xgameroom/ | |
eXceed2nd Vampire Rex http://store.steampowered.com/app/207380/ | |
eXceed3rd Jade Penetrate http://store.steampowered.com/app/207400/ | |
Anything by Zun, but Perfect Cherry Blossom is a classic http://www16.big.or.jp/~zun/html/th07.html |
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
(ns quil.tadpoles | |
(:use quil.core)) | |
(def screen-w 800) | |
(def screen-h 800) | |
(def tadpoles (atom {})) | |
(defn- make-tadpole [max-x max-y max-r colors] | |
{:x (random max-x) ; Absolute x of center of revolution |
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
(ns quil.hello | |
(:use quil.core)) | |
(def screen-w 800) | |
(def screen-h 800) | |
(def t (atom 0)) | |
(defn setup [] | |
(smooth) |
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
(ns fun-with-quil.mushroom-clouds | |
(:use quil.core)) | |
(def screen-w 800) | |
(def screen-h 800) | |
(def phase (atom 0)) | |
(defn setup [] | |
(smooth) |
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
(ns fun-with-quil.acid-rain | |
(:use quil.core)) | |
(def screen-w 1920) | |
(def screen-h 1080) | |
(defn setup [] | |
(smooth) | |
(no-stroke) | |
(background 0)) |
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
(ns procedural-lichens | |
(:use quil.core)) | |
(def screen-w 2880) | |
(def screen-h 1800) | |
(def lichens (atom [])) | |
(defn intersects? [[x1 y1 r1] [x2 y2 r2]] | |
"Determines if the two circles passed in intersect" |
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
(ns fun-with-quil.sea-breeze | |
(:use quil.core)) | |
(def dθ (atom 0)) | |
(defn setup [] | |
(background 0) | |
(ellipse-mode :center) | |
(no-stroke) | |
(smooth)) |