• Draws a shield with a horizontally-aligned hexagon background

    Parameters

    • sideAngle: number

      Angle (in degrees) at which sides deviate from vertical

    • fillColor: string

      Color of hexagon background fill

    • strokeColor: string

      Color of hexagon outline stroke

    • textColor: string

      Color of text (defaults to strokeColor)

    • radius: number

      Corner radius of hexagon (defaults to 2)

    • rectWidth: number

      Width of hexagon (defaults to variable-width)

    Returns Partial<ShieldDefinition>

    a shield definition object

Generated using TypeDoc