Slowed down resize
This commit is contained in:
parent
3ab2d36a46
commit
25aff03ccf
@ -13,11 +13,9 @@ function Frame()
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.methods.rescale = new Method("rescale","0.5","Rescale canvas to float.",function(p){
|
this.methods.rescale = new Method("rescale","0.5","Rescale canvas to float.",function(p){
|
||||||
|
|
||||||
var new_size = {width:ronin.frame.width * p,height:ronin.frame.height * p};
|
var new_size = {width:ronin.frame.width * p,height:ronin.frame.height * p};
|
||||||
|
|
||||||
ronin.render.context().drawImage(ronin.render.to_img(),0,0,new_size.width * 2,new_size.height * 2);
|
ronin.render.context().drawImage(ronin.render.to_img(),0,0,new_size.width * 2,new_size.height * 2);
|
||||||
setTimeout(ronin.frame.methods.resize.run(new_size),1000)
|
setTimeout(ronin.frame.methods.resize.run(new_size),2000)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.methods.crop = new Method("crop","X,Y|WxH","Crop canvas to rect.",function(p){
|
this.methods.crop = new Method("crop","X,Y|WxH","Crop canvas to rect.",function(p){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user