[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
My tiny program
- To: info-mcl@cambridge.apple.com
- Subject: My tiny program
- From: cchien@gmuvax2.gmu.edu (Chang-Hong Chien)
- Date: Sat, 25 Jul 92 05:31:50 -0400
- Cc: jipan@gmuvax2.gmu.edu
The source code should be :
;;; "Drop a ball"
(defparameter *w* (make-instance 'window))
(defvar *v* 1)(defvar *h* 1)(defvar *height* 20)
(defun visiable() (set-fore-color *w* *red-color*))
(defun invisiable() (set-fore-color *w* *blue-color*))
(while (< *height* 120)
(If (oddp *h*) (visiable) (invisiable))
(rlet((r :rect :top (+ 20 *V*) :left (+ 20 *h*):bottom (+ 30 *V*)
:right (+ 30 *h*)))
(with-focused-view *w*
(#_paintroundrect r 130 130)))
(setf *v* (+ *v* 31) *h* (+ *h* 51) init-height (+ init-height *v*)))
(setf init-height 20)
-Chien