FutureBasic Logo

<<    Index    >> FutureBasic

rect   statement



Syntax
rect [ fill ] rect [ , fillColor ]

Requires
macOS 10.11+

Description
Draws a rectangle with the specified rect. The rectangle's frame is drawn using the line style for the current output window.

Parameters
Parameter
Description
fill When this optional keyword is used, the rectangle 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 rect is filled with the specified color. This parameter is a ColorRef (NSColor).
 
See also
cls; line; oval; pen