0.1.1 • Published 7 years ago

trischwartz v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

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: yarn install trischwartz --save-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.