RGB / RGBA
Creates a new color from the specified red, green, blue and alpha values.
Syntax
=RGB(red, green, blue)
=RGBA(red, green, blue, alpha)
Arguments
Argument | Type | Description |
---|---|---|
red | Number | The red value, from 0 to 255 |
green | Number | The green value, from 0 to 255 |
blue | Number | The blue value, from 0 to 255 |
alpha | Number | (Optional) The alpha value, a decimal value from 0 to 1 |
Examples
=RGBA(0, 255, 0, 0.5)
→#00ff007f
=RGBA(0, 128, 0, 1)
→#008000ff
Updated 3 months ago