comparison org/eyes.org @ 66:1381a6ebd08b

updated org files to work with latest org changes
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Dec 2011 12:16:48 -0600
parents 25142dad240a
children 6cd5a034d855
comparison
equal deleted inserted replaced
65:4b5f00110d8c 66:1381a6ebd08b
9 9
10 * Vision 10 * Vision
11 11
12 I want to make creatures with eyes. Each eye can be independely moved 12 I want to make creatures with eyes. Each eye can be independely moved
13 and should see its own version of the world depending on where it is. 13 and should see its own version of the world depending on where it is.
14 #+srcname: eyes 14 #+name: eyes
15 #+begin_src clojure 15 #+begin_src clojure
16 (ns cortex.vision 16 (ns cortex.vision
17 "Simulate the sense of vision in jMonkeyEngine3. Enables multiple 17 "Simulate the sense of vision in jMonkeyEngine3. Enables multiple
18 eyes from different positions to observe the same world, and pass 18 eyes from different positions to observe the same world, and pass
19 the observed data to any arbitray function." 19 the observed data to any arbitray function."
83 data is sent off to the continuation function. Moving the =Camera= 83 data is sent off to the continuation function. Moving the =Camera=
84 which was used to create the eye will change what the eye sees. 84 which was used to create the eye will change what the eye sees.
85 85
86 * Example 86 * Example
87 87
88 #+srcname: test-vision 88 #+name: test-vision
89 #+begin_src clojure 89 #+begin_src clojure
90 (ns test.vision 90 (ns test.vision
91 (:use (cortex world util vision)) 91 (:use (cortex world util vision))
92 (:import java.awt.image.BufferedImage) 92 (:import java.awt.image.BufferedImage)
93 (:import javax.swing.JPanel) 93 (:import javax.swing.JPanel)