ARGB
Provides an ARGB color.
Type ID: kaya:argb
Tip
Usually, color components are represented as an integer ranging from 0 to 255. To convert them into floats, you can divide the integer by 255.
Format
| Field | Type | Default | Description |
|---|---|---|---|
alpha |
Float | The alpha (transparency) component of the color. The value should be within the range of 0.0 to 1.0. | |
red |
Float | The red component of the color. The value should be within the range of 0.0 to 1.0. | |
green |
Float | The green component of the color. The value should be within the range of 0.0 to 1.0. | |
blue |
Float | The blue component of the color. The value should be within the range of 0.0 to 1.0. |
Example
This example provides a bright magenta color that's slightly transparent.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |