This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ui,ctypes,string,os | |
from objc_util import * | |
UIFont=ObjCClass('UIFont') # This is not used anymore | |
CAKeyframeAnimation=ObjCClass('CAKeyframeAnimation') # Initialize object to use in PathAnimation class | |
# Magic | |
if sizeof(ctypes.c_size_t)==8: | |
CGFloat=ctypes.c_double | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ported from http://www.gizma.com/easing/ | |
# by http://th0ma5w.github.io | |
# | |
# untested :P | |
import math | |
linearTween = lambda t, b, c, d : c*t/d + b |