Reference 〉 Function

Color.lighten(factorint3)

Creates a lighter secondary color from the existing color.

Parameters

  • factor int, optional

    The function generates a new color by setting the lightness in HSL space to (1-1/factor) + L/factor. Valid values range from 1 (to return the same color) to inf (to return white).

    Default value: 3

Return Value Color

A new Color object.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.

History