Ticket #1462 (new defect)
Opened 11 years ago
transform-painter fails on non-rectangle configuration
Reported by: | i@… | Owned by: | soegaard |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | soegaard/sicp.plt | Keywords: | |
Cc: | soegaard | Version: | (2 1) |
Racket Version: | 5.3.5 |
Description
As mentioned in the bible:
(define squash-inwards
(transform-painter (make-vect 0 0)
(make-vect 0.65 0.35)
(make-vect 0.35 0.65)))
(paint (squash-inwards einstein))
this tries to paint einstein in a parallelogram, but DrRacket? complains "vector-ref: expects a vector as 1st argument, given 0"
Note: See
TracTickets for help on using
tickets.