canvaskit-wasm 0.39 build 2026-04-29

TileMode

Controls how a shader / image / blur samples beyond its source bounds. Used by gradient shaders (CK.Shader.MakeLinearGradient etc.), Image.makeShaderOptions, and image filters like MakeBlur.

Error: Line 3: Unexpected identifier

The chess sprite is 32 × 16 pixels; rendering it across a 300 × 190 region exposes how each tile mode handles "what's outside the source".

All values

ValueBehavior outside source bounds
ClampUse the edge pixel — looks like the edge stretches forever.
RepeatTile the source. Most common for patterns.
MirrorTile alternating reflections. No visible seams between tiles.
DecalTransparent. Anything outside the source draws nothing — useful for blur to fade rather than smear.

See also