• Draws a shield with a vertically-aligned hexagon background

    Parameters

    • yOffset: number

      Height of diagonal edges

    • 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