Skip to content

Class "ColorParams"⚓︎

Info

This class can be accessed using its constructor:

Example Code
1
local fiveSecondRedColor = ColorParams(Color(1,0,0,1),255,150,false,false)

Constructors⚓︎

ColorParams ()⚓︎

ColorParams ColorParams ( Color color, int priority, int duration1, int duration2, boolean fadeout, boolean shared )⚓︎


Functions⚓︎

GetColor ()⚓︎

Color GetColor ( )⚓︎


GetDuration ()⚓︎

int GetDuration ( )⚓︎

Defines the time in update frames that these parameters should last. Has no effect on how many frames are left, but does affect fadeout speed (calculated as Lifespan / Duration) if Fadeout is enabled.


GetFadeout ()⚓︎

boolean GetFadeout ( )⚓︎


GetLifespan ()⚓︎

int GetLifespan ( )⚓︎

Defines how many update frames are left before this expires. This is decremented by 1 each non-interpolation update at a rate of 30 per second. Altering this will directly effect how many frames are left before these parameters expire.


GetPriority ()⚓︎

int GetPriority ( )⚓︎


GetShared ()⚓︎

boolean GetShared ( )⚓︎


SetColor ()⚓︎

void SetColor ( Color Color )⚓︎


SetDuration ()⚓︎

void SetDuration ( int Duration )⚓︎


SetFadeout ()⚓︎

void SetFadeout ( boolean Value )⚓︎


SetLifespan ()⚓︎

void SetLifespan ( int Duration )⚓︎


SetPriority ()⚓︎

void SetPriority ( int Priority )⚓︎


SetShared ()⚓︎

void SetShared ( boolean Value )⚓︎