curve¶
Draw a bezier curve using the given coordinates, from x1,y1 to x2,y2. The curvature is set by the control points cx1,cy2 and cx2,cy2.
Options¶
All of these options support arrays and singleton expansion (except for range). See Squib Thinks in Arrays for deeper explanation.
- x1
default:
0the x-coordinate of the first endpoint. Supports Unit Conversion and XYWH Shorthands..
- y1
default:
0the y-coordinate of the first endpoint. Supports Unit Conversion and XYWH Shorthands..
- x2
default:
5the x-coordinate of the second endpoint. Supports Unit Conversion and XYWH Shorthands..
- y2
default:
5the y-coordinate of the second endpoint. Supports Unit Conversion and XYWH Shorthands..
- cx1
default:
0the x-coordinate of the first control point. Supports Unit Conversion and XYWH Shorthands..
- cy1
default:
0the y-coordinate of the first control point. Supports Unit Conversion and XYWH Shorthands..
- cx2
default:
5the x-coordinate of the second control point. Supports Unit Conversion and XYWH Shorthands..
- cy2
default:
5the y-coordinate of the second control point. Supports Unit Conversion and XYWH Shorthands..
- fill_color
default:
'#0000'(fully transparent)the color or gradient to fill with. See Specifying Colors & Gradients.
- stroke_color
default:
:blackthe color with which to stroke the outside of the shape. See Specifying Colors & Gradients.
- stroke_width
default:
2the width of the outside stroke. Supports Unit Conversion.
- stroke_strategy
default:
:fill_firstSpecify whether the stroke is done before (thinner) or after (thicker) filling the shape.
Must be either
:fill_firstor:stroke_first(or their string equivalents).- dash
default:
''(no dash pattern set)Define a dash pattern for the stroke. This is a special string with space-separated numbers that define the pattern of on-and-off alternating strokes, measured in pixels or units. For example,
'0.02in 0.02in'will be an equal on-and-off dash pattern. Supports Unit Conversion.- cap
default:
:buttDefine how the end of the stroke is drawn. Options are
:square,:butt, and:round(or string equivalents of those).- join
default:
:mitreSpecifies how to render the junction of two lines when stroking. Options are
:mitre,:round, and:bevel.
- range
default:
:allthe range of cards over which this will be rendered. See Using range to specify cards
- layout
default:
nilentry in the layout to use as defaults for this command. See Layouts are Squib’s Best Feature.