PasteRack.org
Paste # 26748
2019-08-21 05:41:37

Fork as a new paste.

Paste viewed 490 times.


Embed:

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

=>