PasteRack.org
Paste # 98713
2017-10-13 17:52:48

Forked from paste # 24017.

Fork as a new paste.

Paste viewed 124 times.


Embed:

  1. #lang racket
  2. (require pict racket/draw)
  3. (dc (lambda (dc dx dy)
  4.       (define old-brush (send dc get-brush))
  5.       (send dc set-brush
  6.         (send the-brush-list find-or-create-brush
  7.                               "black"
  8.                           (if transparent? 'transparent 'solid)))
  9.       (define eye-path (new dc-path%))
  10.       (send eye-path arc dx dy 50 100 0 pi)
  11.       (send eye-path arc dx (+ dy 50) 50 50 pi 0 #f)
  12.       (send eye-path close)
  13.       (send dc draw-path eye-path dx dy)
  14.       (send dc set-brush old-brush))
  15.      50 100)

=>

transparent?: undefined;

 cannot reference an identifier before its definition

  in module: 'm