canvas2d_draw_grid
canvas2d_draw_grid(ctx, width, height, [color], [spacing], [offset_x], [offset_y], [thickness])
Kind: global function
Param | Type | Description |
---|---|---|
ctx | CanvasRenderingContext2D | |
width | number | |
height | number | |
[color] | string | CSS color specification |
[spacing] | number | distance between grid lines |
[offset_x] | number | |
[offset_y] | number | |
[thickness] | number | Like thickness |