screen.screen.unrotate_xy
Declaration
lua
screen.unrotate_xy(x, y)
Description
Convert coordinates from current orientation to native (home-on-bottom) coordinates.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x | number | Required | — | X |
y | number | Required | — | Y |
Return Values
| Type | Description |
|---|---|
| integer | Native X |
| integer | Native Y |
Example
lua
local nx, ny = screen.unrotate_xy(100, 200)