diff --git a/Variables.md b/Variables.md new file mode 100644 index 0000000..283c5ca --- /dev/null +++ b/Variables.md @@ -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 \ No newline at end of file