WLS:ISL

Fu

int bW = 140;
int bT = 12;
int h = bW/4;
int[] hex={0,0,0,0,0,1};
int o=20;

void setup() {
   size(180,160);
   stroke(0);
   strokeWeight(bT);
   strokeCap(SQUARE);
   noLoop();
}

void draw() {
   background(255);
   for (int i=0; i<hex.length; i++){
      int yOff = o + (i*bT*2);
      if(hex[i]==0){
         line(o,yOff,o+(bW/2)-h/2,yOff);
         line(o+(bW/2)+h/2,yOff,o+bW,yOff);
      }else{
         line(o,yOff,o+bW,yOff);
      }
   }
}