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.
23 lines
407 B
Racket
23 lines
407 B
Racket
#lang racket/base
|
|
(require pitfall/pdftest)
|
|
|
|
(define (proc doc)
|
|
;; Draw a triangle and a circle
|
|
(send* doc
|
|
[save]
|
|
[move-to 100 150]
|
|
[line-to 100 250]
|
|
[line-to 200 250]
|
|
[fill "#FF3300"])
|
|
|
|
(send* doc
|
|
[circle 280 200 50]
|
|
[fill "#6600FF"]))
|
|
|
|
(define-runtime-path this "test1rkt.pdf")
|
|
(make-doc this #f proc)
|
|
|
|
(define-runtime-path that "test1crkt.pdf")
|
|
(make-doc that #t proc)
|
|
|