export default class Palette { public colors : number [ ] [ ] ; public enabled : number [ ] = [ ] ; constructor ( colors ) { this . colors = colors ; colors . forEach ( ( color , index ) => this . enabled . push ( index ) ) ; } }