问题
I need to be able to find colors based on the RGB number brake down. I am not 100% how to make this work. Here is kind of what i am looking for.
\var aDoc = app.activeDocument;
var rgbCol = new RGBColor();
rgbCol.red = x >= 200 && x <= 220;
rgbCol.green = y >= 200 && y <= 220;
rgbCol.blue = z >= 200 && z <= 220;
aDoc.defaultFillColor = rgbCol;
app.executeMenuCommand("Find Fill Color menu item");
Each one of the RGB numbers can be different from each other. Any ideas?
来源:https://stackoverflow.com/questions/51769768/i-need-illustrator-script-to-find-a-combination-of-numbers-in-a-range