//  ----------------------------------------------------------------------------
    function createLines(g, n) {
      var node = document.createElement ('div');
      node.id = "line" + (++g.iPath);
      for (var i=0; i < n; i++) 
        {node.appendChild(g.drawLine (Math.random() * g.width, Math.random() * g.height , Math.random() * g.width, Math.random() * g.height, Math.random() * 5, g.randomColour (), Math.random()));}
      return node;
    }	
 
//  ----------------------------------------------------------------------------
    function createRects(g, n) {
      var node = document.createElement ('div');
      node.id = "rect" + (++g.iRect);
      for (var i=0; i < n; i++) 
        {node.appendChild(g.drawRect (Math.random() * g.width-100, Math.random() * g.height-100, Math.random() * 100, Math.random() * 100, g.randomColour (), g.randomColour (), 1, Math.random()));}
      return node;
    }	
 
//  ----------------------------------------------------------------------------
    function createCircles(g, n) {
      var node = document.createElement ('div');
      node.id = "circ" + (++g.iCirc);
      for (var i=0; i < n; i++) 
        {node.appendChild(g.drawCircle (Math.random() * (g.width-100)+50, Math.random()* (g.height-100)+50, Math.random() * 50, g.randomColour (), Math.random()));}
      return node;
    }
	
//  ----------------------------------------------------------------------------
    function createComb(g) {
      var node = document.createElement ('div');
      node.id = "comb" + (++g.iComb);
      node.appendChild(g.drawRect   (0, 0, 100, 100, 'red', 'navy', 1, 1.0));
      node.appendChild(g.drawCircle (50, 50, 30, 'blue', 1.0));
      return node;
    }
//  ----------------------------------------------------------------------------

