Printing Partners Posted September 21, 2016 Share Posted September 21, 2016 I see where you can assign a color to text using a predetermined color from the Color List, and how you can assign a text color using hex values. But can you do it using CMYK values? I have Profile Attributes that are CMYK values that I use for coloring text boxes via an OnStart script. I would like to be able to use those same values to color text. Is it possible? Or do I need to convert the CMYK values to their hex equivalents and then apply them? Quote Link to comment Share on other sites More sharing options...
step Posted September 21, 2016 Share Posted September 21, 2016 // Name C M Y K new FusionProColor('New Color', 100, 0, 0, 0); return '<color name="New Color">Text String></color>'; Quote Link to comment Share on other sites More sharing options...
Printing Partners Posted September 21, 2016 Author Share Posted September 21, 2016 Perfect! Thanks!!! Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted September 21, 2016 Share Posted September 21, 2016 // Name C M Y K new FusionProColor('New Color', 100, 0, 0, 0); return '<color name="New Color">Text String></color>'; Or: return '<color cmyk="FF000000">Text String></color>'; Note that these are still CMYK values; it's just that the tag uses two hex digits representing 0 to 255 (0xFF) for each channel, instead of a percentage from 0 to 100 (0x64). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.