Zooming guide as well
This commit is contained in:
parent
91b7555da6
commit
4deed6fef6
@ -6,8 +6,11 @@ function Brush()
|
||||
|
||||
this.pointers = [
|
||||
new Pointer({offset:{x:0,y:0}}),
|
||||
new Pointer({offset:{x:3,y:3}}),
|
||||
new Pointer({offset:{x:-2,y:-3}})
|
||||
// new Pointer({offset:{x:2,y:2}}),
|
||||
// new Pointer({offset:{x:-10,y:-10}}),
|
||||
new Pointer({offset:{x:0,y:0},mirror:{x:450,y:0}}),
|
||||
// new Pointer({offset:{x:-10,y:10},mirror:{x:450,y:0}}),
|
||||
// new Pointer({offset:{x:2,y:-2},mirror:{x:450,y:0}}),
|
||||
];
|
||||
|
||||
this.methods.add = new Method("add","x,y&mirror_x,mirror_y","Add a new pointer to the brush",function(q){
|
||||
@ -113,7 +116,7 @@ function Pointer(options)
|
||||
ctx.lineTo((line.to.x * 2) + this.options.offset.x,(line.to.y * 2) + this.options.offset.y);
|
||||
ctx.lineCap="round";
|
||||
ctx.lineWidth = this.thickness(line);
|
||||
ctx.strokeStyle = this.options.tween ? new Color(ronin.cursor.color).tween(new Color(ronin.cursor.color_alt),ratio) : ronin.cursor.color;
|
||||
ctx.strokeStyle = ronin.cursor.color;
|
||||
ctx.stroke();
|
||||
ctx.closePath();
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ function Frame()
|
||||
console.log(ronin.frame.zoom)
|
||||
ronin.layers.above.zoom(ronin.frame.zoom);
|
||||
ronin.layers.below.zoom(ronin.frame.zoom);
|
||||
ronin.layers.guide.zoom(ronin.frame.zoom);
|
||||
});
|
||||
|
||||
this.resize_to = function(size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user