ktongue's picture
download
raw
319 Bytes
import {sqrt} from "../math.js";
const sqrt3 = sqrt(3);
export default {
draw(context, size) {
const s = sqrt(size) * 0.6824;
const t = s / 2;
const u = (s * sqrt3) / 2; // cos(Math.PI / 6)
context.moveTo(0, -s);
context.lineTo(u, t);
context.lineTo(-u, t);
context.closePath();
}
};

Xet Storage Details

Size:
319 Bytes
·
Xet hash:
e05750a218876a79c0850ab80606edc6e013241916a041eb2dbc1f17ff8d460a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.