1.0.0 • Published 4 years ago
@chmartinez35/pesxagon v1.0.0
pesxagon
Renders an hexagon like the ones from PES
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! 🧙🏽♂️
1.0.0
4 years ago