You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
382 B
Racket
22 lines
382 B
Racket
8 years ago
|
#lang pitfall/pdftest
|
||
8 years ago
|
|
||
8 years ago
|
(define (proc doc)
|
||
|
;; Draw a triangle and a circle
|
||
|
(send* doc
|
||
|
[save]
|
||
|
[moveTo 100 150]
|
||
|
[lineTo 100 250]
|
||
|
[lineTo 200 250]
|
||
|
[fill "#FF3300"])
|
||
8 years ago
|
|
||
8 years ago
|
(send* doc
|
||
|
[circle 280 200 50]
|
||
|
[fill "#6600FF"]))
|
||
8 years ago
|
|
||
8 years ago
|
(define-runtime-path this "test1rkt.pdf")
|
||
|
(make-doc this #f proc)
|
||
8 years ago
|
|
||
8 years ago
|
(define-runtime-path that "test1crkt.pdf")
|
||
|
(make-doc that #t proc)
|
||
8 years ago
|
|