Canvas.getYPosFromScreen

Get the vertical position on the canvas that relates to a particular vertical position on screen.

class Canvas
int
getYPosFromScreen
(,
int gridSpacing = 1
)

Parameters

screenYPos int

The vertical screen position to transpose.

gridSpacing int

The grid spacing to round it to.

Return Value

Type: int

The vertical canvas position.

Meta