diff options
author | pommicket <pommicket@gmail.com> | 2023-08-30 00:15:41 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-30 00:15:41 -0400 |
commit | eaff50ee1fb64f236ba715d2099a3a3011280c08 (patch) | |
tree | 03fc35f5ce8d39438008de73e68b3281467774d9 /guide-src/widget-inputs/builtins.html | |
parent | e226bef8253d50db7c1622aacaf5964f1d505359 (diff) |
change up guide a bit
Diffstat (limited to 'guide-src/widget-inputs/builtins.html')
-rw-r--r-- | guide-src/widget-inputs/builtins.html | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/guide-src/widget-inputs/builtins.html b/guide-src/widget-inputs/builtins.html deleted file mode 100644 index 32cb3b1..0000000 --- a/guide-src/widget-inputs/builtins.html +++ /dev/null @@ -1,20 +0,0 @@ ---- built-in values - -all of pugl's built-in values begin with a <code>.</code> to distinguish -them from your widgets. -here they all are. -below, <code>float</code> refers to a plain old number, -<code>vec2</code> is a 2-component vector, etc. - -<table> -<tbody> -<tr><th>built‑in</th><th>type</th><th>description</th></tr> -<tr><td><code>.pos</code></td><td><code>vec2</code><td>the position of the pixel, with (−1, −1) being the bottom-left corner, and (+1, +1) being the top-right corner.</td></tr> -<tr><td><code>.pos01</code></td><td><code>vec2</code><td>the position of the pixel, with (0, 0) being the bottom-left corner, and (+1, +1) being the top-right corner.</td></tr> -<tr><td><code>.time</code></td><td><code>float</code><td>the amount of time that has passed (wraps around every hour to prevent imprecision issues).</td></tr> -<tr><td><code>.mouse</code></td><td><code>vec2</code><td>the position of the mouse ranging from (−1, −1) to (+1, +1).</td></tr> -<tr><td><code>.mouse01</code></td><td><code>vec2</code><td>the position of the mouse ranging from (0, 0) to (+1, +1).</td></tr> -<tr><td><code>.pi</code></td><td><code>float</code><td>π (3.1415…).</td></tr> -<tr><td><code>.2pi</code></td><td><code>float</code><td>2π (6.2831…).</td></tr> -</tbody> -</table> |