Class cc.Color3B

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Color3B(r1, g1, b1)
RGB color composed of bytes 3 bytes

Class Detail

cc.Color3B(r1, g1, b1)
RGB color composed of bytes 3 bytes
//create an empty color
var color1 = new cc.Color3B();

//create a red color
var redColor = new cc.Color3B(255,0,0);

//create a new color with color
var newColor = new cc.Color3B(redColor);
Parameters:
{Number | cc.Color3B} r1
red value (0 to 255) or destination color of new color
{Number} g1
green value (0 to 255)
{Number} b1
blue value (0 to 255)