C new Grid( width: number, height: number ) → {void}
Grid class
Parameters:
| Name | Type | Description |
|---|---|---|
width |
number | width of the grid |
height |
number | height of the grid |
Methods
-
S M draw draw the grid on the canvas on the canvas in every frame( )
-
-
S M drawPoint( point: Vector )
-
Parameters:
Name Type Description pointVector draw a point on the grid according to the grid's cordinates not the canvas cordinates
-
S M drawPoints( points: Array.<Vector> )
-
Parameters:
Name Type Description pointsArray.<Vector> draw a list of points on the grid according to the grid's cordinates not the canvas cordinates