Class SVGGroup

Hierarchy

Constructors

Properties

m_items: SVGItem[]

Methods

  • 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