Interface LCHColorValue

All Superinterfaces:
Cloneable, CSSColorValue, CSSPrimitiveValue, CSSTypedValue, CSSValue
All Known Implementing Classes:

@Deprecated public interface LCHColorValue extends CSSColorValue
Instead of using this interface, just cast the result of CSSColorValue.getColor() to the appropriate interface (like LCHColor) according to the given CSSColorValue.getColorModel().
Represents a color value with the LCh color model, like lch() or oklch().

It is not guaranteed that all colors with a LCh model shall implement this interface, therefore its usage is not recommended.

  • Method Details

    • getColor

      LCHColor getColor()
      Get the lch() or oklch() color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      the lch() or oklch() color.
    • clone

      LCHColorValue clone()
      Description copied from interface: CSSValue
      Creates and returns a copy of this value.
      Specified by:
      clone in interface CSSColorValue
      Specified by:
      clone in interface CSSValue
      a clone of this value.