finish the line and rectangle part

for 4 web audio function