Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Draw-a-sphere/Clojure/draw-a-sphere.clj
Normal file
20
Task/Draw-a-sphere/Clojure/draw-a-sphere.clj
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
(use 'quil.core)
|
||||
|
||||
(def w 500)
|
||||
(def h 400)
|
||||
|
||||
(defn setup []
|
||||
(background 0))
|
||||
|
||||
(defn draw []
|
||||
(push-matrix)
|
||||
(translate 250 200 0)
|
||||
(sphere 100)
|
||||
(pop-matrix))
|
||||
|
||||
(defsketch main
|
||||
:title "sphere"
|
||||
:setup setup
|
||||
:size [w h]
|
||||
:draw draw
|
||||
:renderer :opengl)
|
||||
Loading…
Add table
Add a link
Reference in a new issue