![]() |
![]() |
![]() |
Set the fill color
PgColor_t PgSetFillColor( PgColor_t color );
This function sets the fill color used for subsequent draws. If the driver doesn't support 24-bit color, it selects the nearest color available to the one requested. If you OR the color with Pg_MIX_COLOR, most drivers try to mix two available colors to produce the requested color.
This function overrides the color defined by PgSetFillDither().
The previous color.
// Set draw color to white PgSetFillColor( Pg_WHITE ); // Set draw color to a washed-out orange color; // dither if necessary PgSetFillColor( PgRGB( 255, 165, 80 ) | Pg_MIX_COLOR );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PgCMY(), PgColor_t, PgGray(), PgHSV(), PgRGB(), PgSetDrawMode(), PgSetFillDither(), PgSetFillTransPat(), PgSetStrokeColor(), PgSetStrokeDither(), PgSetStrokeTransPat(), PgSetTextColor(), PgSetTextDither(), PgSetTextTransPat()
![]() |
![]() |
![]() |