diff org/sense.org @ 188:22548d48cc85

added debug for vision
author Robert McIntyre <rlm@mit.edu>
date Sat, 04 Feb 2012 10:00:37 -0700
parents 6142e85f5825
children 16cbce075a0b
line wrap: on
line diff
     1.1 --- a/org/sense.org	Sat Feb 04 09:42:19 2012 -0700
     1.2 +++ b/org/sense.org	Sat Feb 04 10:00:37 2012 -0700
     1.3 @@ -229,13 +229,20 @@
     1.4                               (range (count data)))))
     1.5        (dorun
     1.6         (map
     1.7 -        (fn [display gen data]
     1.8 -          (display (gen data)))
     1.9 -        @windows sense-display-kernel data)))))
    1.10 +        (fn [display datum]
    1.11 +          (display (sense-display-kernel datum)))
    1.12 +        @windows data)))))
    1.13  
    1.14 -  
    1.15 +(defn gray
    1.16 +  "Create a gray RGB pixel with R, G, and B set to 'num"
    1.17 +  [num]
    1.18 +  (+ num
    1.19 +     (bit-shift-left num 8)
    1.20 +     (bit-shift-left num 16)))
    1.21 +#+end_src
    1.22  
    1.23 -#+end_src
    1.24 +#+results: sense
    1.25 +: #'cortex.sense/gray
    1.26  
    1.27  
    1.28  * COMMENT generate source