tvcastillod_Simulador-de-Circuitos/Circuito/Cable.pde
class Cable extends CircElm {

  final static String IMG_SOURCE = "imgs/cable.svg";

  public Cable(float x, float y, float r, float x1, float y1, float x2, float y2, int i, float v, String t) {
    super(x, y, r, x1, y1, x2, y2, i, IMG_SOURCE, v, t);
  }

  @Override
    void drawElem() {
    noStroke();
    fill(255);
    rectMode(CENTER);
    rect(0, 0, 50, 50);
    shape(imgCap, -50, -27, 100, 55);
  }
  void drawNode1() {
    stroke(255, 18, 18); 
    strokeWeight(12);
    point(0, 0); //entrada
  }
  void drawNode2() {
    stroke(0);
    strokeWeight(12);
    point(0, 0); //salida
  }
}