Writes a text string in 3d perspective in a three dimensional window
ThreeD_Text/DRAW | text=String colour=Colour pivot=Realarray orient=Realarray [justify=Real] [size=Real] [eye=Realarray] | Writes a text in perspective, in a 3d window. |
ThreeD_Text/ALTER | [text=String] [colour=Colour] [pivot=Realarray] [orient=Realarray] [justify=Real] [size=Real] [eye=Realarray] object=Gobject | Alters a previously written piece of 3d text. |
example:
#Display a simple message >> t=ThreeD_Text:draw("Hello World!",$red,pivot,orient) #Alter the colour of the message >> ThreeD_Text/alter colour=$blue object=t
Writes a text string in 3d perspective inside a 3d window. All (x,y,z) values are taken to be in world coordinates.
text (String)
The text string to be written.
colour (Colour)
The colour index for the text.
pivot (Realarray)
(x,y,z) coordinate of the pivot point.
orient (Realarray)
(x,y,z) for X-length and Y-height directions of the text. The array should be allocated by DIMENSIONS(2,3).
justify (Real)
Position of pivot along the text: 0.0=left, 0.5=centre (default), 1.0=right.
size (Real)
The height of the reference symbol "A". By default this is 1.0.
eye (Realarray)
(x,y,z) coordinate of the eye position, see Win_ThreeD for details.
RESULT = (Gobject)
Returns the properties of the newly created text.
Alters text inside a 3d window.
text (String)
The text string to be written.
colour (Colour)
The colour index for the text.
pivot (Realarray)
(x,y,z) coordinate of the pivot point.
orient (Realarray)
(x,y,z) for X-length and Y-height directions of the text. The array should be allocated by DIMENSIONS(2,3).
justify (Real)
Position of pivot along the text: 0.0=left, 0.5=centre, 1.0=right.
size (Real)
The height of the reference symbol "A".
eye (Realarray)
(x,y,z) coordinate of the eye position, see Win_ThreeD for details.
object (Gobject)
The ThreeDText object to be altered.
RESULT = (Gobject)
Returns the properties of the altered text.