def bezier(start, end, control, steps):
    """Generate points in a bezier curve. 
    x and y coordinates should be calculated respectively."""
    return [(1-s)**2*start + 2*(1-s)*s*control + s**2*end for s in steps]