MeshGradientOptions
import type { MeshGradientOptions } from 'pixi-silk';
Options of mesh: where the grid sits, its units and its interpolation space.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
from? | Vec2 | Top-left corner of the grid. Default [0, 0]. | gradient.ts:437 |
space? | ColorSpace | Interpolation space. Default oklab. | gradient.ts:443 |
to? | Vec2 | Bottom-right corner of the grid. Default [1, 1]. | gradient.ts:439 |
units? | GradientUnits | shape (default): fractions of each painted shape’s box. local: the graphics’ local units. | gradient.ts:441 |