Dynamic ARGB
Provides an ARGB color using float providers.
Type ID: kaya:dynamic/argb
Format
| Field | Type | Default | Description |
|---|---|---|---|
alpha |
Float Provider | The alpha (transparency) component of the color. The value is clamped from 0.0 to 1.0. | |
red |
Float Provider | The red component of the color. The value is clamped from 0.0 to 1.0. | |
green |
Float Provider | The green component of the color. The value is clamped from 0.0 to 1.0. | |
blue |
Float Provider | The blue component of the color. The value is clamped from 0.0 to 1.0. |
Example
{
"type": "kaya:dynamic/argb",
"alpha": {
"type": "kaya:linear_interpolated",
"delta": {
"type": "kaya:quotient",
"dividend": {
"type": "kaya:from_int",
"value": {
"type": "kaya:time",
"period": 200
}
},
"divisor": 200
},
"start": 1.0,
"end": 0.0
},
"red": 1.0,
"green": 1.0,
"blue": 1.0
}
This example provides an ARGB color where the alpha component periodically changes from opaque to transparent every 200 ticks.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |