Skip to content
pixi-silk
GitHub repository
Interface

MeshGradientOptions

import type { MeshGradientOptions } from 'pixi-silk';

Options of mesh: where the grid sits, its units and its interpolation space.

Properties#

PropertyTypeDescriptionDefined in
from?Vec2Top-left corner of the grid. Default [0, 0].gradient.ts:437
space?ColorSpaceInterpolation space. Default oklab.gradient.ts:443
to?Vec2Bottom-right corner of the grid. Default [1, 1].gradient.ts:439
units?GradientUnitsshape (default): fractions of each painted shape’s box. local: the graphics’ local units.gradient.ts:441