Jump to content

Changing Text color using CMYK values


Recommended Posts

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?

Link to comment
Share on other sites

//                  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).

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...