import { type Paint } from "https://deno.land/x/canvas@v1.4.1/mod.ts";
See SkPaint.h for more information on this class.
Methods
Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values (sRGB gamut, and encoded with the sRGB transfer function).
Sets the blend mode that is, the mode used to combine source color with destination color.
Sets alpha and RGB used when stroking and filling. The color is four floating point values, unpremultiplied. The color values are interpreted as being in the provided colorSpace.
Sets alpha and RGB used when stroking and filling. The color is four floating point values, unpremultiplied. The color values are interpreted as being in the provided colorSpace.
Sets the current color filter, replacing the existing one if there was one.
Sets the color used when stroking and filling. The color values are interpreted as being in the provided colorSpace.
Sets the current image filter, replacing the existing one if there was one.
Sets the current mask filter, replacing the existing one if there was one.
Sets the current path effect, replacing the existing one if there was one.
Sets the current shader, replacing the existing one if there was one.