Class cc.c4f

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.c4f(r, g, b, a)
helper macro that creates an ccColor4F type

Class Detail

cc.c4f(r, g, b, a)
helper macro that creates an ccColor4F type
//create a red color
var redColor = cc.c4f(1,0,0,1);
Parameters:
{Number} r
red value (0 to 1)
{Number} g
green value (0 to 1)
{Number} b
blue value (0 to 1)
{Number} a
Alpha value (0 to 1)