Pen

Pen

画笔工具。

Constructor

new Pen(sizeopt, coloropt)

Parameters:
Name Type Attributes Description
size number <optional>
color string <optional>

Classes

Pen

Methods

(static) draw(ctx, data, ratio, start)

绘制画笔轨迹。

Parameters:
Name Type Default Description
ctx *
data *
ratio *
start * 0