screenRow(pixelY, y, cellLength)

Returns the quadrille row to which the screen space pixelY coordinate belong.

  1. screenRow(pixelY, y, cellLength) returns a value not constrain to lie in [0..height].
  2. If the quadrille is currently being drawn use the mouseRow property instead.

Syntax #

screenRow(pixelY, [y], [cellLength])

Parameters #

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