# mouse.draw 库模块帮助文档

## mouse.draw 成员列表 <a id="mouse.draw" href="#mouse.draw">&#x23;</a>

### mouse.draw.ellipse(x,y,a,b,precision) <a id="mouse.draw.ellipse" href="#mouse.draw.ellipse">&#x23;</a>
x,y 中心所在的屏幕坐标(像素)  
a,b 长轴和短轴的长度(像素)  
precision   边缘精细度

### mouse.draw.involute(fx,fy) <a id="mouse.draw.involute" href="#mouse.draw.involute">&#x23;</a>
画渐开线  
fx,fy   宽高,参数可以忽略(默认为屏幕范围)

### mouse.draw.involute2(x,y,R,n) <a id="mouse.draw.involute2" href="#mouse.draw.involute2">&#x23;</a>
画渐开线2   
x,y   基圆圆心  
R  	基圆半径  
n  	渐开线周波数

### mouse.draw.line(x1,y1,x2,y2) <a id="mouse.draw.line" href="#mouse.draw.line">&#x23;</a>
画直线  
x1,y1 起始坐标  
x2,y2结束坐标

### mouse.draw.move <a id="mouse.draw.move" href="#mouse.draw.move">&#x23;</a>

```aardio
mouse.draw.move = function(x,y){ 

	mouse.move(x,y,true)
	sleep(10) 

	return true;/*继续画线*/
}
```

### mouse.draw.poly(x,y,r,n) <a id="mouse.draw.poly" href="#mouse.draw.poly">&#x23;</a>
x,y 中心所在的屏幕坐标(像素)  
r   多边形外接圆半径(像素)  
n   多边形的边数

### mouse.draw.rect(x1,y1,x2,y2) <a id="mouse.draw.rect" href="#mouse.draw.rect">&#x23;</a>
画矩形  
x1,y1 起始坐标  
x2,y2结束坐标

### mouse.draw.rectInvolute(step,n,x1,y1,x2,y2) <a id="mouse.draw.rectInvolute" href="#mouse.draw.rectInvolute">&#x23;</a>
画方形仿渐开线   
step   步长  
n  		起始正方形边长,指定中间忽略不扫描的正方形边长(默认等于20)  
x1,y1   扫描范围坐标,参数可省略(默认等于 1 X 1)  
x2,y2   扫描范围坐标2,参数可省略(默认等于屏幕大小)

### mouse.draw.rectInvolute2(x,y,m,n=5,k=50) <a id="mouse.draw.rectInvolute2" href="#mouse.draw.rectInvolute2">&#x23;</a>
x,y   坐标  
m   扫描范围  
n   扫描速度,可省略(默认等于5)  
k   扫描密度,可省略(默认等于50)

### mouse.draw.sin(w,h) <a id="mouse.draw.sin" href="#mouse.draw.sin">&#x23;</a>
画正弦曲线  
w,h 宽,高,可省略(默认取屏幕范围)
