@add-on-hlapi-sdk / Utils
Interface: Utils
Table of contents
Methods
Methods
createColor
▸ createColor(red, green, blue, alpha?): Color
Create a new Color. All color components should be in a 0 - 1 range.
Parameters
| Name | Type | Description |
|---|---|---|
red | number | The red component in a range from 0 - 1. |
green | number | The green component in a range from 0 - 1. |
blue | number | The blue component in a range from 0 - 1. |
alpha? | number | (optional) The alpha component in a range from 0 - 1. Defaults to 1 (fully opaque). |

