public static CCLayerGradient layerWithColor(ccColor4B start, ccColor4B end, CCPoint v) { CCLayerGradient cCLayerGradient = new CCLayerGradient(); if (cCLayerGradient.initWithColor(start, end, v)) { return(cCLayerGradient); } return(null); }
public static new CCLayerGradient node() { CCLayerGradient cCLayerGradient = new CCLayerGradient(); if (cCLayerGradient.init()) { return(cCLayerGradient); } return(null); }
/// <summary> /// Creates a full-screen CCLayer with a gradient between start and end in the direction of v. /// </summary> public static CCLayerGradient layerWithColor(ccColor4B start, ccColor4B end, CCPoint v) { CCLayerGradient pLayer = new CCLayerGradient(); if (pLayer.initWithColor(start, end, v)) { return pLayer; } return null; }
/// <summary> /// Creates a full-screen CCLayer with a gradient between start and end. /// </summary> public static CCLayerGradient layerWithColor(ccColor4B start, ccColor4B end) { CCLayerGradient pLayer = new CCLayerGradient(); if (pLayer.initWithColor(start, end)) { return(pLayer); } return(null); }
public static CCLayerGradient node() { CCLayerGradient ret = new CCLayerGradient(); if (ret.init()) { return(ret); } return(null); }
public LayerGradient() { CCLayerGradient layer1 = new CCLayerGradient(new CCColor4B(255, 0, 0, 255), new CCColor4B(0, 255, 0, 255), new CCPoint(0.9f, 0.9f)); AddChild(layer1, 0, kTagLayer); this.TouchEnabled = true; CCLabelTTF label1 = new CCLabelTTF("Compressed Interpolation: Enabled", "arial", 26); CCLabelTTF label2 = new CCLabelTTF("Compressed Interpolation: Disabled", "arial", 26); CCMenuItemLabel item1 = new CCMenuItemLabel(label1); CCMenuItemLabel item2 = new CCMenuItemLabel(label2); CCMenuItemToggle item = new CCMenuItemToggle((toggleItem), item1, item2); CCMenu menu = new CCMenu(item); AddChild(menu); CCSize s = CCDirector.SharedDirector.WinSize; menu.Position = (new CCPoint(s.Width / 2, 100)); }
public static new CCLayerGradient Create() { var ret = new CCLayerGradient(); ret.Init(); return ret; }
/// <summary> /// Creates a full-screen CCLayer with a gradient between start and end in the direction of v. /// </summary> public static CCLayerGradient Create(CCColor4B start, CCColor4B end, CCPoint v) { var pLayer = new CCLayerGradient(); if (pLayer.InitWithColor(start, end, v)) { return pLayer; } return null; }
public static CCLayerGradient node() { CCLayerGradient ret = new CCLayerGradient(); if (ret.init()) { return ret; } return null; }