def METHOD_NAME(self,a):
    t = lv.map(a.act_time, 0, a.time, 0, 1024)
    step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
    new_value = step * (a.end_value - a.start_value)
    new_value = new_value >> 10
    new_value += a.start_value
    return new_value