Last active
August 29, 2015 14:14
-
-
Save selfsame/5d91516917b5a6f6259d 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
| (ns fish.core | |
| (:use [arcadia.core] [hard.core] [hard.tween])) | |
| (def ccol (objects-named "colcube")) | |
| (defn cc-tween [go] | |
| (let [[x y z] (->vec (->v3 go)) | |
| start (tween (* (+ 12 x) 0.1)) | |
| shrink (tween {go {:local-scale [50 50 50]}} 0.1) | |
| grow (tween {go {:local-scale [100 100 100]}} 0.1) | |
| t1 (tween {go {:euler [90 90 0]}} 0.4 :pow2 :+)] | |
| (link start shrink) | |
| (link shrink t1 grow 1.5 shrink) | |
| (run start))) | |
| (mapv cc-tween ccol) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment