Source Academy Modules
    Preparing search index...

    Function create_ellipse

    • Create an ellipse object.

      Parameters

      • x: number

        x coordinate of the centre of ellipse

      • y: number

        y coordinate of the centre of ellipse

      • width: number

        width of ellipse

      • height: number

        height of ellipse

      • fill: number = 0

        colour fill, in hext e.g 0xffffff

      • alpha: number = 1

        value between 0 and 1 to denote alpha

      Returns GameObject

      ellipse object