RSS

Пятница, 19.04.2024, 12:41
Главная » WoW API » API Виджеты » Текстура »

Texture:SetGradient("orientation", startR, startG, startB, endR, endG, endB)

[ править ]
Sets a gradient color shading for the texture.
[клоны]
Sets a gradient color shading for the texture. Gradient color shading does not change the underlying color of the texture image, but acts as a filter: see LayeredRegion:SetVertexColor() for details.


Signature:
Code
Texture:SetGradient("orientation", startR, startG, startB, endR, endG, endB)

Arguments:
  • orientation - Token identifying the direction of the gradient (string)
      HORIZONTAL - Start color on the left, end color on the right
    • VERTICAL - Start color at the bottom, end color at the top

  • startR - Red component of the start color (0.0 - 1.0) (number)
  • startG - Green component of the start color (0.0 - 1.0) (number)
  • startB - Blue component of the start color (0.0 - 1.0) (number)
  • endR - Red component of the end color (0.0 - 1.0) (number)
  • endG - Green component of the end color (0.0 - 1.0) (number)
  • endB - Blue component of the end color (0.0 - 1.0) (number)

Также смотрите: Текстура
Ссылки: http://wowprogramming.com/docs/widgets/Texture/SetGradient