HslColor.fromColor constructor

HslColor.fromColor(
  1. Color color
)

Constructs a HslColor from color.

Implementation

factory HslColor.fromColor(Color color) =>
    RgbColor.fromColor(color).toHslColor();