API Reference › Screen — drawing › Screen.oval
method

Screen.oval

Screen.oval(x, y, rx, ry, color)

Draws the outline of an ellipse centred at (x, y) with horizontal radius rx and vertical radius ry, in color, by the integer midpoint algorithm. Equal radii draw a circle; use it for eyes, planets, health auras, and selection ovals.

Example

program Demo {
  handler DrawWorld phase Render {
    Screen.clear(Color.Black)
    Screen.oval(x: 160, y: 120, rx: 60, ry: 30, color: Color.Cyan)
    Screen.show()
  }
}
← All symbols