← back to roto on ba3a.dev

BrushStroke

@Serializable
data class BrushStroke(val frame: Int, val mode: BrushMode, val radius: Int, val points: List<BrushPoint>)

One stroke of the artist's brush on frame of a clip's mask; stored per clip in profile.json, in the order painted. It stamps a disc of radius pixels along points, in working-frame pixels, and strokes on one frame apply in that order, so a later one wins where they cross.

Constructors

Link copied to clipboard
constructor(frame: Int, mode: BrushMode, radius: Int, points: List<BrushPoint>)

Properties

Link copied to clipboard
val frame: Int

the clip frame the stroke is on

Link copied to clipboard

whether it paints figure in or out

Link copied to clipboard

where the disc is stamped, in the order painted

Link copied to clipboard
val radius: Int

the brush radius in pixels, 1..64