@@ -101,7 +101,7 @@ public final class DrawingLibrary: NativeLibrary {
101
101
102
102
/// Dependencies of the library.
103
103
public override func dependencies( ) {
104
- self . `import` ( from: [ " lispkit " , " core " ] , " define-syntax " , " syntax-rules " )
104
+ self . `import` ( from: [ " lispkit " , " core " ] , " define " , " define -syntax" , " syntax-rules " )
105
105
self . `import` ( from: [ " lispkit " , " control " ] , " let " )
106
106
self . `import` ( from: [ " lispkit " , " dynamic " ] , " parameterize " )
107
107
self . `import` ( from: [ " lispkit " , " system " ] , " current-directory " )
@@ -200,6 +200,16 @@ public final class DrawingLibrary: NativeLibrary {
200
200
self . define ( Procedure ( " rect-width " , rectWidth) )
201
201
self . define ( Procedure ( " rect-height " , rectHeight) )
202
202
203
+ // Define constants
204
+ self . define ( " zero-point " , via: " (define zero-point (point 0 0)) " )
205
+ self . define ( " black " , via: " (define black (make-color 0 0 0)) " )
206
+ self . define ( " gray " , via: " (define gray (make-color 0.5 0.5 0.5)) " )
207
+ self . define ( " white " , via: " (define white (make-color 1 1 1)) " )
208
+ self . define ( " red " , via: " (define red (make-color 1 0 0)) " )
209
+ self . define ( " green " , via: " (define green (make-color 0 1 0)) " )
210
+ self . define ( " blue " , via: " (define blue (make-color 0 0 1)) " )
211
+ self . define ( " yellow " , via: " (define yellow (make-color 1 1 0)) " )
212
+
203
213
// Syntax definitions
204
214
self . define ( " drawing " , via: """
205
215
(define-syntax drawing
0 commit comments