Severian's picture
Upload 7464 files
c211499
raw
history blame contribute delete
273 Bytes
import {sqrt} from "../math.js";
const sqrt3 = sqrt(3);
export default {
draw(context, size) {
const y = -sqrt(size / (sqrt3 * 3));
context.moveTo(0, y * 2);
context.lineTo(-sqrt3 * y, -y);
context.lineTo(sqrt3 * y, -y);
context.closePath();
}
};