draw_polygon: Create a polygon SVG Element

Description Usage Arguments

Description

A polygon defines a closed shape consisting of a set of connected straight line segments.

Usage

1
draw_polygon(x, y, fill, stroke, class)

Arguments

x, y

vectors containing the coordinates of the vertices of the polygon.

stroke

expression setting the stroke attribute.

fill

expression defining the fill attribute, which defaults to “black”.

class

expression defining the class attribute of the object.


be-pr/drawsvg documentation built on May 31, 2019, 12:41 a.m.