Image noise: Difference between revisions

105 bytes removed ,  10 years ago
no edit summary
(Initial PL/I example)
No edit summary
Line 738:
(dotimes (h height)
(dotimes (w width)
;;(sdl:draw-pixel-* w h :surface s :color (if (zerop (random 2)) sdl:*white* sdl:*black*)))))
(sdl-base::write-pixel s w h (if (zerop (random 2))
i-white i-black ))))))
Line 750 ⟶ 749:
 
(defun main ()
"main function, creates initializes the library and creates de display window"
(setf *random-state* (make-random-state))
(sdl:with-init (SDL:SDL-INIT-VIDEO SDL:SDL-INIT-TIMER)
Anonymous user