Oval: Difference between revisions

From Pico-8 Wiki
Jump to navigation Jump to search
imported>Ninjatintin
No edit summary
imported>Felice Enellen
 
Line 21: Line 21:


* [[Graphics]]
* [[Graphics]]
* [[DrawState|Draw state]]
* [[Ovalfill|<code>ovalfill()</code>]]
* [[Ovalfill|<code>ovalfill()</code>]]
* [[DrawState|Draw state]]
* [[Circ|<code>circ()</code>]]
* [[Circ|<code>circ()</code>]]
* [[Circfill|<code>circfill()</code>]]
[[Category:Reference]]
[[Category:Reference]]
[[Category:API]]
[[Category:API]]

Latest revision as of 11:00, 29 June 2021

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