Created
April 26, 2019 19:43
-
-
Save julik/060160eedf2748af1fb13b117b0528a9 to your computer and use it in GitHub Desktop.
moo.com Illustrator colors (use "File -> Run Script" to create swatches)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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