function draw1(d){
let out = d3.selectAll(`#out${count[1]}`)
count[0]++;
count[1]++;
let c = w-count[0]*12
out.append('g')
.attr('id',`out${count[1]}`)
.attr('transform', `${trans.str}`)
.append('line')
.attr('x1', 0)
.attr('y1', 0)
.attr('x2', 0)
.attr('y2', -d)
.attr('stroke',colour(w,c));
trans.str = `translate(0 ${-d}) rotate(${radToDeg(0.06)})`
if(d*4>5) draw1(d*0.8);
let t = `rotate(${radToDeg(-0.06)}) translate(0 ${d*0.4}) rotate(${radToDeg(-1)})`
trans.str = trans.str.concat(' ',t)
if(d*4>9) draw1(d*4/9);
t = `rotate(${radToDeg(2)})`
trans.str = trans.str.concat(' ',t)
if(d*4>9)draw1(d*4/9);
t= `rotate(${radToDeg(-1)}) translate(0 ${d*0.6})`
trans.str = trans.str.concat(' ',t)
count[0]--
};