API Region GetAlpha

Returns the region's opacity.
 alpha = Region:GetAlpha()
 effectiveAlpha = Frame:GetEffectiveAlpha()
==Returns==
:;alpha: - The alpha of the region. 0 is fully transparent, 1 is fully opaque.
:;effectiveAlpha: - The effective alpha after propagating from the parent region. This is equal to f:GetAlpha() * f:GetParent():GetAlpha()
==Example==
Alpha propagates from a region to its children, unless disabled with .
local parent = CreateFrame("Frame")
parent:SetAlpha(0.5)
local f = CreateFrame("Frame", nil, parent)
f:SetAlpha(0.5)
print(f:GetAlpha()) -- 0.50196081399918
print(f:GetEffectiveAlpha()) -- 0.25098040699959
f:SetIgnoreParentAlpha(true)
print(f:GetEffectiveAlpha()) -- 0.50196081399918
==Patch changes==
* 
===References===