import { type SkPaint } from "https://deno.land/x/canvas@v1.0.0/types.ts";
See SkPaint.h for more information on this class.
Methods
Returns a copy of this paint.
Returns the blend mode, that is, the mode used to combine source color with destination color.
Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values (sRGB gamut, and encoded with the sRGB transfer function).
Returns the image filtering level. [deprecated] This will be removed in an upcoming release.
Returns the geometry drawn at the beginning and end of strokes.
Returns the geometry drawn at the corners of strokes.
Replaces alpha, leaving RGBA unchanged. 0 means fully transparent, 1.0 means opaque.
Requests, but does not require, that edge pixels draw opaque or with partial transparency.
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 image filtering level. [deprecated] This will be removed in an upcoming release.
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.
Sets the geometry drawn at the beginning and end of strokes.
Sets the geometry drawn at the corners of strokes.
Sets whether the geometry is filled or stroked.