<!--Create a canvas element.-->
<canvas id="c" height=400px width=900px></canvas>
<!--Import the library.-->
<script type="text/javascript" src="codeword.js"></script>
<script type="text/javascript">
const canvas=document.getElementById('c');
const config={
font_size:10,
interval:100,
theme:CODEWORD.themes.Cobalt,
language:'C'
};
const cw=new CODEWORD.Codeword(canvas,config);
cw.animate();
</script>
ilvanip / codeword.js Goto Github PK
View Code? Open in Web Editor NEWCoding-based animation using canvas.