Source Academy Modules
    Preparing search index...

    Variable g_ofConst

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

    Retrieves the green component of a given Point.

    Type Declaration

      • (pt: Point): number
      • Parameters

        • pt: Point

          given point

        Returns number

        Green component of the Point as a value between [0,255]

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