From e674fabc5521df5585f9b3c8b0502efa684c1aef Mon Sep 17 00:00:00 2001 From: Hugo H Date: Thu, 25 Dec 2025 20:22:11 +0000 Subject: [PATCH] Add Variables --- Variables.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Variables.md 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