Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: Re: Change the fill color of an object in illustrator using extendscript

$
0
0

my dumb way:


usage

if( compareRGBColor(someItem.fillColor,targetColor)){     //do something
}

function

function compareRGBColor(c1,c2){ //RGB color comparing utility    var result = new Boolean();    if(c1!=undefined && c2!=undefined) {          result = (c1.red==c2.red && c1.green == c2.green && c1.blue == c2.blue)?true:false;        }else{            //$.writeln("color uncomparable");            }        return result    }

Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>