blob: 7aebc6cccbec017d7c18c8191ea0e89c432bee8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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();
}
|