图形绘制工具pic的使用指南
1. pic简介
在描述图形时,用语言准确传达图形信息并非易事。例如,要通过电话描述一个包含椭圆、两个盒子和一个圆以及箭头的图形,即便仔细描述,也很难将图形完整准确地转化为文字。而pic预处理器提供了一种有效的方式来描述图形。
以下是一个pic对图形的描述示例:
.PS
down
ellipse
move down 1.25
circle radius .35
move left li from left of last circle; box
move right li from right of last circle; box
arrow from lower left of last ellipse to top of 1st box
arrow from lower right of last ellipse to top of 2nd box
arrow <-> from bottom of last ellipse to top of last circle
.PE
这个描述中指定了多个对象,包括椭圆、两个盒子、一个圆和三个箭头,还说明了图形的运动和方向变化,以及对象之间的相对位置。
2. 对象命名
2.1 基本图形绘制
pic程序在描述单个盒子或圆时非常容易使用。例如,要绘制一个圆,可以在 .PS/.PE 宏中指定对象名称:
.PS
circle
.PE
默认情况下,pic绘制的圆直径为0.5英寸(半径为
超级会员免费看
订阅专栏 解锁全文
2万+

被折叠的 条评论
为什么被折叠?



