HsbColor.fromColor constructor

HsbColor.fromColor(
  1. Color color
)

Constructs a HslColor from color.

Implementation

factory HsbColor.fromColor(Color color) =>
    RgbColor.fromColor(color).toHsbColor();