Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prepare 1.6.0 release

  • Loading branch information...
commit e5e8811103763aa8cb5272926bb1718d42d08342 1 parent 134871a
@samaaron samaaron authored
Showing with 22 additions and 1 deletion.
  1. +8 −0 RELEASE-NOTES.md
  2. +1 −1  project.clj
  3. +13 −0 src/quil/core.clj
View
8 RELEASE-NOTES.md
@@ -1,3 +1,11 @@
+## 1.6.0
+_7th July 2012_
+
+* Add `debug` fn for printing and forcing the current thread to sleep.
+* Add `key-coded` for determining whether the currently pressed key is
+ _coded_ i.e. a special character.
+* Add `key-as-keyword` for returning the currently pressed key as a keyword.
+
## 1.5.0
_16th June 2012_
View
2  project.clj
@@ -1,4 +1,4 @@
-(defproject quil "1.6.0-SNAPSHOT"
+(defproject quil "1.6.0"
:description "(mix Processing Clojure)"
:url "http://github.com/quil/quil"
:mailing-list {:name "Quil Mailing List"
View
13 src/quil/core.clj
@@ -4437,3 +4437,16 @@
(if (key-coded? key-char)
(get KEY-CODES code :unknown-key)
(keyword (str key-char)))))
+
+(defn
+ ^{:requires-bindings false
+ :processing-name nil
+ :category "Debugging"
+ :added "1.6"}
+ debug
+ "Prints msg and then sleeps the current thread for delay-ms. Useful
+ for debugging live running sketches. delay-ms defaults to 300. "
+ ([msg] (debug msg 300))
+ ([msg delay-ms]
+ (println msg)
+ (Thread/sleep delay-ms)))
Please sign in to comment.
Something went wrong with that request. Please try again.