def bezierPoint(a, b, c, d, t):
    """Given the x or y coordinate of Bézier control points a,b,c,d and
    the value of the t parameter, return the corresponding
    coordinate of the point."""
    u = 1.0 - t
    return a * u * u * u + b * 3 * u * u * t + c * 3 * t * t * u + d * t * t * t