VertexColor
Jump to navigation
Jump to search
Links |
---|
Instantiation | AnimationGroup:CreateAnimation("VertexColor")
|
Example
Shows a two second looping animation that will transition the vertex color from red to blue and then back again.
local Texture = UIParent:CreateTexture()
Texture:SetTexture([[Interface\Buttons\White8x8]])
Texture:SetPoint("CENTER")
Texture:SetSize(128, 128)
local AnimationGroup = Texture:CreateAnimationGroup()
AnimationGroup:SetLooping("BOUNCE")
local VertexColor = AnimationGroup:CreateAnimation("VertexColor")
VertexColor:SetStartColor(CreateColor(1, 0, 0))
VertexColor:SetEndColor(CreateColor(0, 0, 1))
VertexColor:SetDuration(2)
AnimationGroup:Play()
Methods
|
|
Script Types
|