PdfColorCmyk constructor

const PdfColorCmyk(
  1. double cyan,
  2. double magenta,
  3. double yellow,
  4. double black, [
  5. double a = 1.0,
])

Creates a CMYK color

Implementation

const PdfColorCmyk(this.cyan, this.magenta, this.yellow, this.black,
    [double a = 1.0])
    : super((1.0 - cyan) * (1.0 - black), (1.0 - magenta) * (1.0 - black),
          (1.0 - yellow) * (1.0 - black), a);