Auto Layer =layer::create (); /************* Ornate split line *************/Auto Layer= Layercolor::create (COLOR4B (255,0,0,255), Max, Max); /************* Ornate split line *************/Auto Layer= Layergradient::create (COLOR4B (255,0,0,255), COLOR4B (255,255,0,255)); /************* Ornate split line *************/Auto Layer= Layergradient::create (COLOR4B (255,0,0,255), COLOR4B (0,255,0,255), VEC2 (0.9f,0.9f));
Layer class inherits from Node
Create a full-screen black layer
Static Layer * Create ()
Layercolor class inherits from layer
Create a full-screen black layer
Static layercolor* Create ()
Create a layer with color, width, and height
Static layercolor* Create (const COLOR4B & color, glfloat width, glfloat height)
Layergradient class inherits from Layercolor
Create a full-screen black layer.
Static Layergradient * Create ()
Creates a full-screen and gradient layer between the start and end colors.
Static Layergradient * Create (const COLOR4B &start, const COLOR4B &end)
On Direction V, create a full-screen color gradient layer using the start color and end color interpolation.
Static Layergradient * Create (const COLOR4B &start, const color4b &end, const VEC2 &v)
Cocos Code Research (2) Layer Learning notes