fromCMYK static method

Color fromCMYK(
  1. int c,
  2. int m,
  3. int y,
  4. int k, [
  5. int a = 1,
])

Implementation

static Color fromCMYK(int c, int m, int y, int k, [int a = 1]) {
  var r = 255 * (1 - c) * (1 - k);
  var g = 255 * (1 - m) * (1 - k);
  var b = 255 * (1 - y) * (1 - k);
  return Color.fromARGB(a, r.round(), g.round(), b.round());
}