function LabelPoint(ctx, x, y, end) {
var line = "(" + x + "," + y + ")";
ctx.strokeStyle="purple";
if (end) {
ctx.textAlign="end";
ctx.strokeText(line, x-5, y);
} else {
ctx.textAlign="start";
ctx.strokeText(line, x+5, y);
}
};
startx = this.width*.1; endx = this.width * .9; starty = this.height*.1; endy = this.height * .9;
this.ctx.beginPath(); this.ctx.strokeStyle="#ff2233"; this.ctx.moveTo(startx, starty); this.ctx.lineTo(endx, endy); this.ctx.stroke();