draw_set_swf_aa_level

Set the anti-aliasing level for SWF format vector sprites.

Syntax:

draw_set_swf_aa_level(AA);


Argument Description
AA The anti-aliasing value to use from 0 to 1.


Returns: N/A


Description

This function can be used to set the anti-aliasing (AA) level for SWF format vector sprites. This can be a real value from 0 to 1 and will "smooth" the edges of these sprites. Note that to see this effect, you must first have enabled AA using the function draw_enable_swf_aa().

IMPORTANT! This function is not available with the Trial Licence of the product.



Example:

if draw_get_swf_aa_level() == 0
   {
   draw_enable_swf_aa(true);
   draw_set_swf_aa_level(0.5);
   }

The above code will check the AA value for SWF format sprites, and if it is 0 it enables AA and sets the value to 0.5.


Back: Drawing Sprites And Tiles
Next: draw_get_swf_aa_level
© Copyright YoYo Games Ltd. 2018 All Rights Reserved