Skip to main content

DrawCircle

Callable

  • DrawCircle(CenterX: number, CenterY: number, Radius: number, LineWidth: number, LineColor: string, FillColor?: string, Canvas?: CanvasRenderingContext2D): void

  • Draws a basic circle


    Parameters

    • CenterX: number

      Position of the center of the circle on the X axis

    • CenterY: number

      Position of the center of the circle on the Y axis

    • Radius: number

      Radius of the circle to draw

    • LineWidth: number

      Width of the line

    • LineColor: string

      Color of the circle's line

    • optionalFillColor: string

      Color of the space inside the circle

    • optionalCanvas: CanvasRenderingContext2D

      The canvas element to draw onto, defaults to MainCanvas

    Returns void

    • Nothing