SpritePainter(this.images, this.offsets, this.imageHeight) : assert(images.length <= offsets.length);