Skip to content

Color

The GenericUI_Element_Color element displays a solid color with full opacity.

It's intended for displaying single colors, useful for solid-color backgrounds or as part of color-related widgets that might need to visualize them.

Its performance for "painting" textures dynamically is untested.

GenericUI_Element_Color Class

Inherits from GenericUI_Element.

Methods

SetColor
function GenericUI_Element_Color:SetColor(color)

Sets the color shown by the element.

@param color RGBColor