Skip to main content

WIDTH_SCALE

Constant WIDTH_SCALE 

Source
pub const WIDTH_SCALE: f32 = 0.003;
Expand description

Maps the thickness parameter (a small integer-ish stroke weight) to an NDC-y half-width; thickness = 2 gives a comfortably thick projector line.

One constant for all four line scenes, so a thickness that reads well on the rose reads the same on the mandala.