Constructor
new Dot(x, y, width)
Create a dot.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | The x value. |
y |
number | The y value. |
width |
number | The width of the dot, in pixels. |
Extends
Methods
getWidth() → {number}
Get the dot's width.
Returns:
The dot's width, in pixels.
- Type
- number
getX() → {number}
Get the x value.
- Inherited From:
- Source:
Returns:
The x value.
- Type
- number
getY() → {number}
Get the y value.
- Inherited From:
- Source:
Returns:
The y value.
- Type
- number