A way to make art and animations and with js dom you can make them interactive!


Get started

Type this in
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Exsample</title> 
 
  
    <input id="f" type="text">
    <canvas id="artCodecanvas"></canvas>
    <script src="script.js"></script>
    <script src="codeArt.js"></script>
  

Then make a script.js file and type this

var input = document.getElementById("f")
var face = ""
window.main = function() {
   window.requestAnimationFrame( main );
   
   update()
   
   face = input.value
   
   drawText(12, 89, "🦵", "30px Arial")
   drawText(30, 89, "🦵", "30px Arial")
   drawText(20, 70, face, "30px Arial")
   
   saveCanvas("canvasImage")
}
main()

Now you got the example at the top!

I hope you injoy using  This library as much as I like codeing it! 

Keep codeing!


Download

Download
Emoji.zip 845 bytes
Download
CodeArt-example-canvas-with-dom.zip 917 bytes
Download
CodeArt engen 1 kB

Leave a comment

Log in with itch.io to leave a comment.