PasteRack.org
Paste # 71763
2020-05-26 09:16:43

Forked from paste # 541.

Fork as a new paste.

Paste viewed 395 times.


Embed:

  1. #lang racket
  2. (require 2htdp/image)
  3. (apply above
  4.        (map (lambda (l) (apply beside l))
  5.             (for/list ([x 100])
  6.               (for/list ([y 100])
  7.                 (if (and (<= (min x y) 50)
  8.                          (<= (- 100 (max x y)) 50)
  9.                          (<= (abs (- x y)) 50))
  10.                     (square 1 "solid" "black")
  11.                     (square 1 "solid" "white"))))))

=>

image