Class SVGPathBuilder

Hierarchy

Constructors

Properties

m_items: SVGItem[]
g_clip_id: number = 1

Methods

  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns string

  • example

    const g = c.linear_gradient( '0%', '0%', '0%', '100%' )
    .addStop( 0, 'red' )
    .addStop( 100, 'green' );

    p.rect( 0, 0, 100, 100 )
    .stroke( g.id );

    Parameters

    • x1: number_or_perc
    • y1: number_or_perc
    • x2: number_or_perc
    • y2: number_or_perc

    Returns SVGGradient

Generated using TypeDoc