Donot use this class directly. Use Inheritance instead. This is a base class for all components that can be rendered, such as sprites, text, etc. These components are identified by the renderer and rendered accordingly. Renderables are components that can be rendered to the screen. Every renderable inherits from this class.
| Name | Type | Default | Description |
|---|---|---|---|
blendMode | BLEND_MODE | Renderable.BLEND_MODE.NORMAL | Blend mode of the object. |
filter | Filter | The filter applied to the object. | |
renderOrder | number | 0 | Lower values draw first within the current scene or renderable-parent pass; a renderable draws before its descendants. |
- Source
Extends
Members
(static, readonly) BLEND_MODE :string
Available blend modes for the renderable.
- string
| Name | Type | Description |
|---|---|---|
NORMAL | string | |
MULTIPLY | string | |
SCREEN | string | |
OVERLAY | string | |
DARKEN | string | |
LIGHTEN | string | |
COLOR_DODGE | string | |
COLOR_BURN | string | |
HARD_LIGHT | string | |
SOFT_LIGHT | string | |
DIFFERENCE | string | |
EXCLUSION | string | |
HUE | string | |
SATURATION | string | |
COLOR | string | |
LUMINOSITY | string |
- Source
blendMode
Blend mode of the object
- Source
filter
The filter applied to the object
- Source
(readonly) properties
The entity that this component is attached to.
- Overrides
- Source
Methods
deserialize(props)
Populates the component properties from a data object. Override this method for custom property handling.
| Name | Type | Description |
|---|---|---|
props | object | The properties object (usually from JSON). |
- Inherited From
- Source
drawChildren()
Draw this entity's nested renderables in deterministic order. @protected
- Source