Constructor
new Mosaic(sizeopt, coloropt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
size |
number |
<optional> |
|
color |
string |
<optional> |
Classes
Members
Cache :object
Type:
- object
Methods
(static) draw(}, ctx, data, ratio, start)
绘制马赛克。
Parameters:
Name | Type | Description |
---|---|---|
} |
GraphBoard | board |
ctx |
CanvasRenderingContext2D | |
data |
object | |
ratio |
number | |
start |
number |