Package paint provides drawing operations for 2D graphics.
The PaintOp operation draws the current material into a rectangular area, taking the current clip path and transformation into account.
The material is set by either a ColorOp for a constant color, or ImageOp for an image.
ColorOp sets the material to a constant color.
ImageOp sets the material to an image.
PaintOp draws the current material, respecting the clip path and transformation.