Skip to content

Instantly share code, notes, and snippets.

@mooreatv
Created July 13, 2019 00:54
Show Gist options
  • Save mooreatv/3c91f63585a1d4035603e972f196b673 to your computer and use it in GitHub Desktop.
Save mooreatv/3c91f63585a1d4035603e972f196b673 to your computer and use it in GitHub Desktop.
Sample glowing animation
if TST then
TST:Hide()
end
TST = CreateFrame("Frame")
local f = TST
f:SetSize(1,1)
f:SetScale(0.5) -- show pixels / zoom
local tg = f:CreateTexture()
tg:SetTexture(516954) -- interface/timer/hordeglow-logo.blp
tg:SetBlendMode("ADD")
tg:SetAlpha(0) -- start with no glow
-- tg:SetVertexColor(1,1,0) -- glow yellow/gold
local glow = tg:CreateAnimationGroup()
local anim = glow:CreateAnimation("Alpha")
anim:SetFromAlpha(0)
anim:SetToAlpha(0.2)
--anim:SetSmoothing("IN")
glow:SetLooping("BOUNCE")
anim:SetDuration(2)
--anim:SetOrder(1)
local tl = f:CreateTexture()
tl:SetTexture(516953) -- interface/timer/horde-logo.blp
tg:SetPoint("TOP")
tl:SetPoint("TOP")
f:SetPoint("TOP")
f:Show()
glow:Play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment