draw.TextShadow

From GMod Wiki

Jump to: navigation, search
Function
Syntax draw.TextShadow( DrawText values, Number distance, Number alpha )
Where is this used?
Description:
Draws text with a drop shadow behind it.
Returns: Number width, Number height
Part of Library: Draw
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Draw.TextShadow]Draw.TextShadow [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDraws 'Hello world' on the screen
Used onNewerClient.png
Code
 
struc = {}
struc["pos"] = {10, 10}
struc["color"] = Color(0, 0, 0, 240)
struc["text"] = "Hello world"
struc["font"] = "ChatFont"
struc["xalign"] = TEXT_ALIGN_LEFT
struc["yalign"] = TEXT_ALIGN_TOP
draw.TextShadow( struc, 2, 200 )
 
Output'Hello world' can be seen on the screen


Additional Notes


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox