RGBA

Syntax

int RGBA(int r, int g, int b, int a)

Arguments

r
Value for the red channel in the range 0 to 255 inclusive.
g
Value for the green channel in the range 0 to 255 inclusive.
b
Value for the blue channel in the range 0 to 255 inclusive.
a
Value for the alpha channel in the range 0 to 255 inclusive.

Return

An integer representing the specified color as a 32-bit quadruple.

Description

This function can be used to construct 32-bit color quadruples from four 8-bit channel components.

Example

Also see

RGB, Aval, Bval, Gval, Rval

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.