PasteRack.org
Paste # 78767
2017-10-13 15:46:36

Fork as a new paste.

Paste viewed 107 times.


Embed:

  1. #lang racket
  2. (require pict racket/draw)
  3. (dc (lambda (dc dx dy)
  4.       (define eye-path (new dc-path%))
  5.       (send eye-path arc dx dy 50 100 0 pi)
  6.       (send eye-path arc dx dy 50 50 pi 0 #:clockwise #t)
  7.       (send eye-path close)
  8.       (send dc draw-path dx dy 50 100))
  9.      50 100)

=>

application: procedure does not accept keyword arguments

  procedure: arc method in dc-path%

  arguments...:

   (object:dc-path% ...)

   0

   0

   50

   50

   3.141592653589793

   0

   #:clockwise #t