Function paintCircle

  • Painting utility: paints a circle. Coordinates are relative to the center of the circle. Uses ctx's current fillStyle. Does not restore the context state after finishing.

    Parameters

    • ctx: CanvasRenderingContext2D
    • x: number
    • y: number
    • radius: number

    Returns void