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
;; Draws a simple pentagon and other geometric stars using turtle graphics | |
;; | |
;; Scale it to fit in a bounding-box of 750x550 px | |
(ns turtle.demo | |
(:use [turtle.core :only [draw!]] | |
[turtle.renderer.canvas :only [->canvas]] | |
[jayq.core :only [show]] | |
[enchilada :only [ctx canvas]])) | |
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 example) | |
;; Print output goes to the output buffer | |
(doseq [a (range 10) | |
b (range a)] | |
(println a "x" b "=" (* a b))) | |
(js/alert "ClojureScript says 'Boo!'") |
NewerOlder