Color

RGBA stands for red green blue alpha. While it is sometimes described as a color spacearrow-up-right, it is actually the three-channel RGB color modelarrow-up-right supplemented with a fourth alpha channel. Alpha indicates how opaque each pixel is and allows an image to be combined over others using alpha compositingarrow-up-right, with transparentarrow-up-right areas and anti-aliasingarrow-up-right 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()

float a()

Last updated