import Material from './Material' ; export default class ColorMaterial extends Material { public color : number [ ] = null ; constructor ( rgb255 ) { super ( ) ; this . color = [ rgb255 [ 0 ] / 255 , rgb255 [ 1 ] / 255 , rgb255 [ 2 ] / 255 ] ; } isReady ( ) { return this . color && this . color . length > 0 ; } destroy ( ) { } } ;