Created
July 20, 2017 03:38
-
-
Save nbeloglazov/5bdd59a6935bdcec8ebfeed005d394b8 to your computer and use it in GitHub Desktop.
Flipping drawing
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
(ns test.core | |
(:require [quil.core :as q])) | |
(defn draw [] | |
(q/background 255) | |
(q/fill 0) | |
(q/with-translation [(/ (q/width) 2) | |
(/ (q/height) 2)] | |
(q/apply-matrix | |
1 0 0 | |
0 -1 0) | |
(q/triangle 0 0 100 0 100 100) | |
(q/text "Hello" 0 100 ))) | |
(q/defsketch my-sketch | |
:draw draw | |
:size [500 500]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment