Skip to content

Commit

Permalink
Add a currentcolor to make-color*
Browse files Browse the repository at this point in the history
  • Loading branch information
soegaard committed Feb 12, 2024
1 parent 6247f75 commit 61ffbb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metapict/color.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
(define make-color*
(case-lambda
[(name) (cond [(is-a? name color%) name]
[(equal? name "currentcolor") "currentcolor"]
[else (def c (send the-color-database find-color name))
(unless c (error 'make-color* (~a "expected color name, got " name)))
c])]
Expand Down

0 comments on commit 61ffbb0

Please sign in to comment.