Closed IagoLast closed 7 years ago
You're correct, in Photoshop blend mode terms the "color" is applied in the icons shader as a "multiply" whereas you're trying to do something like a "screen" or "overlay".
We don't currently support these other modes but they are in development now. Here's an example, but note that you should not expect this to be supported going forward:
Another way to skin the cat:
styles:
colorized-icons:
mix: icons
shaders:
uniforms:
u_tint: global.black_color
u_fill: global.white_color
blocks:
filter: |
color.rgb = mix(u_tint.rgb, u_fill.rgb, color.rgb);
Where:
global:
black_color: [0.000,0.337,0.878]
white_color: [1.00,1.00,1.00]
See also:
Hi, I´m trying to create colored custom svg markers.
For non-technical issues my markers are gray and I cannot change them.
I want to give the markers a color but it seems that
tangram.js
is performing a color aditiongray + newColor
instead replacing the original color with the new one.I´ve created a simple demo to test with the tangram play web app
See the result here, note the markers are supposed to be magenta.
Regards.