Up
_colorNewS
_colorNewS creates a new Color object from a litteral string.
This object should be destroyed when it is no longer needed. If GTK+ 3.x is used, there is a compatibility
with the CSS3 format.
Prototype : fun [Chn S] ObjColor
- Chn : a channel, owner of the created Color object.
Typically, it is the current channel, _channel.
- S : the string, like "#rrggbbaa".
- Return : ObjColor : the new Color object or nil if an error occurs
See also
Example
typeof color = ObjColor;;
fun main ()=
_showconsole;
set color = _colorNewS _channel "#FFFF00"; // yellow
...
0;;