isolate render so we can make predictions about what type to use

This commit is contained in:
Stewart Allen 2020-11-07 16:27:04 -05:00
commit 5be7bdcc08
3 changed files with 101 additions and 75 deletions

View file

@ -16,7 +16,8 @@
if (typeof(colors) === 'number') {
colors = {
line: color,
face: color
face: color,
opacity: 1
};
}
this.current = layers[layer] = layers[layer] || {
@ -26,8 +27,9 @@
paths: [],
color: colors || {
line: 0,
face: 0
}
face: 0,
opacity: 1
},
};
return this;
}