Ovalfill

From Pico-8 Wiki
Jump to navigation Jump to search
ovalfill( x0, y0, x1, y1, [col] )
Draws a filled 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. If omitted, the color from the draw state is used.

Examples

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

See also