thickness bugfix

This commit is contained in:
cantbesure1 2017-11-06 22:59:45 -08:00
parent 32d971cd02
commit dea2957972

View File

@ -174,7 +174,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca
this.mod_thickness = function(mod)
{
this.thickness += mod;
this.thickness = Math.max(this.thickness+mod,0);
this.draw();
}