CMYK - /*AninstancerepresentsaCMYKvalue*/...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/** An instance represents a CMYK value */  public class CMYK {     /** Color cyan. 0  c 1. */     public double c;          /** Color magenta. 0 m 1. */     public double m;          /** Color yellow. 0 y 1. */     public double y;          /** Color black. 0 c 1. */     public double k;          /** Constructor: the CMYK value (c, m, y, k).         Precondition: All components c, m, y, and k are           0 and  1.*/     public CMYK(double c, double m, double y, double k) {         this.c= c;         this.m= m;         this.y= y;         this.k= k;     }          /** Constructor: get the values of Cyan, Magenta, Yellow, and Black for class CMYK */     public double getCyan(){return c;} 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

CMYK - /*AninstancerepresentsaCMYKvalue*/...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online