Java (JDK), 123 bytes
d->n->{var c="\\|/".split("")[d];for(int i=n;i-->0;)System.out.printf("%"+(d<1?n-i:d>1?i+1:1)+"s%2s %s%n",c,i%2<1?c:"",c);}
Takes d
as one of 0
, 1
or 2
.
d->n->{var c="\\|/".split("")[d];for(int i=n;i-->0;)System.out.printf("%"+(d<1?n-i:d>1?i+1:1)+"s%2s %s%n",c,i%2<1?c:"",c);}
Takes d
as one of 0
, 1
or 2
.