Class cc.Color4F

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

Class Detail

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