Home       Comp Core Examples       Comp Projects

How to Setup HTML page

All we need is to create a simple basic html page and add a canvas element to it with some specific ID (preferablly "bilza").

Incase a canvas element ID is not provided or any canvas element with the provided ID is not found then the library will try to create and add a canvas element.

We can have as many canvas elements on a page as we want but obviously each of them needs to have seperate ID thus we can target each canvas element seperately.


    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Bilza Core Samples</title>
    </head>
    <body>
    
    <canvas id="bilza"></canvas>
    
    <script  type="module" >
        ///--your code here
    </script>
    
    </body>
    </html>

To install the library you can install it using Node

    
        npm install bilza
    

An alternative option is to download the single file compressed file for a specific version. The link is here