Node:fill_style,
Next:font,
Previous:color,
Up:Top
Fill Styles
The class fill_style.T
determines the color and the pattern of the
background of a region.
bgcolor type: color.T
|
Attribute |
Default: color.white. The background color.
See color.
|
line_interval type: number
|
Attribute |
Default: 3. The interval between successive stitch lines.
|
line_style type: line_style.T
|
Attribute |
Default: line_style.black. The style of the line.
See line_style.
|
The actual background patterns are offered by subclasses of
fill_style.T
:
This class just fills the region with the solid background color.
Attributes line_style and line_interval are ignored.
|
This class fills the region with diagonal lines.
|
Fills the region with diagonal lines, but tilted in the opposite
direction from fill_style.Diag .
|
Fills the region with vertical lines.
|
Fills the region with horizontal lines.
|
Fills the region with horizontal and vertical lines.
|
Fills the region with horizontal wavy lines.
|
Fills the region with vertical wavy lines.
|
Fills the region with a series of short line segments.
|
The below picture shows the standard set of fill styles. They are named
like fill_style.
name, where name are the labels shown
in the picture.
Just for your information, the "rdiag3" style shown in the picture can
be created manually by the following code:
rdiag3 = fill_style.Rdiag(line_style=line_style.T(width=3, color=color.gray5),
line_interval=6)