Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bear extends DrawingObjects
- {
- constructor (px, py, r) {
- super(px, py, 'B');
- this.raio = r;
- this.nose = new Oval(this.posx, this.posy + this.raio/1.5, 1.2*this.raio, 1.5, 1, "white");
- this.face = new Oval(this.posx, this.posy, 5*this.raio, 1, 1, "black");
- this.left_ear = new Oval(this.posx - 3.7*this.raio, this.posy - 3.7*this.raio, 2.5*this.raio, 1, 1, "black");
- this.right_ear = new Oval(this.posx + 3.7*this.raio, this.posy - 3.7*this.raio, 2.5*this.raio, 1, 1, "black");
- this.internal_left_ear = new Oval(this.posx - 3.7*this.raio, this.posy - 3.7*this.raio, 1.5*this.raio, 1, 1, "white");
- this.internal_right_ear = new Oval(this.posx + 3.7*this.raio, this.posy - 3.7*this.raio, 1.5*this.raio, 1, 1, "white");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement