Loading

Pmask

processing

The Pmask function copies the blue channel of an image to the alpha channel of an other.

As PGRAPHICS intances are alse PIMAGE instances, you can use this fonction with PGRAPHICS.

Pmask is available since version 2.7.0.

See also

Signature

Examples

100 100 '2D' PGraphics PnoStroke 0x8800ff00 Pfill // semi-transparent green 25 25 50 50 Prect 100 100 '2D' PGraphics PnoStroke 0xff333333 Pfill // light-grey 40 40 20 20 Prect Pmask Pencode