Spaces:
Build error
Build error
| import {min, sqrt} from "../math.js"; | |
| const sqrt3 = sqrt(3); | |
| export default { | |
| draw(context, size) { | |
| const r = sqrt(size + min(size / 28, 0.75)) * 0.59436; | |
| const t = r / 2; | |
| const u = t * sqrt3; | |
| context.moveTo(0, r); | |
| context.lineTo(0, -r); | |
| context.moveTo(-u, -t); | |
| context.lineTo(u, t); | |
| context.moveTo(-u, t); | |
| context.lineTo(u, -t); | |
| } | |
| }; | |