toHSLuv method

HSLuvColor toHSLuv({
  1. bool round = true,
})

Converts this Color to an HSLuvColor.

Rounds components by default; pass round: false or call toRawHSLuv to keep full floating-point precision.

Implementation

HSLuvColor toHSLuv({bool round = true}) =>
    HSLuvColor.fromColor(this, round: round);