0.0.6 • Published 8 years ago

star-icon-hapi v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Install

$ npm i -S star-icon-hapi

Usage

...
import starIconRoute from 'star-icon-hapi'
...
// Setup hapi server
...
server.route(starIconRoute({
	method: 'GET',
	path: '/api/star',
}))

Query parameter

  • layers - number of layers in the star
  • width - optional width (height must be present too)
  • height - optional height (width must be present too)
  • arms - single number / list of numbers per layer
  • fill - single color / list of colors per layer
  • ratio - single inner/outer ratio / list of ratios per layer (ratio < 1)
  • rotatio - single rotation angle / list of angles per layer (degrees)
  • zoom - single zoom value / list of values per layer (zoom < 1)

Examples

Header Star

Header Star

  • layers: 6
  • width: 300
  • height: 300
  • fill: navy, silverblue, lightblue, navy, silverblue, lightblue
  • ratio: 0.55, 0.5, 0.44, 0.55, 0.5, 0.44
  • rotation: 0, 0, 0, 36, 36, 36
  • zoom: 1, 0.95, 0.95, 0.5, 0.45, 0.4

Compass

Compass

  • layers: 8
  • width: 300
  • height: 300
  • fill: black, white, black, white, black, #eee, black, #eee
  • ratio: 0.16, 0.12, 0.16, 0.12, 0.16, 0.12, 0.16, 0.12
  • rotation: 337.5, 337.5, 22.5, 22.5, 0, 0, 45, 45
  • zoom: 0.8, 0.75, 0.8, 0.75, 1, 0.95, 1, 0.95

Magen David

Magen David

  • layers: 4
  • width: 300
  • height: 300
  • fill: navy, white, navy, white
  • ratio: 0.5, 0.5, 0.5, 0.5
  • rotation: 0, 0, 180, 180
  • zoom: 1, 0.9, 1, 0.9

ESDOC

See Also

star-icon-tag https://github.com/nhz-io/star-icon-tag

License

MIT © Ishi Ruy