PaintLayer

class PaintLayer(val source: SourcePreset, val units: PaintUnits = PaintUnits.BOUNDS, val transform: Matrix44 = Matrix44.IDENTITY, val fit: PaintFit = PaintFit.STRETCH)(source)

A paint of a PaintStyle: source read at coordinates in units, transformed by the inverse of transform. In PaintUnits.BOUNDS units fit keeps the aspect ratio of the paint in bounds that are not square, before the transform; for other units it does nothing, put it in the transform.

Constructors

Link copied to clipboard
constructor(source: SourcePreset, units: PaintUnits = PaintUnits.BOUNDS, transform: Matrix44 = Matrix44.IDENTITY, fit: PaintFit = PaintFit.STRETCH)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val transform: Matrix44
Link copied to clipboard