PasteRack.org
Paste # 8308
2014-03-27 13:44:12

Forked from paste # 7728.

Fork as a new paste.

Paste viewed 651 times.


Embed:

rotating a length-scaled arrow

  1. #lang racket
  2.  
  3. (require racket/draw)
  4.  
  5. (for/list [(i 25)]
  6.   (frame (rotate (scale (arrow 50 0) 2 1) (* pi (/ i 12)))
  7.          #:segment 5
  8.          #:color "blue"
  9.          #:line-width 1))

=>

frame: undefined;

 cannot reference an identifier before its definition

  in module: 'm