Neverlose
  • List of all methods
  • Methods
    • CGlobalVarsBase
    • CUserCmd
    • C_BaseEntity
    • C_BasePlayer
    • Cheat
    • CheatVar
    • CheatVars
    • Color
    • ConVar
    • Config
    • Globals
    • ICvar
    • IEngineClient
    • IEntityList
    • IGameEvent
    • IMaterial
    • IMaterialSystem
    • INetChannelInfo
    • IRender
    • Panorama
    • QAngle
    • Utils
    • Vector
    • Vector2
    • trace_t
Powered by GitBook
On this page
  • Color.new():
  • Color.new(float r, float g, float b)
  • Color.new(float r, float g, float b, float a)
  • float r()
  • float g()
  • float b()
  • float a()
  1. Methods

Color

PreviousCheatVarsNextConVar

Last updated 5 years ago

RGBA stands for red green blue alpha. While it is sometimes described as a , it is actually the three-channel supplemented with a fourth alpha channel. Alpha indicates how opaque each pixel is and allows an image to be combined over others using , with areas and of the edges of opaque regions.

Color.new():

		Creates new Color object (0,0,0,0)

Color.new(float r, float g, float b)

		Creates new Color object (r,g,b,255)

Color.new(float r, float g, float b, float a)

		Creates new Color object (r,g,b,a)

float r()

		Returns Red value of object

float g()

		Returns Green value of object

float b()

		Returns Blue value of object

float a()

		Returns Alpha value of object
color space
RGB color model
alpha compositing
transparent
anti-aliasing