Class CMYKColor

  • All Implemented Interfaces:
    Color

    public class CMYKColor
    extends java.lang.Object
    implements Color
    • Field Summary

      Fields 
      Modifier and Type Field Description
      float c  
      float k  
      float m  
      float y  
    • Constructor Summary

      Constructors 
      Constructor Description
      CMYKColor​(float c, float m, float y, float k)  
    • Field Detail

      • c

        public final float c
      • m

        public final float m
      • y

        public final float y
      • k

        public final float k
    • Constructor Detail

      • CMYKColor

        public CMYKColor​(float c,
                         float m,
                         float y,
                         float k)
    • Method Detail

      • toCMYK

        public CMYKColor toCMYK()
        Description copied from interface: Color
        Returns a conversion of this color into a CYMK color. If this colour is already a CYMK then the same instance will be returned.
        Specified by:
        toCMYK in interface Color
      • toRGB

        public RGBColor toRGB()
        Description copied from interface: Color
        Returns a conversion of this Color into an RGBColor. If this colour is already an instance of RGBColor then the same instance will be returned.
        Specified by:
        toRGB in interface Color