Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Token Tint

Are there any additional variables stored on a token that isn't displayed in the token GUI? In particular - is it possible to set the opacity on a tint? I just started trying out DeathTracker and I find the tint is overbearing. Is there any way to modify the opacity?
1527978027

Edited 1527978143
vÍnce
Pro
Sheet Author
You can manually add an alpha/opacity value( <a href="https://gist.github.com/passiondroid/51fd6b3281c10" rel="nofollow">https://gist.github.com/passiondroid/51fd6b3281c10</a>... ) to the drawing tools color picker.&nbsp; Just add it to the end of the hex color chosen. Sadly, the aura's color picker doesn't seem to accept an alpha value. Here's a workaround that someone posted(untested) for auras&nbsp; <a href="https://app.roll20.net/forum/permalink/5134305/" rel="nofollow">https://app.roll20.net/forum/permalink/5134305/</a>
1527978280
vÍnce
Pro
Sheet Author
Maybe someone can create an "Auras" script that will center on a given token with size, color, and opacity options.&nbsp; ;-)
So I read about about opacity a bit after you provided the link and wondering something. Does the opacity (alpha channel?) go first, right after the pound sign? So this should theoretically mean the hex format for a color has 2 new digits I didn't know about. It's stated as so on that site: #AARRGGBB I'm using one of the preset hex values for AA that was on that site. I went with 30% as a trial. I modified DeathTracker to have the following code when setting tint: ('#' + '4D' + color.replace("#", "") This, for example, changes #00FF00 to #4D00FF00. The tint is being changed on the token GUI but it's not applying the tint to the I'm at a loss at what to do next. Is there a way to force the token's settings to refresh (and subsequently apply the tint)?
1527985406

Edited 1527986222
vÍnce
Pro
Sheet Author
The link showed the alpha value at the begining, but the color picker used for the drawing tools only allows it at the end.&nbsp; Here's some more info to support that:&nbsp; <a href="https://css-tricks.com/8-digit-hex-codes/" rel="nofollow">https://css-tricks.com/8-digit-hex-codes/</a> But in my experimentation, the aura color picker only excepts hex colors. ie #000000&nbsp; So I'm not sure you're going to accomplish much with auras ;-( You might try just picking colors that are half the amount of color. ie use light grey instead of black.&nbsp; That seems to produce a more transparent version of the color. PC on left has aura #c0c0c0(hardly discernible since aura appears to be ~50% transparent by default) while PC on right has #000000
I initially had no plans to work this in for auras. All I want to do is apply a token's tint to the graphic representing that token. The color is being updated and I see that it is not "transparent" but it's not applying it to the token.
So as I stated I can get the tint color set but it's not applying to the token: You can see the hex color in the text box area of the color picker. It has the AA value at the end (4D). Everything is setup to work but it just won't add the tint to the token. I'm really stumped here.
Anyone have any input on this? Is there a way to force an "update" to a token so the set tint is applied? (as is seen in post above)
1528060560
The Aaron
Pro
API Scripter
I don't think you can specify the transparency on a token tint.&nbsp; The tint is already applied with a certain transparency which likely overrides whatever you'd be setting.