- this.redraw = function() {
- c.fillStyle = this.state == 1 ? "rgb(0,0,0)" : "rgb(255,255,255)";
- c.fillRect(this.x, this.y, this.h, this.l);
- }
- this.highlight = function() {
- c.fillStyle = "rgb(0,0,100)";
- c.fillRect(this.x, this.y, this.h, this.l);
- }