Add Variables

2025-12-25 20:22:11 +00:00
parent 2bea05dae0
commit e674fabc55

12
Variables.md Normal file

@@ -0,0 +1,12 @@
The following variables are provided by the library:
|Name|Type|Description|
|---|---|---|
|s.W|float|The current width of the canvas|
|s.H|float|The current height of the canvas|
|s.CENTERX|float|Horizontal center of the canvas (W/2)|
|s.CENTERY|float|Vertical center of the canvas (H/2)|
|s.MX|float|Mouse/Touch X|
|s.MY|float|Mouse/Touch Y|
|s.T|float|Seconds elapsed since start|
They can be used anywhere in the code, however you need to run s.start() first