this. added to some referenses to dimentions in shape
This commit is contained in:
parent
f25979eff1
commit
83fb7fb257
@ -57,7 +57,7 @@ class shape {
|
||||
ctx.strokeRect(origin.d[0],origin.d[1],this.dimentions.d[0],this.dimentions.d[1]);
|
||||
} else if ("elipse" == this.type) {
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(center.d[0],center.d[1],dimentions.d[0]/2,dimentions.d[1]/2,0,0,360);
|
||||
ctx.ellipse(center.d[0],center.d[1],this.dimentions.d[0]/2,this.dimentions.d[1]/2,0,0,360);
|
||||
ctx.stroke();
|
||||
ctx.fill();
|
||||
} else if ("image" == this.type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user