next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
VectorGraphics :: VectorGraphics

VectorGraphics -- A package to produce SVG graphics

Description

VectorGraphics is a package to produce SVG 2d and 3d graphics. All usable types are descendents of the type GraphicsObject, and are self-initializing. Coordinates can be entered as vectors in RR2, RR3 or RR4 (RR4 is projective coordinates); alternatively, one can enter them as sequences. With the default perspective matrix, the x axis points to the right, the y axis points up, and the z axis points towards the viewer. All types are option tables, i.e., their arguments are options. There are two types of options: VectorGraphics options, that are symbols (e.g., Radius for circles); and styling options, which are CSS style options, and which are strings (e.g., "fill" for fill color). VectorGraphics does not use units (coordinates are dimensionless). In Standard mode, the graphical objects are not directly visible; to export them to SVG in order to embed them into a web page, use html. In WebApp mode, the graphical objects are shown as output.

Author

Version

This documentation describes version 0.9 of VectorGraphics.

Source code

The source code from which this documentation is derived is in the file VectorGraphics.m2. The auxiliary files accompanying it are in the directory VectorGraphics/.

Exports

  • Types
  • Functions and commands
  • Methods
  • Symbols