示例#1
0
 public void dibujar(Graphics g)
 {
     if (siguiente != null)
     {
         siguiente.dibujar(g);
     }
     g.FillRectangle(new SolidBrush(Color.Blue), this.x, this.y, this.ancho, this.ancho);
 }
示例#2
0
 public void dibujar()
 {
     g.Clear(Color.White);
     cabeza.dibujar(g);
     comida.dibujar(g);
 }