Solid color, gradient, pattern, or texture used for fills.
Color inputs follow the [Color4fInput] convention:
"#ff8800", "rgb(...)", named colors) is parsed as
sRGB-gamma.[r, g, b, a] array carries premultiplied linear-light floats
interpreted in the surface's working color space; pass these to avoid
the lossy sRGB-encoding round-trip used by the CSS form (the shape
mirrors TextStyleInput.color and CanvasKit's Paint.setColor).Solid color, gradient, pattern, texture, or shader used for strokes. See
fillStyle for the color-input contract.
The optional fourth argument is this library's own: the Canvas API always sweeps a full turn, and Skia can sweep any arc. Omitting it draws exactly what a browser draws.
OptionalendAngle: number🧪 Not in the HTML Canvas standard.
Optionaloptions: CreateTextureOptions
What fills and strokes are painted with -- a colour, a gradient, a pattern or a texture -- and the factories that build them.