Everytime I try to use draw.DrawText to make the text black in a HUD, it seems that the grayer the color gets, the lower the alpha. This makes the text completely invisible by the time its set to the color black. Am I doing something wrong here?
[lua]draw.DrawText("25.0","lcd36", ScrW()/2, ScrH()/2, Color(0,0,0,255), 2)[/lua]
Are you drawing it on a black background? That would indeed make it seem like it fades away.
Side note: you can use the global variable "color_black" instead of "Color(0,0,0,255)".
[b][url=http://wiki.garrysmod.com/?title=Surface.CreateFont]Surface.CreateFont [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Look at the 'additive' argument.
EDIT: I fixed it, apparently I had additive set to 0, which was interpreted as true, so turning it off fixed it.
Sorry, you need to Log In to post a reply to this thread.