graphics.SetText
( Brutus2D 1.5.x, 1.6, 1.7] )
graphics.SetText - draw text to the current frame
Description
graphics.SetText text, x, y, font, [color]
- text - the text you want to display
- x - the x location of the text
- y - the y location of the text
- font - the font you want to use as a FontID
- [color] - (optional) the color of the text, default white ( &hFFFFFFFF )
graphics.SetText draws text in the current frame.
Examples
Example of Use
Dim font
graphics.Initialize
key.Initialize
font = graphics.CreateFont("system",15,true)
Do
graphics.Clear
graphics.SetText "Thou art dead.", 10, 10, font
graphics.Display
Loop Until key.Pressed( vk_escape ) Or key.Pressed ( vk_windowx )
graphics.Terminate
key.Terminate
Related Pages
- graphics.CreateFont - create a font to draw text with.
- graphics.Initialize - start the graphics object.
- graphics.Terminate - kill the graphics object.
- console.WriteTo - write to a specific location in console mode.
- console.WriteLine - write a line to the console window in console mode.
page_revision: 2, last_edited: 1214235550|%e %b %Y, %H:%M %Z (%O ago)