From e226bef8253d50db7c1622aacaf5964f1d505359 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 29 Aug 2023 15:41:50 -0400 Subject: guide done for now --- guide-src/widget-inputs/builtins.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'guide-src/widget-inputs/builtins.html') diff --git a/guide-src/widget-inputs/builtins.html b/guide-src/widget-inputs/builtins.html index 6434921..32cb3b1 100644 --- a/guide-src/widget-inputs/builtins.html +++ b/guide-src/widget-inputs/builtins.html @@ -1,3 +1,20 @@ ---- Built-in values +--- built-in values -

TODO

+all of pugl's built-in values begin with a . to distinguish +them from your widgets. +here they all are. +below, float refers to a plain old number, +vec2 is a 2-component vector, etc. + + + + + + + + + + + + +
built‑intypedescription
.posvec2the position of the pixel, with (−1, −1) being the bottom-left corner, and (+1, +1) being the top-right corner.
.pos01vec2the position of the pixel, with (0, 0) being the bottom-left corner, and (+1, +1) being the top-right corner.
.timefloatthe amount of time that has passed (wraps around every hour to prevent imprecision issues).
.mousevec2the position of the mouse ranging from (−1, −1) to (+1, +1).
.mouse01vec2the position of the mouse ranging from (0, 0) to (+1, +1).
.pifloatπ (3.1415…).
.2pifloat2π (6.2831…).
-- cgit v1.2.3