Skip to content

Commit af0ccca

Browse files
authored
Fixed the per-element opacity on Surface plots
This works only if the global opacity is also specified and <1. To blend different surfaces, an opacity of 0.99 works great.
1 parent 50bbb7e commit af0ccca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/gl_format_color.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function parseColorScale(cont, alpha) {
9191
var rgb = color.toRgb();
9292
return {
9393
index: index,
94-
rgb: [rgb.r, rgb.g, rgb.b, alpha]
94+
rgb: [rgb.r, rgb.g, rgb.b, rgb.a]
9595
};
9696
});
9797
}

0 commit comments

Comments
 (0)