Preset

class Preset(val preset: SourcePreset, val units: PaintUnits = PaintUnits.BOUNDS, val transform: Matrix44 = Matrix44.IDENTITY, val fallback: ColorRGBa? = null) : Paint.Server(source)

A paint of any preset that generates colors, such as noise or checkers. It is not written to SVG documents, fallback is written instead.

Constructors

Link copied to clipboard
constructor(preset: SourcePreset, units: PaintUnits = PaintUnits.BOUNDS, transform: Matrix44 = Matrix44.IDENTITY, fallback: ColorRGBa? = null)

Properties

Link copied to clipboard
val fallback: ColorRGBa?
Link copied to clipboard
Link copied to clipboard
open override val transform: Matrix44
Link copied to clipboard
open override val units: PaintUnits
Link copied to clipboard
open override val value: ColorRGBa?

Functions

Link copied to clipboard
open override fun source(): SourcePreset

the preset that generates the colors of this paint

Link copied to clipboard
open override fun toString(): String