I need Illustrator script to find a combination of numbers in a range

旧城冷巷雨未停 提交于 2019-12-10 12:02:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!