inverse property

  1. @override
RayHsl get inverse
override

Returns the color with inverted color values, preserving opacity.

Implementation

@override
RayHsl get inverse => RayHsl(
      hue: _normalizeHue(hue + 180), // Shift hue by 180 degrees
      saturation: 1.0 - saturation, // Invert saturation
      lightness: 1.0 - lightness, // Invert lightness
      opacity: opacity, // Keep opacity
    );