import Bilza, { Ui,hsl,getRandom} from "../../src/bilza.js";
let bil = new Bilza("bilza", 70);
// bil.resizeCanvas(300,300);
bil.background.color.set(hsl(0,5,30));
bil.alwaysOn().grid(10,10,"grey");
//--------------------
const comp = bil.add(0,30).text("Demo Text",hsl(240));
comp.setxy(10,10);
comp.setPaddings(0);
comp.showBackground.set(true);
//-------------------------
comp.fitToWidth.set(false);
comp.width.set(1000);
comp.fitToHeight.set(true);
comp.height.set(10)
comp.height.animate(0,5,10,90);
//--------------------
const ui = new Ui(bil);
bil.draw();