Set the draw transparency for fills
void PgSetFillTransPat( PgPattern_t pat );
This function sets a masking pattern and applies it to fills. You should use it in combination with PgSetFillColor() or PgSetFillDither().
This function uses the same patterns as PgSetFillDither(), To disable transparency and draw normally, specify the Pg_PAT_DEFAULT pattern.
Because of speed considerations, some graphics drivers don't draw strokes with a transparency mask and, as a result, ignore the stroke transparency pattern. |
// let background show through for half the pixels PgSetFillTransPat( Pg_PAT_HALF ); // disable transparency mask, draw normally PgSetFillTransPat( Pg_PAT_DEFAULT );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PgSetFillColor(), PgSetFillDither(), PgSetStrokeColor(), PgSetStrokeDither(), PgSetStrokeTransPat(), PgSetTextColor(), PgSetTextDither(), PgSetTextTransPat()