Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actual transparency of polygon is half of what is specified in color #2333

Open
westnordost opened this issue Oct 2, 2022 · 0 comments
Open

Comments

@westnordost
Copy link
Contributor

Have a style like this and go to 53.59579/9.94521:

sources:
    jawg:
        type: MVT
        url: https://tile.jawg.io/streets-v2/{z}/{x}/{y}.pbf
        max_zoom: 16
        url_params:
            access-token: Rqx0Qqc3TAHCG5MVXmxSAkaSgwm5nVSq4fV8IeTxiq9cieOQFfOt5BsYjK8Cwkqr
styles:
    buildings-style:
        base: polygons
        blend: translucent
layers:
    buildings:
        data: { source: jawg, layer: building }
        draw:
            buildings-style:
                order: 100
                color: rgba(0,0,0,0.25)
scene:
    background:
        color: "#ffffff"

RESULT:

You'll see this (as if alpha was 0.5):

image

EXPECTED RESULT:

image

ENVIRONMENT:

0.17.1, Android 12

MORE INFORMATION:

The bug only appears for tangram-es. Tangram (JS) does not have this bug. So if you input the above style in https://play.tangram.city/?#20.00000/53.59567/9.94527 , the transparency will be correct.

When the transparency is 0.5, the polygon will be drawn at full alpha in tangram-es.

@westnordost westnordost changed the title actual transparency of polygon is half of what it specified in color actual transparency of polygon is half of what is specified in color Oct 2, 2022
westnordost added a commit to streetcomplete/StreetComplete that referenced this issue Oct 2, 2022
westnordost added a commit to streetcomplete/StreetComplete that referenced this issue Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant