Thickness is now part of layer styles

This commit is contained in:
Devine Lu Linvega
2018-03-07 11:26:18 +13:00
parent fafa772422
commit db6b2663dd
2 changed files with 33 additions and 24 deletions

View File

@@ -2,6 +2,7 @@ function Tool()
{
this.index = 0;
this.layers = [[],[],[]];
this.styles = [{thickness:1},{thickness:10},{thickness:15}];
this.verteces = [];
this.reqs = {line:2,arc_c:2,arc_r:2,bezier:3,close:0};
@@ -12,6 +13,14 @@ function Tool()
this.index = 0;
}
this.style = function()
{
if(!this.styles[this.index]){
this.styles[this.index] = [];
}
return this.styles[this.index];
}
this.layer = function()
{
if(!this.layers[this.index]){