TriangleMesh
class TriangleMesh(val colorSpace: ColorSpace, val background: RgbColor?, val bbox: Rectangle?, val triangles: List<KiteShading.MeshTriangle>) : KiteShading
Types 4/5: a triangle mesh with per-vertex colours.
Constructors
Link copied to clipboard
constructor(colorSpace: ColorSpace, background: RgbColor?, bbox: Rectangle?, triangles: List<KiteShading.MeshTriangle>)
Properties
Link copied to clipboard
Optional /Background colour, used for regions outside the shading domain when Extend is false on the relevant side. Per spec the background is in colorSpace; we eager-convert to RGB.
Link copied to clipboard
The shading's colour space (DeviceGray / DeviceRGB / DeviceCMYK / Indexed).
Link copied to clipboard
Functions
Link copied to clipboard
Sample a KiteShading.Axial or KiteShading.Radial at evenly-spaced stops between domain[0] and domain[1]. Returns parallel t and RGB arrays the backend uses to build a gradient brush.