Color/texture strategy for fills (and, via Stroke.paint, strokes).
fill is optional and defaults to 'solid' — { color: '#abc' } is
equivalent to { fill: 'solid', color: '#abc' }. Pattern paints must set
fill: 'pattern' explicitly.
The 'pattern' variant's payload is a TextureHandle (registered via
registerTexture()). The kit-level factory createTilePattern (and the
patterns-builtin catalog: hatch, crosshatch, dots, chunks)
produces these handles by rendering a tile to an OffscreenCanvas and
registering the resulting ImageBitmap as a GL texture.
Color/texture strategy for fills (and, via
Stroke.paint, strokes).fillis optional and defaults to'solid'—{ color: '#abc' }is equivalent to{ fill: 'solid', color: '#abc' }. Pattern paints must setfill: 'pattern'explicitly.The
'pattern'variant's payload is aTextureHandle(registered viaregisterTexture()). The kit-level factorycreateTilePattern(and thepatterns-builtincatalog:hatch,crosshatch,dots,chunks) produces these handles by rendering a tile to anOffscreenCanvasand registering the resultingImageBitmapas a GL texture.