scene fixed in world

svn: r10863
This commit is contained in:
Matthias Felleisen 2008-07-22 21:00:07 +00:00
parent 2e7047b87f
commit e50f229beb

View File

@ -21,9 +21,12 @@ The teachpack assumes working knowledge of the basic image manipulation
primitives and introduces a special kind of image: a scene.
@deftech{Scene}@;
@schemeblock[(and/c image?
(lambda (i)
(and (= (pinhole-x i) 0) (= (pinhole-y i) 0))))]
@schemeblock[
;; Image -> Boolean
(define (focus-at-0-0 i)
(and (= (pinhole-x i) 0) (= (pinhole-y i) 0)))
(and/c image? focus-at-0-0)]
The teachpack can display only @tech{Scene}s, which are images whose
pinholes are at position @scheme[(0,0)].