Constructor
new CameraFade()
Creates a new instance of the CameraFade class.
- Source:
Extends
Members
(readonly) color :rune.color.Color24
24-bit tint color.
Type:
- Inherited From:
- Source:
opacity :number
Tint color opacity. This value can vary between 0.0 and 1.0.
Type:
- number
- Inherited From:
- Source:
Methods
in(durationopt, callbackopt, scopeopt) → {undefined}
Fade in from fill color.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
duration |
number |
<optional> |
1000 | The time it takes in milliseconds to fade in. |
callback |
function |
<optional> |
null | A function you want to run when the fade finishes. |
scope |
Object |
<optional> |
null | Scope of callback function. |
- Source:
Returns:
- Type
- undefined
out(durationopt, callbackopt, scopeopt) → {undefined}
Fade to fill color.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
duration |
number |
<optional> |
1000 | The time it takes in milliseconds to fade out. |
callback |
function |
<optional> |
null | A function you want to run when the fade finishes. |
scope |
Object |
<optional> |
null | Scope of callback function. |
- Source:
Returns:
- Type
- undefined
toString() → {string}
Returns an RGBA representation of the object.
- Inherited From:
- Source:
Returns:
- Type
- string