johnwun / js4ai

Collection of Javascripts for Adobe Illustrator
http://www.wundes.com/js4ai
509 stars 164 forks source link

Added SpotColor to renderSwatchLegends #13

Open schroef opened 2 years ago

schroef commented 2 years ago

I added spotcolor below lab so it also show those. Could be useful for others. It basically shows the same values as LAB, but more people use PMS colors, then this is handy

case "SPOTColor": sourceSpace = ImageColorSpace.LAB; colorComponents=[c.l,c.a,c.b]; break;

schroef commented 2 years ago

Here's also a great fix for getting the correct LAB color values https://community.adobe.com/t5/illustrator-discussions/illustrator-javascript-render-swatch-legend-lab-colour-values-incorrect/m-p/11438851#M244737