OklabColor.fromColor constructor

OklabColor.fromColor(
  1. Color color
)

Constructs an OklabColor from color.

Implementation

factory OklabColor.fromColor(Color color) =>
    RgbColor.fromColor(color).toOklabColor();