g.js — graphical objects for JavaScript

gridgrid

Create a grid of points.

g.grid(10, 10, 30, 15, {x: 0, y: 0});

Parameters

  • columns: The amount of columns in the grid.
  • rows: The amount of rows in the grid.
  • columnWidth: The width of each column.
  • rowHeight: The height of each row.
  • position: The center point of the grid (default = 0, 0).