Source Academy Modules
    Preparing search index...

    Variable x_ofConst

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

    Retrieves the x-coordinate of a given Point.

    Type Declaration

      • (pt: Point): number
      • Parameters

        • pt: Point

          given point

        Returns number

        x-coordinate of the Point

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