e2 docs color
Jump to table of contents
Color
= :getColor()
Returns the color of an entity as a vector (R,G,B) (2 ops)
= :getColor4()
Returns the color of an entity as a 4D vector (R,G,B,A) (2 ops)
= :getAlpha()
Returns the alpha of an entity (2 ops)
:setColor( R, G, B)
Sets the color of the entity (2 ops)
:setColor( R, G, B, A)
Sets the color and alpha of the entity (2 ops)
:setColor( C)
Sets the color of the entity (2 ops)
:setColor( C, A)
Sets the color (as vector) and alpha (as number) of the entity (2 ops)
:setColor( C)
Sets the color and alpha (as 4D vector) of the entity (2 ops)
:setAlpha( A)
Sets the alpha of an entity (2 ops)
:setRenderMode( Mode)
Sets the render mode of the entity (0 = Normal, 1 = TransColor, 2 = TransTexture, 3 = Glow, 4 = TransAlpha, 5 = TransAdd, 6 = Enviromental, 7 = TransAddFrameBlend, 8 = TransAlphaAdd, 9 = WorldGlow, 10 = None) (2 ops)
= :getPlayerColor()
Returns the player's model color as a vector (R,G,B) (2 ops)
= :getWeaponColor()
Returns the player's weapon color as a vector (R,G,B) (2 ops)
:setWeaponColor( C)
(2 ops)
:setPlayerColor( C)
(2 ops)
= hsv2rgb( Hsv)
Converts V from the HSV color space to the RGB color space (2 ops)
= hsv2rgb( H, S, V)
Converts N,N,N from the HSV color space to the RGB color space (2 ops)
= rgb2hsv( Rgb)
Converts V from the RGB to the HSV color space (2 ops)
= rgb2hsv( R, G, B)
Converts N,N,N from the RGB to the HSV color space (2 ops)
= hsl2rgb( Hsl)
Converts V from the HSL color space to the RGB color space (2 ops)
= hsl2rgb( H, S, L)
Converts N,N,N from the HSL color space to the RGB color space (2 ops)
= rgb2hsl( Rgb)
Converts V from RGB color space to the HSL color space (2 ops)
= rgb2hsl( R, G, B)
Converts N,N,N from RGB color space to the HSL color space (2 ops)
= rgb2digi( Rgb, Mode)
Converts the RGB vector V to a number in digital screen format. N Specifies a mode, either 0, 2 or 3, corresponding to Digital Screen color modes (2 ops)
= rgb2digi( R, G, B, Mode)
Converts the RGB color (N,N2,N3) to a number in digital screen format. N4 Specifies a mode, either 0, 2 or 3, corresponding to Digital Screen color modes (2 ops)