Skip to main content

Module cursor

Module cursor 

Source
Expand description

The virtual cursor on a grid map: which tile it is on, how it moves (one tile per step, never off the map) and how it pulses: between full and about half brightness, never off. A grid skin draws it (CursorView).

Structs§

Cursor
The cursor: a map tile and the time into its pulse.

Constants§

BLINK_MIN
The dimmest the cursor gets, as a fraction of full brightness. Tunable.
BLINK_PERIOD
One full bright → dim → bright pulse, in seconds. Tunable.