Jump to content

Creating Outlines


Maccer.

Recommended Posts

Posted

Does anyone know how to create outlines for those dxDrawText's? You know, to make it look like sa-mp's text draws? I've seen it on some servers, but I don't know how to make it. I'm sure there's some math involved though. This effect is also known as stroke I think.

Posted
dxDrawText("a",100-1,100-1,100-1,100-1,tocolor(0,0,0,255))
dxDrawText("a",100+1,100-1,100+1,100-1,tocolor(0,0,0,255))
dxDrawText("a",100-1,100+1,100-1,100+1,tocolor(0,0,0,255))
dxDrawText("a",100+1,100+1,100+1,100+1,tocolor(0,0,0,255))
dxDrawText("a",100-1,100,100-1,100,tocolor(0,0,0,255))
dxDrawText("a",100+1,100,100+1,100,tocolor(0,0,0,255))
dxDrawText("a",100,100-1,100,100-1,tocolor(0,0,0,255))
dxDrawText("a",100,100+1,100,100+1,tocolor(0,0,0,255))
dxDrawText("a",100,100,100,100,tocolor(255,255,255,255))

This draws white "a" with a black 1 pixel outline.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...