AnthonyEdmonds / token-aura-ring

A simple module for Foundry VTT which adds an outlined ring aura to a token.
MIT License
2 stars 0 forks source link

Style Support - Background (Transparency) #9

Open apoapostolov opened 1 month ago

apoapostolov commented 1 month ago

Please add support for background with level of transparency (0.1 or 0.05 as default). This is one of the few remaining visual features of Token Auras that miss in this mod. Thanks!

We discussed this in Dorako channel on Discord and he quickly hacked a method to do it

image

this.pixiGraphics.beginFill(Color.from(aura.colour), aura.opacity / 3);
this.pixiGraphics.drawEllipse(auraX, auraY, auraRadius, auraRadius);
this.pixiGraphics.endFill();
AnthonyEdmonds commented 1 month ago

Agreed, it is indeed trivial since it is all canvas paths.

I initially made this library because I didn't like the solid fill and would rather have a ring, however if other people want it I'll see what I can do.

apoapostolov commented 1 month ago

It is very pleasant when used at a very low transparency level (0.1 or 0.05 is my favourite). It does not look good when colored or when higher than that. So a default could be set to a very low transparency, if turned on.