Skip to content

Commit f8a8473

Browse files
committed
Update
1 parent e4600fc commit f8a8473

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

CustomView/Advance/[7]Path_Play.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,20 @@ rXxx方法 | rMoveTo, rLineTo, rQuadTo, rCubicTo | **不带r的方法是基于
3939

4040
> 区别就在于rXxx方法是基于当前点的位移距离,而之前的方法是基于坐标原点的位移距离(即当前坐标系的坐标)
4141
42-
**举个例子**
42+
**举个例子:**
4343

44+
``` java
45+
Path path = new Path();
46+
47+
path.moveTo(100,100);
48+
path.lineTo(100,100);
49+
```
50+
51+
在这个例子中,先移动点到坐标(100,100)处,之后再连接 _点(100,100)__(100,100)_ 之间点直线,由于线点起点和终点相同,所以在屏幕上不会绘制出任何内容,接下来看下面一个例子。
52+
53+
``` java
54+
55+
```
4456

4557

4658

0 commit comments

Comments
 (0)