trischwartz

0.1.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i trischwartz

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • abought