Add Variables
12
Variables.md
Normal file
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
|
||||
Reference in New Issue
Block a user