use now renamed render-convertible-as
This commit is contained in:
parent
7adece9001
commit
38b0906e48
|
@ -48,8 +48,9 @@
|
|||
(only-in racket/draw bitmap%)
|
||||
racket/class))
|
||||
|
||||
@title[#:style (style "svg" (list (render-pict-as 'svg-images)))
|
||||
#:tag "image-guide"]{Image Guide}
|
||||
@title[#:style
|
||||
(style #f (list (render-convertible-as '(svg-bytes png-bytes))))
|
||||
#:tag "image-guide"]{Image Guide}
|
||||
|
||||
This section introduces the @racketmodname[2htdp/image] library
|
||||
through a series of increasingly complex image constructions
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
(define (teachpack #:svg? [svg? #f] tp . name)
|
||||
(apply title #:tag tp
|
||||
#:style (if svg?
|
||||
(style "svg" (list (render-pict-as 'svg-images)))
|
||||
(style #f (list (render-convertible-as '(svg-bytes png-bytes))))
|
||||
#f)
|
||||
`(,@name ": " ,(filepath (format "~a.rkt" tp))
|
||||
,(index (format "~a teachpack" tp)))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user