Invert GMLscripts.com

draw_text_shadow

draw_text_shadow(x,y,str,color,shadow,intensity,distance,direction)
Draws a given string with a simple shadow effect applied to it.
COPY/// draw_text_shadow(x,y,str,color,shadow,intensity,distance,direction)
//
//  Draws a given string with a simple shadow effect applied to it.
//
//      x,y         position of text, real
//      str         text, string
//      color       text color, real
//      shadow      shadow color, real
//      intensity   shadow intensity [0..1], real
//      distance    shadow distance in pixels, real
//      direction   shadow direction in degrees, real
//
/// GMLscripts.com/license
{
    var c,a,i,j;
    c = draw_get_color();
    a = draw_get_alpha();
    i = lengthdir_x(argument6, argument7);
    j = lengthdir_y(argument6, argument7);
    draw_set_color(argument4);
    draw_set_alpha(a * argument5);
    draw_text_ext(argument0 + i, argument1 + j, argument2, -1, -1);
    draw_set_color(argument3);
    draw_set_alpha(a);
    draw_text_ext(argument0, argument1, argument2, -1, -1);
    draw_set_color(c);
    return 0;
}

Contributors: Nathanael McDaniel, xot

GitHub: View · Commits · Blame · Raw