module::setColor
Sets the color of an element to the specified RGBA value.
Declaration
void module::setColor(half4 color)Parameters
- color:
The new color as a 4-component vector (red, green, blue, alpha)
Discussion
Use this function to change the visual appearance of an element by assigning a new color with alpha channel.