I'm trying to export files from Adobe InDesign to basic HTML + CSS.
A user can select some text and change the text colour. Using the InDesign SDK I can fetch the RGB values for that colour and in the CSS file declare
There is no tint, hue,saturation or brightness in CSS. You should "build" these properties into your RGB color. To apply tint on your RGB, use this expression:
when R,G,B are from 0..255, tint from 0..1
new R = tint*R + (1-tint)*255; new G = tint*G + (1-tint)*255; new B = tint*B + (1-tint)*255;
Tint is the convex combination of your color and white color. See Wikipedia.