I've been investigating how to apply tint in DrawingXML and the results I'm getting don't make sense based on the documentation. The ECMA spec defines a 10% tint as 10% of the colour mixed with 90% white. But I can't get this formula to work. Also note that this won't work for white - 10% of white plus 90% of white will be 100% white, which is not what (for example) Excel shows in Charts.
I also noted that a 90% black is more about what I would eyeball as a 70% black. It turns out that I wasn't completely off, as I went from 0% tinted black all the way to 10%, I could see the colour change was more pronounced at the beginning, and less so at the end. For example, the R (of the RGB) went from 0 to 89 when I put 90% tint, but it went from 231 to 243 when I went from 20% to 10% tint. This is not linear. Actually, 89/255 = 0.34 which is why I was guessing 70% instead of 90%.
I also looked at the hue, saturation, and luminance, and though only the luminance changed, it too was not linear. It first made a jump of 84, then a jump of 33, followed by 33, till at last it made a jump of 12 when it went from 20% to 10%.
Now the documentation was exactly correct when it described how to apply tint in SpreadsheetML, all my Spreadsheet cells show up correctly. But the documentation doesn't make any sense for DrawingML, all my drawing objects, including charts, show up wrong.
Does anyone know what the correct calculation would be? I'll continue to try to work out the exact formula, but is it really that complicated, or am I missing something that should be obvious?
Thanks in advance!