Some minor progress on the brush

This commit is contained in:
Devine Lu Linvega
2017-11-08 13:12:55 +13:00
parent 806bcfc954
commit 5ec4dedfa0
9 changed files with 129 additions and 73 deletions

View File

@@ -24,6 +24,7 @@ function Commander()
var setting_value = q.settings[setting_id];
if(!ronin.modules[q.module].settings[setting_id]){ console.log("Missing setting",setting_id); return; }
ronin.modules[q.module].settings[setting_id] = setting_value;
console.log(ronin.modules[q.module]);
}
ronin.modules[q.module].routes = q.routes;

View File

@@ -28,7 +28,7 @@ function Layer()
this.el.style.height = size.height+"px";
}
this.select = function(x = 0,y = 0,width = ronin.frame.settings.width,height = ronin.frame.settings.width)
this.select = function(x = 0,y = 0,width = ronin.frame.width,height = ronin.frame.width)
{
return this.context().getImageData(x, y, width * 2, height * 2);
}