toHSV method

  1. @defineMethodSkip
HSVType toHSV(
  1. Node color
)

Convert color to HSV or throw error

Implementation

@defineMethodSkip
HSVType toHSV(Node color) => (color is Color)
    ? color.toHSV()
    : throw LessError(message: 'Argument cannot be evaluated to a color');