class Colors {
constructor(height, width) {
this.bgColors = ["#121f38", "#035388", "#0b69a3", "#127FBF", "#1992D4", "#2BB0ED", "#40C3F7", "#5ED0FA", "#808EA1", "#81DEFD", "#B3ECFF", "#E3F8FF"];
this.textColors = ["#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff"];
this.currentIndex = 0;
this.currentParent = 1;
}
getColor(currentParent){
if(currentParent !== this.currentParent) {
this.currentIndex = 0
}
const color = this.bgColors.at(this.currentIndex % this.bgColors.length)
this.currentIndex++
this.currentParent = currentParent;
return color
}
getTextColor() {
const color = this.textColors.at(this.currentIndex % this.textColors.length)
this.currentIndex++
return color
}
}