Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. class Bear extends DrawingObjects
  2. {
  3. constructor (px, py, r) {
  4. super(px, py, 'B');
  5. this.raio = r;
  6. this.nose = new Oval(this.posx, this.posy + this.raio/1.5, 1.2*this.raio, 1.5, 1, "white");
  7. this.face = new Oval(this.posx, this.posy, 5*this.raio, 1, 1, "black");
  8. this.left_ear = new Oval(this.posx - 3.7*this.raio, this.posy - 3.7*this.raio, 2.5*this.raio, 1, 1, "black");
  9. this.right_ear = new Oval(this.posx + 3.7*this.raio, this.posy - 3.7*this.raio, 2.5*this.raio, 1, 1, "black");
  10. 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");
  11. 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