Implemented open/save

This commit is contained in:
Devine Lu Linvega
2018-01-20 14:47:26 +13:00
parent b5972beb1a
commit 606503b397
3 changed files with 10 additions and 32 deletions

View File

@@ -9,6 +9,12 @@ function Frame()
ronin.el.appendChild(this.el);
}
this.methods.new = new Method("new","WxH","New Canvas",function(q){
ronin.layers.above.clear();
ronin.layers.below.clear();
ronin.frame.resize_to({width:930,height:540});
});
this.width = 400;
this.height = 400;
this.zoom = {scale:1,offset:{x:0,y:0}};