let grid; function drawCell(col, row, bounds) { // if you enabled headers then corresponding col / row will be -1 for headers } function setup() { ... grid = new Grid ...