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

PgSetFillColor()

Set the fill color

Synopsis:

PgColor_t PgSetFillColor( PgColor_t color );

Library:

ph

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, PgDefaultFill(), PgGray(), PgHSV(), PgRGB(), PgSetDrawMode(), PgSetFillDither(), PgSetFillTransPat(), PgSetFillXORColor(), PgSetStrokeColor(), PgSetTextColor()

"Drawing attributes" and "Arcs, ellipses, polygons, and rectangles" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


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