module:Rectangle(x, y, w, h, fill, stroke)

a rectangle in SVG

new module:Rectangle(x, y, w, h, fill, stroke)

Parameters:
Name Type Description
x number

horizontal position in SVG pixels

y number

vertical position in SVG pixels

w number

width in SVG pixels

h number

height in SVG pixels

fill string

filling color of the rectangle

stroke string

stroke color of the rectangle

Extends

  • SvgElement