Created
June 29, 2020 17:42
-
-
Save chimanaco/dd234d894a47ebcefdd5b7db599b5266 to your computer and use it in GitHub Desktop.
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
(background "pink") | |
; (+ 1 2) | |
; (prn (/ 1 2 3 4)) | |
; (prn [1 0 0 1 86 -76.6875]) | |
(def mod ^(assoc (meta mod) :inverse (fn [ret [a b]] [(mod ret b) b])) mod) | |
(defvar pos [-182 -150.6875]) | |
(defvar r 100) | |
(line [0 0] (vec2/transform-mat2d [200 0] (rotate (deg (mod 300.4255794212775 360)))) | |
) | |
(prn (to-turn TWO_PI)) | |
(transform (mat2d/* (translate [96 -149.6875]) | |
(rotate (turn 0.500344735707893)) | |
) | |
(style (stroke "blue" 5) | |
(rect [-50 -50 100 100]) | |
) | |
) | |
(style [(fill "salmon") (stroke "#41424A" 3)] | |
;(circle pos 300) | |
;(circle pos 178.22738285684386) | |
;(line [0 0] pos) | |
; (rect [12 -323.6875 241 539]) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment