0.0.5 • Published 2 years ago

guitar-chord v0.0.5

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

Made with Svelte.

  • Web-component: <guitar-chord></guitar-chord>

Renders a SVG based on fingering and strings.

Try out live example

or include into your website.

<head>
    ...
    <script defer src='https://ivosdc.github.io/guitar-chord/dist/build/guitar-chord.js'></script>
</head>
<body>
<guitar-chord id="guitar-chord"></guitar-chord>
<script>
    let guitarChord = document.getElementById('guitar-chord');

    guitarChord.setAttribute('shadowed', 'true');
    guitarChord.setAttribute('fingering', JSON.stringify('X 3 5 5 4 3'.split(' ')));
    guitarChord.setAttribute('strings', JSON.stringify('X 1 3 4 2 1'.split(' ')));

</script>

Parameter

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago