screen.screen.diff_percent
Declaration
lua
screen.diff_percent([tolerance])
Description
Get percentage of screen that changed since last capture.
Parameters
`tolerance` (number, optional) — pixel difference threshold
Return Values
`number` — percentage (0-100)
Example
lua
local pct = screen.diff_percent()