Shapes2D icon indicating copy to clipboard operation
Shapes2D copied to clipboard

Draw 2D geometry in MonoGame/XNA, including primitives such as lines and polygons.

Shapes2D

Draw 2D geometry in MonoGame/XNA, including primitives such as lines and polygons.

Samples

These samples are included in the source.

Grid

An example of how to draw simple shapes in a grid. You can easily change the scale, grid type (triangle, square, hexagon) and color in the sample code.

Hexagon grid Triangle grid

Animation

An example of how to animate the shapes you draw.

Water animation Wave animation

Dependencies