Function thornedTalkBubble

  • [en] Canvas 2D API extension to add a thorned talk bubble to the current path

    [jp] トゲ付きフキダシのパスを描画するCanvas2D API拡張

    Example

    const ctx = canvas.getContext("2d")
    ctx.beginPath();
    pgul.canvasHelper.thornedTalkBubble.call(ctx, 10, 10, 100, 80, 12, 14, 8 ,12);
    ctx.closePath();

    Parameters

    • this: CanvasRenderingContext2D
    • x: number

      The x-axis coordinate of the bubble's starting point

    • y: number

      The y-axis coordinate of the bubble's starting point

    • width: number

      The width of bubble (including thorns)

    • height: number

      The height of bubble (including thorns)

    • verticalThornInterval: number

      The interval of vertical thorn

    • sideThornInterval: number

      The interval of side/horizontal thorn

    • verticalThornSize: number

      The size of vertical thorn

    • sideThornSize: number

      The size of side/horizontal thorn

    Returns void

Generated using TypeDoc