XyzColor.fromColor constructor

XyzColor.fromColor(
  1. Color color
)

Constructs a XyzColor from color.

Implementation

factory XyzColor.fromColor(Color color) =>
    RgbColor.fromColor(color).toXyzColor();