File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1584
1584
(bytes-set! bytes (+ j 3 ) (color-blue c))]
1585
1585
[else
1586
1586
(define str (if (string? c) c (symbol->string c)))
1587
- (define clr (or (send the- color-database find-color str)
1587
+ (define clr (or (string-> color-object/f str)
1588
1588
(send the-color-database find-color "black " )))
1589
1589
(bytes-set! bytes j 255 ) ;; this should probably (send clr alpha) when that's possible
1590
1590
(bytes-set! bytes (+ j 1 ) (send clr red))
Original file line number Diff line number Diff line change 2216
2216
(rectangle 1 1 'solid (color 5 5 5 ))
2217
2217
(rectangle 1 1 'solid (color 6 6 6 )))))
2218
2218
2219
+ (test (equal? (color-list->bitmap (list "MediumGreen " ) 1 1 )
2220
+ (color-list->bitmap (list "black " ) 1 1 ))
2221
+ =>
2222
+ #f )
2223
+ (test (equal? (color-list->bitmap (list "DarkPink " ) 1 1 )
2224
+ (color-list->bitmap (list "black " ) 1 1 ))
2225
+ =>
2226
+ #f )
2227
+
2219
2228
(test (color-list->bitmap '() 0 0 ) => (empty-scene 0 0 ))
2220
2229
(test (color-list->bitmap '() 0 10 ) => (empty-scene 0 10 ))
2221
2230
(test (color-list->bitmap '() 4 0 ) => (empty-scene 4 0 ))
You can’t perform that action at this time.
0 commit comments