乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: Lee Mac

[编程交流] 当你感到无聊时的Lisp程序。

[复制链接]

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 15:20:46 | 显示全部楼层
 
Thanks Buzzard, I feel honoured - but there are many more experienced programmers on this site, who are just "less-active" than me.
 
Good luck with your modifications mate
 
 
Cheers Alan,
 
Great idea to get around the point choosing, I didn't really spend much time thinking about that, but great solution
 
Lee
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 15:27:24 | 显示全部楼层
i just thought about viewctr because i use it sometimes to place text for calculation routines, that way i don't have to actually pick a placement point, since i'm going to delete it as soon as i fill in all my information.
回复

使用道具 举报

58

主题

3353

帖子

33

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1761
发表于 2022-7-6 15:30:29 | 显示全部楼层
Nice one Lee
 
Here's a bit of my boredom mixed with your boredom .
 
  1. (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))
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 15:32:18 | 显示全部楼层
haha - brilliant Ron
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-5 00:15 , Processed in 0.395668 second(s), 58 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表