API Reference › Screen — drawing › Screen.circle
method

Screen.circle

Screen.circle(x, y, radius, color)

Draws the outline of a circle centred at (x, y) with the given radius in color. Use it for rings, radii, and selection markers; for a solid disc use Screen.fill_circle.

Example

program Demo {
  handler DrawWorld phase Render {
    Screen.clear(Color.MidnightBlue)
    Screen.circle(x: 160, y: 120, radius: 40, color: Color.Cyan)
    Screen.show()
  }
}
← All symbols