Textsprite

A text sprite is like a regular sprite but instead of loading an image, it can display text using CSS notation.

create routine as Start launch example end create textsprite as example where x=100 and y=100 and text="Example Text" and color="rgb(242,129,142)" and blur=5 and shadow="blue" and font="bold 48px sans-serif" and style="fill" and xshadow=5 and yshadow=3 end

Parameters

NOTE: regular sprite parameters apply, plus these text specific parameters.
align="{string}"
"center", "left", or "right" in in double-quotations marks
blur="{number}"
the width of the blur applied to the shadow of the text - it must be in quotes to work with iOS
color="{string}"
a color value represented in any CSS format
font="{string}"
specify font parameters using the CSS shorthand format for fonts
shadow="{string}"
specify a text shadow using a color value represented in any CSS format
style="{fill|stroke}"
specify how the text is drawn, as filled or just stroked (default=fill)
text="{string}"
the text to display in double-quotations marks
xshadow={number}
the horizontal offset of the text shadow
yshadow={number}
the vertical offset of the text shadow