code: function (settings) {
              var xy = this.bezier.coordinates,
                  ctx = this.canvas.getContext("2d"),
                  setting;
  
              var defaultSettings = {
                  handleTimingFunction: "#2893ef",
                  handleThickness: 0.008,
                  vBorderThickness: 0.02,
                  hBorderThickness: 0.01,
                  bezierTimingFunction: "#2893ef",
                  bezierThickness: 0.03
              };
  
              settings = settings || {};
  
              for (setting in defaultSettings) {
                  if (defaultSettings.hasOwnProperty(setting)) {
                      if (!settings.hasOwnProperty(setting)) {
                          settings[setting] = defaultSettings[setting];
                      }
                  }
              }
  
              ctx.clearRect(-0.5, -0.5, 2, 2);
  
              // Draw control handles
              ctx.beginPath();
              ctx.fillStyle = settings.handleTimingFunction;
              ctx.lineWidth = settings.handleThickness;
              ctx.strokeStyle = settings.handleTimingFunction;
  
              ctx.moveTo(0, 0);
              ctx.lineTo(xy[0], xy[1]);
              ctx.moveTo(1, 1);
              ctx.lineTo(xy[2], xy[3]);
  
              ctx.stroke();
              ctx.closePath();
  
              ctx.beginPath();
              ctx.arc(xy[0], xy[1], 1.5 * settings.handleThickness, 0, 2 * Math.PI, false);
              ctx.closePath();
  
              ctx.fill();
  
              ctx.beginPath();
              ctx.arc(xy[2], xy[3], 1.5 * settings.handleThickness, 0, 2 * Math.PI, false);
              ctx.closePath();
  
              ctx.fill();
  
              // Draw bezier curve
              ctx.beginPath();
              ctx.lineWidth = settings.bezierThickness;
              ctx.strokeStyle = settings.bezierColor;
              ctx.moveTo(0, 0);
              ctx.bezierCurveTo(xy[0], xy[1], xy[2], xy[3], 1, 1);
              ctx.stroke();
              ctx.closePath();
          }
docs: Paint canvas
  
  @param {Object} settings Paint settings