Oval

From Pico-8 Wiki
Jump to navigation Jump to search
oval( x0, y0, x1, y1, [col] )
Draws an empty oval shape.
x0
The x coordinate of the upper left corner.

y0
The y coordinate of the upper left corner.

x1
The x coordinate of the lower right corner.

y1
The y coordinate of the lower right corner.

col
The color of the oval's border. If omitted, the color from the draw state is used.

Examples

Oval.png
-- draw a red oval border of a wider shape
cls(0)
function _draw()
  oval(10,30,100,100,8)
end

See also