Type

ShapeStyle

How a shape clip is painted. Sizes are fractions of frame height, like a title's. In a command you send only the fields you change.

Fields

  • cornerRadiusnumberoptional

    How round a figure's corners are, 0 sharp to 1 as round as the shorter side allows. Every figure with corners takes it.

  • dashStrokeDashoptional · default "solid"

    The outline's pattern; a line's too.

  • endHeadLineHeadoptional

    What a line's end wears; None is the kind's own: an arrowhead on an arrow, nothing on a line.

  • fillstringoptional · default "#ffffff"

    The inside's colour as #rrggbb[aa]; empty for an outline alone.

  • gradientShapeGradientoptional

    The inside blended from fill into a second colour, or None for fill alone.

  • heightnumberoptional

    The figure's height as a fraction of frame height; zero - the default - is the figure's own proportion of its width (see ShapeKind). A line has no height of its own.

  • innerRadiusnumberoptional · default 0.45

    How far out a star's inner corners sit, as a share of its outer radius: low is spiky, high is nearly round.

  • kindShapeKindoptional · default "square"

    The figure.

  • pointsintegeroptional · default 5

    A star's points, 3 to 24.

  • shadowShapeShadowoptional

    A shadow or a glow, or None.

  • sidesintegeroptional · default 6

    A polygon's sides, 3 to 12.

  • startHeadLineHeadoptional

    What a line's start wears; None is the kind's own: nothing.

  • strokestringoptional · default ""

    The outline's colour, drawn when strokeWidth is above zero. A line and an arrow are all stroke, drawn in this colour, and fall back to fill when it is empty.

  • strokeAlignStrokeAlignoptional · default "center"

    Where the outline sits on the edge.

  • strokeWidthnumberoptional · default 0.012

    The outline's thickness as a fraction of frame height; zero for a figure with no outline. A line's and an arrow's own thickness.

  • trimEndnumberoptional · default 1

    See trimStart.

  • trimStartnumberoptional · default 0

    The outline drawn from trimStart to trimEnd of the way round, 0 to 1: a ring part-drawn, a progress arc, a line partway along.

  • widthnumberoptional · default 0.35

    The figure's width, or a line's length, as a fraction of frame height. size is what documents before a height called it.