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/syntax.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 guide-src/widget-inputs/syntax.html (limited to 'guide-src/widget-inputs/syntax.html') diff --git a/guide-src/widget-inputs/syntax.html b/guide-src/widget-inputs/syntax.html new file mode 100644 index 0000000..8026b33 --- /dev/null +++ b/guide-src/widget-inputs/syntax.html @@ -0,0 +1,16 @@ +--- syntax +

+here are the various ways of specifying widget inputs: +

+ + + + + + + + + + + +
formatexampledescription
<number>5.3a number
#RRGGBB#ff831ca 3-component vector whose values are taken from the given color code. a color picker will be shown next to the input.
#RRGGBBAA#ff831c22a 4-component vector whose values are taken from the color code.
<widget name>add1the output from another widget
<input>,<input>.pos,0a vector composed of a and b (which can themselves be vectors)
<input>.<component>.pos.xextract a single component from a vector
<input>.<swizzle>.pos.yxyreorder vector components (this example is equivalent to .pos.y, .pos.x, .pos.y)
-- cgit v1.2.3