2 ms·
If you are trying to make a gradient between two colors, there is no reason you must interpolate linearly between them. (Indeed, for many purposes you should no
by jacobolus 6y ago
If you are trying to make a gradient between two colors, there is no reason you must interpolate linearly between them. (Indeed, for many purposes you should not.)
- svgeesus 6y agoand if you are making a gradient with more than two stops, (which is super common) then piecewise linear will give obvious artifacts where the slope changes; much better to use some smooth curve such as Catmull-Rom curves to avoid abrupt changes of slope at the intermediate stops