SetTextTagFadepoint
- Parameters
-
t texttag
The text tag to modify.
fadepoint real
The new fadepoint in seconds.
- comment
Sets the fadepoint of a text tag.
- note
The fadepoint governs at what age a non-permanent text tag will start fading. The fading process is a linear interpolation of reducing the text tag's alpha value to 0 from fadepoint to lifespan. The fadepoint will assume an alpha value of 255. So when the age of a non-permanent text tag becomes fadepoint, its alpha value will be set to 255, if its age is set to fadepoint + (lifespan - fadepoint) * 0.5 or the text tag is made non-permanent at that age, the alpha value will be set to 255 - 255 * 0.5 and continue to gradually reduce to 0. So, during the fading process, the alpha value is computed by 255 - (age - fadepoint) / (lifespan - fadepoint).
- note
Jumping out of a fading process by changing age or fadepoint does not reset the alpha value.
- note
When a text tag is destroyed, its id is pushed to a stack for recycling (see
CreateTextTag
).- patch
1.18a
- Source
- common.j
- return type
nothing
- Source code
native SetTextTagFadepoint takes texttag t, real fadepoint returns nothing