http://bbs.mjtd.com/thread-91313-1-1.html
其中这个太阳花看上去好象可做成CAD屏保
我是这样想的
是不是把光标设置成在屏幕范围内随机移动就可以了
谢谢
- ;;; Writed by Lee Mac
- (defun c:bored (/ cir cnt gr lst n d)
- (setq lst (list (getvar 'viewctr) (getvar 'viewctr)) cnt 0)
-
- (while (eq 5 (car (setq gr (grread nil 5 1))))
- (redraw)
- (setq cir nil n 0 lst (append lst (list (last lst) (cadr gr))) cnt (1+ cnt))
-
- (if (< 100 cnt) (setq lst (cddr lst)))
-
- (repeat 50 (setq d (/ (distance (car lst) (last lst)) 4.))
- (repeat 4
- (setq cir (cons (polar (car lst)
- (* (setq n (1+ n)) (/ (* pi 2) 50)) d) cir))
- (setq d (/ d 2.))))
-
- (grvecs (append (list (rem (/ cnt 100) 255)) lst cir)))
-
- (princ))
|