pyboxbuilder.preview.lighten¶ pyboxbuilder.preview.lighten(color: Color, amount: float = 0.35) → Color[source]¶ Lift a colour towards white, preserving its alpha. Parameters:¶ color: Color¶The colour to lighten. amount: float = 0.35¶Fraction of the remaining distance to white, 0.0–1.0. Returns:¶ A new pybosl2.Color; the input is not modified.