1.0.0 • Published 4 years ago

@chmartinez35/pesxagon v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

pesxagon

npm (scoped)

Renders an hexagon like the ones from PES

example

Install

$ npm install @chmartinez35/pesxagon

Usage

const Pesxagon = require('@chmartinez35/pesxagon');
const stats = [
    {name: 'Attack', abbrev: 'ATK', value: 90},
    {name: 'Technique', abbrev: 'TEC', value: 70},
    {name: 'Stamina', abbrev: 'STA', value: 80},
    {name: 'Defense', abbrev: 'DEF', value: 30},
    {name: 'Power', abbrev: 'POW', value: 85},
    {name: 'Speed', abbrev: 'SPD', value: 91},
];

const pesxagon = Pesxagon('containerId'); // will setup the pesxagon with minimal configuration;

pesxagon.draw(stats);

// MAGIC! 🧙🏽‍♂️