[Previous] [Contents] [Index] [Next]

PgSetFillColor()

Set the fill color

Synopsis:

PgColor_t PgSetFillColor( PgColor_t color );

Description:

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().

Returns:

The previous color.

Examples:

// 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 );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgCMY(), PgColor_t, PgGray(), PgHSV(), PgRGB(), PgSetDrawMode(), PgSetFillDither(), PgSetFillTransPat(), PgSetStrokeColor(), PgSetStrokeDither(), PgSetStrokeTransPat(), PgSetTextColor(), PgSetTextDither(), PgSetTextTransPat()


[Previous] [Contents] [Index] [Next]