Class cc.Color4B

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Color4B(r1, g1, b1, a1)
RGBA color composed of 4 bytes

Class Detail

cc.Color4B(r1, g1, b1, a1)
RGBA color composed of 4 bytes
//create a red color
var redColor = new cc.Color4B(255,0,0,255);
Parameters:
{Number} r1
red value (0 to 255)
{Number} g1
green value (0 to 255)
{Number} b1
blue value (0 to 255)
{Number} a1
Alpha value (0 to 255)