The instance.Text
function contains convenience
methods and members for Rac.Text
objects setup with the owning
Rac
instance.
- Source:
Namespaces
Members
hello :Rac.Text
#
| source:
drawable/instance.Text.js, line 109
A Text
for drawing hello world
with topLeft
format at
Point.zero
.
sphinx :Rac.Text
#
| source:
drawable/instance.Text.js, line 118
A Text
for drawing the pangram sphinx of black quartz, judge my vow
with topLeft
format at Point.zero
.
Methods
Format(hAlign, vAlign, angleopt, fontopt, sizeopt) → {Rac.Text.Format}
#
| source:
attachInstanceFunctions.js, line 261
Convenience function that creates a new Text.Format
setup with this
.
The function also contains additional methods and properties listed in
instance.Text.Format
.
- See:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
hAlign |
string
|
The horizontal alignment, left-to-right; one
of the values from |
||
vAlign |
string
|
The vertical alignment, top-to-bottom; one of
the values from |
||
angle |
Rac.Angle
|
<optional> |
rac.Angle.zero |
The angle towards which the text is drawn |
font |
string
|
<optional> |
null |
The font name |
size |
number
|
<optional> |
null |
The font size |