starsBuf = []; Star = function(center, size) { this.sphere = new Sphere(center, size); this.sphere.color = [0.956,0.5,0.215]; starsBuf.push([center[0], center[1], center[2], size]); } Star.prototype.draw = function() { this.sphere.draw(); }