Icon maker
This commit is contained in:
parent
f30cbc58e2
commit
0ac4b8f678
@ -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)
|
||||
|
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user