function dragMouse(event){
  var position;
  if(dragging === true){
    position = getpositionmouse(event) ;
    attribute.style(position);
  }
}
//draws the line as the mouse gets dragged
draws the line as the mouse gets dragged
draws the line as the mouse gets dragged
function dragMouse(event){
  var position;
  if(dragging === true){
    position = getpositionmouse(event) ;
    attribute.style(position);
  }
}
function dragMouse ( event ) { var position ; if ( dragging === true ) { position = getpositionmouse ( event ) ; attribute . style ( position ) ; } }
draws the line as the mouse gets dragged
draws the line as the mouse gets dragged