[Include] [INC] Co[S]mY's Color Functions 0.1
#1

Cosmy's Color Functions 0.1

Code:
/******************************************************************************/
/*
    Type:
                Stock function
    Function:
                color_MakeColor(colorname[], a, r, g, b);
    Params:
          colorname[] -> Is the color name
                a      -> The alpha color [must be between 0 and 255]
                r      -> The red color [must be between 0 and 255]
                g      -> The green color [must be between 0 and 255]
                b      -> The blue color [must be between 0 and 255]
    Return:
                Return 0 if the function has errors else return 1
    Bugs:
          I found an bug with "fwrite()" function... do not make a new line!!!
    Example:
                color_MakeColor("COLOR_RED", 255, 255, 0, 0);
*/
/******************************************************************************/
Code:
/******************************************************************************/
/*
    Type:
                Stock function
    Function:
                color_GetError();
    Params:
 
    Return:
                Return the "color_MakeColor()" error (if have)
    Bugs:
 
    Example:
                color_MakeColor("COLOR_RED", 256, 255, 0, 0);
                new error[100];
                error = color_GetError();
                printf(error);
*/
/******************************************************************************/
pastebin: http://pastebin.com/m3bfc2fd5
Reply


Messages In This Thread
[INC] Co[S]mY's Color Functions 0.1 - by cosmy - 13.01.2009, 17:41
Re: [INC] Co[S]mY's Color Functions 0.1 - by On_Top_Non_Stop - 13.01.2009, 18:42
Re: [INC] Co[S]mY's Color Functions 0.1 - by cosmy - 14.01.2009, 12:44
Re: [INC] Co[S]mY's Color Functions 0.1 - by The_Tough - 16.06.2009, 13:05
Re: [INC] Co[S]mY's Color Functions 0.1 - by Weirdosport - 16.06.2009, 16:16
Re: [INC] Co[S]mY's Color Functions 0.1 - by Karlip - 16.06.2009, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)