Skip to content

Instantly share code, notes, and snippets.

@julik
Created April 26, 2019 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julik/060160eedf2748af1fb13b117b0528a9 to your computer and use it in GitHub Desktop.
Save julik/060160eedf2748af1fb13b117b0528a9 to your computer and use it in GitHub Desktop.
moo.com Illustrator colors (use "File -> Run Script" to create swatches)
function addCMYKSwatch(name, c, m, y, k) {
var myDoc = app.activeDocument;
var mySwatch = myDoc.swatches.add();
var color = new CMYKColor();
color.cyan = c;
color.magenta = m;
color.yellow = y;
color.black = k;
mySwatch.color = color;
mySwatch.name = name;
}
addCMYKSwatch("Raven Black", 0, 0, 0, 100);
addCMYKSwatch("Polar White", 0, 0, 0, 0);
addCMYKSwatch("Chili Red", 25, 100, 90, 30);
addCMYKSwatch("Ocean Blue", 100, 15, 5, 5);
addCMYKSwatch("Sunny Yellow", 0, 8, 66, 0);
addCMYKSwatch("Forest Green", 71, 0, 72, 0);
addCMYKSwatch("Tiger Orange", 0, 55, 84, 0);
addCMYKSwatch("Neon Pink", 0, 100, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment