Screen: bigger entry qr, upright layout without overlap, center logo matches the mark
This commit is contained in:
@@ -154,14 +154,14 @@ const sectorAngle = (theta, j, n) => theta + ((j + 0.5) * 2 * Math.PI) / n;
|
||||
const INK = "#1c2036";
|
||||
|
||||
function logo(ctx, cx, cy, r) {
|
||||
// the rotaty mark in light tones on the dark disc
|
||||
const n = 6, rr = r * 0.52, step = (2 * Math.PI) / n;
|
||||
// same geometry as static/img/mark.svg: r 11, stroke 5, 6 dashes of 4.52 every 11.52, first one yellow
|
||||
const u = (r * 0.62) / 13.5, rr = 11 * u, step = (2 * Math.PI) / 6, dash = 4.52 / 11, start = 3.5 / 11;
|
||||
ctx.lineCap = "round";
|
||||
ctx.lineWidth = r * 0.17;
|
||||
for (let j = 0; j < n; j++) {
|
||||
const a = -Math.PI / 2 + j * step;
|
||||
ctx.lineWidth = 5 * u;
|
||||
for (let j = 0; j < 6; j++) {
|
||||
const a = -Math.PI / 2 + start + j * step;
|
||||
ctx.strokeStyle = j === 0 ? "#ffcc00" : "#ffffff";
|
||||
ctx.beginPath(); ctx.arc(cx, cy, rr, a + step * 0.2, a + step * 0.8); ctx.stroke();
|
||||
ctx.beginPath(); ctx.arc(cx, cy, rr, a, a + dash); ctx.stroke();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user