Contents

element::color

Returns the current color of the element.

Declaration

half4 element::color()

Return Value

The color as a 4-component vector (red, green, blue, alpha)

Discussion

Use this function to read the element’s RGBA color values, including both the color channels and opacity.