Source Academy Modules
    Preparing search index...

    Variable y_ofConst

    y_of: (pt: Point) => number = CurveFunctions.y_of

    Retrieves the y-coordinate of a given Point.

    Type Declaration

      • (pt: Point): number
      • Parameters

        • pt: Point

          given point

        Returns number

        y-coordinate of the Point

    const point = make_color_point(1, 2, 3, 50, 100, 150);
    y_of(point); // Returns 2