Icon maker

This commit is contained in:
Devine Lu Linvega 2018-05-11 11:17:20 +12:00
parent f30cbc58e2
commit 0ac4b8f678
2 changed files with 4 additions and 4 deletions

View File

@ -38,14 +38,14 @@ function Renderer()
this.layer_2.style.strokeLinejoin = styles[1].strokeLinejoin;
this.layer_2.style.stroke = styles[1].color;
this.layer_2.style.fill = styles[1].fill;
this.layer_1.setAttribute("d",paths[1])
this.layer_2.setAttribute("d",paths[1])
this.layer_3.style.strokeWidth = styles[2].thickness;
this.layer_3.style.strokeLinecap = styles[2].strokeLinecap;
this.layer_3.style.strokeLinejoin = styles[2].strokeLinejoin;
this.layer_3.style.stroke = styles[2].color;
this.layer_3.style.fill = styles[2].fill;
this.layer_1.setAttribute("d",paths[2])
this.layer_3.setAttribute("d",paths[2])
}
this.to_png = function(size = {width:1280,height:1280},callback = dotgrid.render)

View File

@ -190,8 +190,8 @@ function Tool()
this.paths = function()
{
var l1 = new Generator(dotgrid.tool.layers[0]).toString({x:0,y:0},1)
var l2 = new Generator(dotgrid.tool.layers[0]).toString({x:0,y:0},1)
var l3 = new Generator(dotgrid.tool.layers[0]).toString({x:0,y:0},1)
var l2 = new Generator(dotgrid.tool.layers[1]).toString({x:0,y:0},1)
var l3 = new Generator(dotgrid.tool.layers[2]).toString({x:0,y:0},1)
return [l1,l2,l3]
}