Class cc.LayerRGBA

Class Summary
Constructor Attributes Constructor Name and Description
 

CCLayerRGBA is a subclass of CCLayer that implements the CCRGBAProtocol protocol using a solid color as the background.

Method Summary

Class Detail

cc.LayerRGBA()

CCLayerRGBA is a subclass of CCLayer that implements the CCRGBAProtocol protocol using a solid color as the background.
All features from CCLayer are valid, plus the following new features that propagate into children that conform to the CCRGBAProtocol:
- opacity
- RGB colors

Method Detail

  • {number} getDisplayedOpacity()
    Returns:
    {number}
  • {number} getOpacity()
    Returns:
    {number}
  • setOpacity(opacity)
    Override synthesized setOpacity to recurse items
    Parameters:
    {Number} opacity
  • updateDisplayedOpacity(parentOpacity)
    Parameters:
    {Number} parentOpacity