simple background colors

This commit is contained in:
Gavin McDonald
2018-08-31 21:46:46 -04:00
parent a7070a735e
commit 3ded7cf4f0
3 changed files with 21 additions and 4 deletions

View File

@@ -212,13 +212,15 @@ export class Tessellate {
return funky.flatten(this.cartographer.boundingBox(upperLeft, upperRight, lowerLeft, lowerRight));
}
background (color) {
this.sketch.background(color);
}
draw (context) {
const canvas = context.canvas;
const width = canvas.width;
const height = canvas.height;
context.clearRect(0, 0, width, height);
this.settings.draw({
context,