View Single Post
Old 10-31-2017, 10:58 AM   #2
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,652
Default

Quote:
Originally Posted by Chain View Post
but i only get a big black window... and no line...
I think you need to define the color i.e.:

Code:
@gfx
gfx_r = 1; // Red
gfx_g = 0.5; // Green
gfx_b = 0; // Blue
gfx_a = 1; // Alpha
gfx_line(10, 10, 300, 200, 1);
Quote:
Originally Posted by Chain View Post
what is the aa refering to?
Setting it to 1 will draw a smooth line, 0 will draw a ragged line; the latter probably is faster but uglier.
Tale is offline   Reply With Quote