*** empty log message ***
This commit is contained in:
parent
bec411d2c3
commit
c201407306
|
|
@ -281,28 +281,14 @@ class LerpFunctionInterval(Interval):
|
|||
"""
|
||||
# Note, this is temporary until blend functions get exposed
|
||||
import LerpBlendHelpers
|
||||
def easeIn(t):
|
||||
x = t*t
|
||||
return ((3 * x) - (t * x)) * 0.5
|
||||
def easeOut(t):
|
||||
return ((3 * t) - (t * t * t)) * 0.5
|
||||
def easeInOut(t):
|
||||
x = t*t
|
||||
return (3 * x) - (2 * t * x)
|
||||
def noBlend(t):
|
||||
return t
|
||||
if (blendType == "easeIn"):
|
||||
#return LerpBlendHelpers.LerpBlendHelpers.easeIn
|
||||
return easeIn
|
||||
return LerpBlendHelpers.LerpBlendHelpers.easeIn
|
||||
elif (blendType == "easeOut"):
|
||||
#return LerpBlendHelpers.LerpBlendHelpers.easeOut
|
||||
return easeOut
|
||||
return LerpBlendHelpers.LerpBlendHelpers.easeOut
|
||||
elif (blendType == "easeInOut"):
|
||||
#return LerpBlendHelpers.LerpBlendHelpers.easeInOut
|
||||
return easeInOut
|
||||
return LerpBlendHelpers.LerpBlendHelpers.easeInOut
|
||||
elif (blendType == "noBlend"):
|
||||
#return LerpBlendHelpers.LerpBlendHelpers.noBlend
|
||||
return noBlend
|
||||
return LerpBlendHelpers.LerpBlendHelpers.noBlend
|
||||
else:
|
||||
raise Exception(
|
||||
'Error: LerpInterval.__getBlend: Unknown blend type')
|
||||
|
|
|
|||
Loading…
Reference in New Issue