Constructor
new Pen(sizeopt, coloropt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
size |
number |
<optional> |
|
color |
string |
<optional> |
Classes
Methods
(static) draw(ctx, data, ratio, start)
绘制画笔轨迹。
Parameters:
Name | Type | Default | Description |
---|---|---|---|
ctx |
* | ||
data |
* | ||
ratio |
* | ||
start |
* |
0
|