new module:Drafter(canvas)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
HTMLElement |
- Source:
Methods
dot(x, y, color)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
x |
Number | ||
y |
Number | ||
color |
String | #ffffff |
- Source:
line(dot1, dot2, color)
Parameters:
Name | Type | Description |
---|---|---|
dot1 |
Dot | |
dot2 |
Dot | |
color |
Sting |
- Source: