ronin/scripts/ronin.js
Devine Lu Linvega 5cc654cd6d Added hints.
2016-11-14 15:54:11 -08:00

24 lines
506 B
JavaScript

function Ronin()
{
this.element = null;
this.canvas = new Canvas();
this.overlay = new Overlay();
this.brush = new Brush();
this.file = new File();
this.hint = new Hint();
this.fill = function(p)
{
cvSave = canvas.toDataURL("image/png");
context.beginPath();
context.rect(0, 0, canvas.width, canvas.height);
context.fillStyle = "#"+p[0];
context.fill();
var imgObj = new Image();
imgObj.src = cvSave;
context.drawImage(imgObj,0,0);
}
}