RosettaCodeData/Task/Bitmap-Midpoint-circle-algorithm/Common-Lisp/bitmap-midpoint-circle-algorithm-2.lisp

6 lines
222 B
Common Lisp
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
CL-USER> (let ((buffer (make-array '(30 30)
:element-type 'bit)))
(draw-circle (lambda (x y)
(setf (bit buffer x y) 1)) 15 15 10)
buffer)