import Bilza, {Ui,hsl,getRandom} from "../../src/bilza.js";
let bil = new Bilza("bilza", 70);
bil.background.color.set(hsl(240,100,20));
const fc = bil.alwaysOn().frameCounter(hsl(0))
fc.align(0,2);
fc.goto(0,0,100);
fc.fontSize.set(80);
fc.color.set(hsl(60));
fc.colorBackground.set(hsl(240,100,60));
//------------------------------------
for (let i = 0; i < 100; i++) {
const comp = bil.add(0,25).line(
getRandom(0,100),
getRandom(0,100),
getRandom(0,100),
getRandom(0,100),
hsl(240));
comp.color.set(hsl(getRandom(0,360)));
comp.lineWidth.set(getRandom(1,3));
comp.x.oscillate(0,60,0,100);
comp.y.oscillate(0,60,0,100);
//---------------------------------
}
//-------------------------------
const ui = new Ui(bil);
bil.draw();