Skip to content

Version 0.2.0

Choose a tag to compare

@arkonger arkonger released this 30 May 22:34
· 8 commits to main since this release
  • Overloaded Color.__or__(self, other) to get euclidean distance with pipe operator
  • Added Color.get_nearest_web_color(color) to get nearest web color
  • Renamed Hex subclass to HEX for consistency with other subclasses
  • Added OKLAB subclass
  • Overloaded Color.__add__(self, other) to get midpoint in OKLAB
  • Overloaded Color.__neg__(self) to get complement in OKLAB
  • Overloaded Color.__sub__(self, other) to add self with other's complement
  • Added gamut clipping functions:
    • gamut_clip_hue_dependent(color)
    • gamut_clip_hue_independent(color)
    • gamut_clip_preserve_lightness(color)