JSFL - calculating Tint Color value
Hi, guys!
I have a small JSFL pickle:
I need to extract a tint color and tint percent from given "advanced "color values. For example, a symbol instance has the following values in avdanced color mode:
colorRedPercent: 95, colorRedAmount: 5
colorGreenPercent: 95, colorGreenAmount: 8
colorBluePercent: 95, colorBlueAmount: 8

When I switch the instance color mode to "tint", the application shows me these values:

red:102, green:153, blue:153
percent:5
Is it possible to calculate the tint and percent values?
