PasteRack.org
Paste # 54166
2019-08-21 05:42:08

Fork as a new paste.

Paste viewed 560 times.


Embed:

  1. #lang racket
  2. (require slideshow)
  3.  
  4. (displayln
  5.  (let ([rotmax 100])
  6.   (for/fold ([scene (blank)])
  7.             ([i rotmax])
  8.     (define c (exact-ceiling (* i (/ 256. rotmax))))
  9.   (lt-superimpose (colorize (filled-rectangle 20 20) (list c 0 (- 255 c)))
  10.                   (rotate scene (/ pi rotmax))))))

=>