File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,10 @@ Arguments are normalized as follows:
124
124
it is expanded to all adjusters available for the given [=colorspace=] plus alpha.
125
125
2. If a percentage is omitted and there are no adjusters present on any color arguments,
126
126
it defaults to 50% (an equal mix of the two colors).
127
- 3. If only some adjusters are present, the remaining ones default to 0% (i.e. the corresponding components are taken from the first color).
128
- 4. If the sum of corresponding adjusters across all colors is not 100%, percentages are scaled proportionally so that the sum is exactly 100%.
127
+ 3. Adjusters that are not present on **any** color default to 0% (i.e. the corresponding components are taken from the first color).
128
+ 4. Adjusters that are only present on one of the colors default to <code> 100% - <i> p</i></code> on the second color,
129
+ where <i> p</i> is the percentage of the corresponding adjuster in the other color.
130
+ 5. If the sum of corresponding adjusters across all colors is not 100%, percentages are scaled proportionally so that the sum is exactly 100%.
129
131
130
132
Issue: Do missing adjusters default to 0% everywhere, or only in the second color?
131
133
If the former, we can end up with adjusters that sum to 0% pretty easily.
You can’t perform that action at this time.
0 commit comments