screenCol(pixelX, x, cellLength)

Returns the quadrille col to which the screen space pixelX coordinate belong.

  1. screenCol(pixelX, x, cellLength) returns a value not constrain to lie in [0..width].
  2. If the quadrille is currently being drawn use the mouseCol property instead.

Syntax #

screenCol(pixelX, [x], [cellLength])

Parameters #

ParamDescription
pixelXNumber: screen space x-coord
xNumber: quadrille upper left corner x-coord. If not provided it’s value is inferred from drawQuadrille
cellLengthNumber: cell length. If not provided it’s value is inferred from drawQuadrille