← back to roto on ba3a.dev

ScaleSettings

@Serializable
data class ScaleSettings(val bodyHeight: Int, val marks: ScaleMarks, val squash: Double = 1.0)

How big a profile's figure is drawn, set once per profile; stored in profile.json.

The artist marks the top of the head and the soles of the feet on one standing frame, marks; the figure between them is drawn bodyHeight canvas pixels tall. squash then shortens it vertically only — 0.85 draws it 85 % as tall at the same width — for the extra top-down feel of a three-quarter view. 1 leaves it unsquashed.

Constructors

Link copied to clipboard
constructor(bodyHeight: Int, marks: ScaleMarks, squash: Double = 1.0)

Properties

Link copied to clipboard

the figure's height on the canvas, in canvas pixels

Link copied to clipboard

where the artist marked the standing figure

Link copied to clipboard

Canvas pixels per working-frame pixel, across.

Link copied to clipboard

Canvas pixels per working-frame pixel, down: scaleX squashed.

Link copied to clipboard

vertical shortening, 0.5..1; 1 leaves the figure unsquashed