Color

RGBA stands for red green blue alpha. While it is sometimes described as a color space, it is actually the three-channel RGB color model supplemented with a fourth alpha channel. Alpha indicates how opaque each pixel is and allows an image to be combined over others using alpha compositing, with transparent areas and anti-aliasing 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

Last updated