Jump to content

Recommended Posts

Posted

void cDraw::FillGradient( int x, int y, int w, int h, int r, int g, int b, unsigned int alpha0, unsigned int alpha1, bool bHorizontal )
{
pMatSystemSurface->DrawSetColor( r, g, b, 255 );
pMatSystemSurface->DrawFilledRectFade( x, y, x + w, y + h, alpha0, alpha1, bHorizontal );
}

 

void cDraw::GradBlackToRGB( int x, int y, int w, int h, int r, int g, int b, unsigned int alpha0, unsigned int alpha1, bool bHorizontal )
{
FillRGBA( x, y, w, h, CHEAT_BLACK );
FillGradient( x, y, w, h, r, g, b, alpha0, alpha1, bHorizontal );
}

void cDraw::GradRGBToRGB( int x, int y, int w, int h, int r, int g, int b, int r1, int g1, int b1, unsigned int alpha0, unsigned int alpha1, bool bHorizontal )
{
FillRGBA( x, y, w, h, COLORCODE( r1, g1, b1, 255 ) );
FillGradient( x, y, w, h, r, g, b, alpha0, alpha1, bHorizontal );
}

void cDraw::GradWhiteToRGB( int x, int y, int w, int h, int r, int g, int b, unsigned int alpha0, unsigned int alpha1, bool bHorizontal )
{
FillRGBA( x, y, w, h, CHEAT_WHITE );
FillGradient( x, y, w, h, r, g, b, alpha0, alpha1, bHorizontal );
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...