PasteRack.org
Paste # 98623
2017-10-13 17:53:13

Forked from paste # 98713.

Fork as a new paste.

Paste viewed 99 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.                           '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)

=>

image