Graphical object subtypes – lines, boxes, circles, arcs and paths – are drawn with a stroke pattern that can be configured in detail.
Returns the stroke settings of the object, which must be a line, box, circle, arc or path
object
. The return value is a list of parameters:
- stroke width, as an integer number of world units
- cap style, one of the symbols
none
,square
orround
.- dash style, one of the symbols
solid
,dotted
,dashed
,center
orphantom
.- up to two dash parameters, depending on the dash style:
- for solid lines, no parameters;
- for dotted lines, dot spacing;
- for other styles, dot/dash spacing and dash length.
Set the stroke settings of the object, which must be a line, box, circle, arc or path
object
. The arguments are the same as the contents of the list returned byobject-stroke
. Returns object.
Returns the integer stroke width of object, which must be a line, box, circle, arc or path
object
.
Returns the stroke cap style of object, which must be a line, box, circle, arc or path
object
. The returned value is one of the symbolsnone
,square
orround
.
Returns the dash style of object, which must be a line, box, circle, arc or path
object
. The return value is a list of between one and three parameters:
- dash style, one of the symbols
solid
,dotted
,dashed
,center
orphantom
.- for styles other than
solid
, dot/dash spacing;- for
dashed
,center
andphantom
, dash length.
Some types of object
– boxes, circles and paths – can have
their interiors filled with a variety of patterns.
Returns the fill settings of object, which must be a box, circle or path
object
. The return value is a list of one to six parameters:
- fill style, one of the symbols
hollow
,solid
,mesh
orhatch
;- up to five fill parameters, depending on fill style:
- none for
hollow
orsolid
fills;- line width, line angle (in degrees) and line spacing for
hatch
fills;- line width, first angle and spacing, and second angle and spacing for
mesh
fills.