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
color="{string}"
a color value represented in any CSS format
text="{string}"
the text to display in double-quotations marks
font="{string}"
specify font parameters using the CSS shorthand format for fonts
style="{fill|stroke|border}"
specify how the text is drawn, as filled or just stroked (default=fill)
bordercolor="{#colorString}" ex: #00ff27
specify the color of the border using CSS syntax
borderwidth="{number}"
specify the width of the border
blur="{number}"
the width of the blur applied to the shadow of the text - it must be in quotes to work with iOS
shadow="{string}"
specify a text shadow using a color value represented in any CSS format
xshadow={number}
the horizontal offset of the text shadow
yshadow={number}
the vertical offset of the text shadow