Skip to content

Instantly share code, notes, and snippets.

@nbeloglazov
Created July 20, 2017 03:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Flipping drawing
(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