An open API service indexing awesome lists of open source software.

https://github.com/christianoellers/polygon-generator

Canvas 2D generator for various polygons based on circle calculations.
https://github.com/christianoellers/polygon-generator

canvas canvas-api canvas-drawing canvas2d css css3 ecmascript ecmascript6 es6 es6-javascript generator html html5 javascript javascript-math js js-classes math polygon vector

Last synced: about 1 month ago
JSON representation

Canvas 2D generator for various polygons based on circle calculations.

Awesome Lists containing this project

README

        

[![Polygon Generator](teaser.png)](https://christianoellers.github.io/Polygon-Generator)

# Polygon Generator – Canvas

- [About](#about)
- [Todo](#todo)

---

## About

Generates random polygons from a circular base shape. Variants show a rather spiky vs. flat design.

Intended to be used with game engines to create random landscapes or elements. Alternative use cases imaginable: Graphic design, convert to vector export file.

## Todo

- Add UI to configure generator parameters
- Allow SVG export of shapes (challenge: coordinate systems)