polydecomp SciMax Toolbox polymod

SciMax Toolbox >> polygon

polygon

Maxima Graphic object

Calling Sequence

polygon ([[x1,y1], [x2,y2],...])
polygon([x1,x2,...],[y1,y2,...])

Description

Draws polygons in 2D.

2D

polygon ([[x1,y1], [x2,y2],...]) or polygon ([x1,x2,...], [y1,y2,...]): plots on the plane a polygon with vertices [x1,y1], [x2,y2], etc..

This object is affected by the following graphic options: transparent, fill_color, border, line_width, key, line_type and color.

Example:

(%i1) load(draw)$
(%i2) draw2d(color      = "#e245f0",
             line_width = 8,
             polygon([[3,2],[7,2],[5,5]]),
             border      = false,
             fill_color  = yellow,
             polygon([[5,2],[9,2],[7,5]]) )$
polydecomp SciMax Toolbox polymod