Wikia

WoWWiki

XML/Color

Talk0
100,577pages on
this wiki

< XML

XML UI ← XML types < Color

Color defines a visible color. Attribute values are in range from 0.0 to 1.0.

Inheritance Edit

Inherited by: none, Inherits: none, Defined in: multiple

Elements Edit

none

Attributes Edit

  • r (float) - red, 0..1
  • g (float) - green, 0..1
  • b (float) - blue, 0..1
  • a (float) - alpha, 0..1. Optional, default is '1.0'.

Summary Edit

Values outside the range of 1..0 will be clamped to 1..0.

Example Edit

<Frame name="MyFrame">
  <Layers>
    <Layer>
      <Texture>
        <Size x="100" y="100" />
        <Color a="1" r="1" g="1" b="1" />
      </Texture>
    </Layer>
  </Layers>
</Frame>

This example will show a opaque color texture, painted white.

Around Wikia's network

Random Wiki