Hsla.fromColor constructor

Hsla.fromColor(
  1. Color color
)

Implementation

factory Hsla.fromColor(Color color) {
  var rgba = color.rgba;
  return _createFromRgba(rgba.r, rgba.g, rgba.b, rgba.a);
}