[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.

This function overrides the color defined by PgSetFillDither().

Returns:

The previous color.

Examples:

/* Set the draw color to white. */
PgSetFillColor( Pg_WHITE );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgARGB(), 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]