Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

abought/trischwartz

Repository files navigation

Build Status Coverage Status

Trischwartz

A library for generating and rendering arbitrary triangles via SVG

Installation

This module can be installed via NPM or Yarn:

npm install trischwartz --save-dev

yarn add trischwartz --dev

Usage

This module does three things:

  1. Generates three random angles that make up a triangle

  2. Calculates the coordinates for a triangle within a unit square, given angles

  3. Creates an SVG element to draw and display a triangle in a page

See the webpack usage example.

Development commands

Run yarn build:demo to build the webpack asset bundle for the demo.

Run unit tests via yarn test or yarn test:live.

About

A simple library for drawing triangles. Tomorrow's polygons- today.

Resources

License

Stars

Watchers

Forks

Packages

No packages published