function drawCanvas2() {
  var canvas = document.getElementById('canvas2');
  if (canvas && canvas.getContext) {
    var ctx = canvas.getContext('2d');  // Get the context : 2 dimensions
    // Black triangle
    ctx.beginPath();                    // Open the path
    ctx.moveTo(25,25);                  // Move
    ctx.lineTo(105,25);                 // Create a line
    ctx.lineTo(25,105);                 // Create a line
    ctx.fill();                         // Close and fill the path
    // White triangle
    ctx.beginPath();                    // Open the path
    ctx.moveTo(125,125);                // Move
    ctx.lineTo(125,45);                 // Create a line
    ctx.lineTo(45,125);                 // Create a line
    ctx.closePath();                    // Close the path
    ctx.stroke();                       // Draw the path
  }
}

