me.ColorLayer(name, color, z)

new ColorLayer(name, color, z)

a generic Color Layer Object

Parameters:
Name Type Description
name String

Layer name

color me.Color | String

CSS color

z Number

z-index position

Extends

Members

alpha :Number

Define the renderable opacity
Set to zero if you do not wish an object to be drawn

Inherited From:
Default Value:
  • 1.0
See:
  • me.Renderable#setOpacity
  • me.Renderable#getOpacity

ancestor :me.Container|me.Entity

a reference to the parent object that contains this renderable

Inherited From:
Default Value:
  • undefined

color :me.Color

the layer color component