mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
21 lines
510 B
Python
21 lines
510 B
Python
|
__all__ = ['getBlend']
|
||
|
|
||
|
from pandac.PandaModules import *
|
||
|
|
||
|
easeIn = EaseInBlendType()
|
||
|
easeOut = EaseOutBlendType()
|
||
|
easeInOut = EaseInOutBlendType()
|
||
|
noBlend = NoBlendType()
|
||
|
|
||
|
def getBlend(blendType):
|
||
|
if blendType == 'easeIn':
|
||
|
return easeIn
|
||
|
elif blendType == 'easeOut':
|
||
|
return easeOut
|
||
|
elif blendType == 'easeInOut':
|
||
|
return easeInOut
|
||
|
elif blendType == 'noBlend':
|
||
|
return noBlend
|
||
|
else:
|
||
|
raise Exception('Error: LerpInterval.__getBlend: Unknown blend type')
|