feat: better regionFill gradients
This commit is contained in:
parent
a26a81c866
commit
cdf5fbe33b
@ -156,7 +156,7 @@ export function makeGradient(svgDefElem, color, lighter = false) {
|
|||||||
let gradientDef = renderVerticalGradient(svgDefElem, gradientId);
|
let gradientDef = renderVerticalGradient(svgDefElem, gradientId);
|
||||||
let opacities = [1, 0.6, 0.2];
|
let opacities = [1, 0.6, 0.2];
|
||||||
if (lighter) {
|
if (lighter) {
|
||||||
opacities = [0.4, 0.05, 0];
|
opacities = [0.15, 0.05, 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
setGradientStop(gradientDef, "0%", color, opacities[0]);
|
setGradientStop(gradientDef, "0%", color, opacities[0]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user