FutureBasic Logo

<<    Index    >> FutureBasic

pen   statement



Syntax
pen [ width [ , color [ , capStyle [ , dashPattern [ , dashPhase ]]]]]

Requires
macOS 10.11+

Description
The pen statement sets styles of lines and the frame styles of ovals and rectangles that are subsequently drawn in the current output window.
A pen statement with no parameters resets styles to their default values.

Parameters
Parameter
Description
width The line width. A negative value cancels line drawing. Default = 1.0.
color The line color as a ColorRef (NSColor). Default = black.
capStyle The line cap style. Options are:
NSLineCapStyleButt (default)
NSLineCapStyleRound
NSLineCapStyleSquare
dashPattern A CFArray of CFNumbers (floats). Default = NULL.
dashPhase The offset at which to start drawing the pattern. Default = 0.0.
 
See also
cls; line; oval; rect