import {getColor} from './utils.js'; export default class DrawCircle { constructor(settings) { } fill(context, scale, x, y, cell) { context.beginPath(); context.arc(x, y, scale * cell.scale, 0, 2*Math.PI, false); context.fillStyle = getColor(cell.color); context.fill(); } outline(context, scale, x, y, cell) { context.beginPath(); context.arc(x, y, scale * cell.scale, 0, 2*Math.PI, false); context.lineWidth = cell.width; context.strokeStyle = getColor(cell.color); context.stroke(); } }