Screen Row

screenRow() #

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

Observations

  1. screenRow() 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)

screenRow(pixelY, y, cellLength)

Parameters #

parameterdescription
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