HspColor.fromColor constructor

HspColor.fromColor(
  1. Color color
)

Constructs a HspColor from color.

Implementation

factory HspColor.fromColor(Color color) =>
    RgbColor.fromColor(color).toHspColor();