simple background colors
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user