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. |
Extends
Members
(static, readonly) BLEND_MODE :string
Available blend modes for the renderable.
Type:
Properties- 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 |
blendMode
Blend mode of the object
filter
The filter applied to the object
(readonly) properties
The entity that this component is attached to.
- Inherited From
- Source