Sfairadora

  • Reference Guide

Pen

Information on style of lines drawn by drawing functions.
Type
Name
Description
Int
style
The line style. One of the following constants:
PEN_NONE
no line
PEN_SOLID
continuous line
PEN_DASH
dashed line
PEN_DOT
dotted line
PEN_DASHDOT
dash-dotted line
PEN_DASHDOTDOT
dash-dotted line with two dots
PEN_INSIDEFRAME
continuous line drawn entirely inside the shape being drawn.
Int
width
The line width. If it is 0, the line is not drawn. Only the style PEN_SOLID can have width greater than 1.
color
The color of the line. If it is not specified (the constant NONE is used), the line is not drawn.
Note: The drawing function accept the type Pen_union instead of Pen as their parameter. The type Pen_union allows easier specification a solid color, which is the most frequent usage of a pen.