Constructor
new OpacityFade(configopt)
- Description:
- Initializes an opacity fade modifier with starting and ending opacity levels.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
config |
OpacityFadeConfig |
<optional> |
{}
|
ColorRampConfig configuration options. |
Extends
Classes
Members
endOpacity :number
- Description:
- Opacity at particle death.
- Source:
Opacity at particle death.
Type:
- number
id :string
- Description:
- Unique identifier. Defaults to a generated UUID.
- Source:
- Overrides:
Unique identifier. Defaults to a generated UUID.
Type:
- string
startOpacity :number
- Description:
- Opacity at particle emission.
- Source:
Opacity at particle emission.
Type:
- number
Methods
update(particle, normalizedAge) → {void}
- Description:
- Blends a particle's opacity based on its normalized age.
- Source:
- Overrides:
Parameters:
| Name | Type | Description |
|---|---|---|
particle |
Particle | Particle instance to affect. |
normalizedAge |
number | Normalized age of the particle (0.0 = emitted, 1.0 = dead). |
Throws:
Error
Returns:
- Type
- void