diff org/vision.org @ 317:bb3f8a4af87f

removed references to defvar from clojure.contrib.def since the def from 1.4 now allows for docstrings
author Robert McIntyre <rlm@mit.edu>
date Tue, 28 Feb 2012 14:04:21 -0600
parents 2c7fbcbd5ebb
children 702b5c78c2de
line wrap: on
line diff
     1.1 --- a/org/vision.org	Tue Feb 28 13:44:46 2012 -0600
     1.2 +++ b/org/vision.org	Tue Feb 28 14:04:21 2012 -0600
     1.3 @@ -224,13 +224,13 @@
     1.4  
     1.5  #+name: sensitivity
     1.6  #+begin_src clojure
     1.7 -(defvar sensitivity-presets
     1.8 +(def sensitivity-presets
     1.9 +  "Retinal sensitivity presets for sensors that extract one channel
    1.10 +   (:red :blue :green) or average all channels (:all)"
    1.11    {:all    0xFFFFFF
    1.12     :red    0xFF0000
    1.13     :blue   0x0000FF
    1.14 -   :green  0x00FF00}
    1.15 -  "Retinal sensitivity presets for sensors that extract one channel
    1.16 -   (:red :blue :green) or average all channels (:all)")
    1.17 +   :green  0x00FF00})
    1.18  #+end_src
    1.19  
    1.20  ** Metadata Processing
    1.21 @@ -268,11 +268,11 @@
    1.22  eyes the creature has.
    1.23  #+name: eye-node
    1.24  #+begin_src clojure
    1.25 -(defvar 
    1.26 -  ^{:arglists '([creature])}
    1.27 +(def
    1.28 +  ^{:doc "Return the children of the creature's \"eyes\" node."
    1.29 +    :arglists '([creature])}
    1.30    eyes
    1.31 -  (sense-nodes "eyes")
    1.32 -  "Return the children of the creature's \"eyes\" node.")
    1.33 +  (sense-nodes "eyes"))
    1.34  #+end_src
    1.35  
    1.36  Then, add the camera created by =add-eye!= to the simulation by
    1.37 @@ -692,7 +692,6 @@
    1.38    them in the world as actual eyes."
    1.39    {:author "Robert McIntyre"}
    1.40    (:use (cortex world sense util))
    1.41 -  (:use clojure.contrib.def)
    1.42    (:import com.jme3.post.SceneProcessor)
    1.43    (:import (com.jme3.util BufferUtils Screenshots))
    1.44    (:import java.nio.ByteBuffer)