WoW:XML/Gradient

From AddOn Studio
< XML
Revision as of 23:51, 11 November 2017 by WoWWiki>Darekun (Escaped the pointy brackets, so the wiki doesn't treat <Layer> as for its consumption.)
Jump to navigation Jump to search

XML UI ← XML types < Gradient

Gradient defines a visible color gradient.

Inheritance

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

Elements

Attributes

Summary

Example

<Frame name="MyFrame">
  <Layers>
    <Layer>
      <Texture>
        <Size x="100" y="100" />
        <Gradient orientation="HORIZONTAL">
          <MinColor a="1" r="0" g="0" b="0"/>
          <MaxColor a="1" r="1" g="1" b="1"/>
        </Gradient>
      </Texture>
    </Layer>
  </Layers>
</Frame>

This example will show a opaque gradient texture, fading from black to white horizontally.