import Bilza, { Ui,hsl,getRandom } from "../../src/bilza.js";

setInterval(function(){
/////////////////////////////--set interval
let bil = new Bilza("bilza",70);
bil.background.color.set("#000000");
//-----------------------------------------
const g = bil.alwaysOn( ).grid(10,10,);

const counter = bil.alwaysOn( ).frameCounter(0);

for (let i = 0; i < 200; i++) {
        const circle = bil.add(0,20).circle(5,hsl(getRandom(0,360)));
        //--This will just draw the boundry
        circle.filled.set(false);
        circle.lineWidth.set(2);
        circle.x.set(getRandom(1,100));
        circle.y.set(getRandom(1,100));
}
//-------------------------------
// const ui = new Ui(bil); //not required for this example
bil.draw();
////////////////////////////--set interval ends
},1000);