User Guide
Data Types & Signal Flow
Float Array <> String
You can easily convert between a string and a float array.
String Shortcuts
The String data component can be used as a shortcut for defining various GUI data types. Colours, Areas, Pens and more can all be defined
in a single text string.
Area
To create an area use the format "x,y,w,h" where x and y give the top-left corner of the area and w and h give the width and height of the
area. All dimensions are in grid squares of course.
Colour
There are two ways to specify a colour using a data String. You can use one of the 14 predefined colours which are as follows:
Black, White, Red, Green, Blue, Yellow, Grey
tBlack, tWhite, tRed, tGreen, tBlue, tYellow, tGrey
(the 't' colours are partially transparent)
Use the colour by name in the String component. Note that the colour names are not sensitive to case.
The second way to specify a colour is by ARGB. Use the format "(a:r:g:b)" where a is the transparency, r is the red component, g is the
green component and b is the blue component. All values are integers in the range zero to 255.
Pen
A pen has three attributes: colour, thickness and style. Using a string component you can specify a pen by providing these attributes in the
format "colour,thick,style".
80 of 212