FutureBasic Logo

<<    Index    >> FutureBasic

oval   statement



Syntax
oval [ fill ] rect [ , fillColor ]

Requires
macOS 10.11+

Description
Draws an oval in the specified rectangle. The oval's frame is drawn using the line style for the current output window.

An oval statement with no parameters resets line styles and fill color to their default values. It also resets a rect's corner radius to its default value.

Parameters
Parameter
Description
fill When this optional keyword is used, the oval is filled with the fill color specified in the fillColor parameter, or the current fill color for the output window.
rect The enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size.
(ii) A CGRect value.
fillColor Optional. If the fill keyword is used, the oval is filled with the specified color. This parameter can be either a ColorRef or one of FB's built-in constants, e.g.
_zYellow
_zGreen
_zCyan
_zBlue
_zMagenta
_zRed
_zBlack
_zWhite

See the CocoaUI.incl header for a complete list.
- no parameters - Reset all graphics attributes to their default values.
 
See also
cls; line; pen; rect