inverted property

  1. @override
HspColor inverted
override

Adjusts this colors hue by 180 degrees while inverting the saturation and perceivedBrightness values.

Implementation

@override
HspColor get inverted => HspColor(
    (hue + 180) % 360, 100 - saturation, 100 - perceivedBrightness, alpha);