lighten method

HslColor lighten([
  1. int amount = 10
])

Lighten the color a given amount, from 0 to 100. Providing 100 will always return white.

Implementation

HslColor lighten([int amount = 10]) => copyWith(l: clamp01(l + amount / 100));