diff --git a/app/igneum-app/ui/live-dag.js b/app/igneum-app/ui/live-dag.js index 18d304e35..596a95228 100644 --- a/app/igneum-app/ui/live-dag.js +++ b/app/igneum-app/ui/live-dag.js @@ -152,7 +152,8 @@ ctx.beginPath(); rr(b.x - r, b.y - r, 2 * r, 2 * r, 3); ctx.fillStyle = b.proven ? COL.ember : COL.obsidian; ctx.fill(); ctx.lineWidth = b.chain ? 2 : 1.5; - ctx.strokeStyle = b.proven ? COL.ember : proving ? COL.molten : (b.color === 'blue' || b.chain) ? rgba(COL.ember, 0.85) : ex ? rgba(COL.ash, 0.6) : rgba(COL.ash, 0.8); + // chain blocks in ember (the path), included blocks lit in bone, pending in ash, excluded dim + ctx.strokeStyle = b.proven ? COL.ember : proving ? COL.molten : b.chain ? rgba(COL.ember, 0.9) : b.color === 'blue' ? rgba(COL.bone, 0.8) : ex ? rgba(COL.ash, 0.5) : rgba(COL.ash, 0.75); ctx.stroke(); if (b.locked) { ctx.strokeStyle = rgba(COL.ember, 0.8 + 0.2 * Math.sin(t / 350)); ctx.lineWidth = 2; ctx.beginPath(); ctx.arc(b.x, b.y, r * 1.9, 0, Math.PI * 2); ctx.stroke(); } if (isMine && isMine(b)) { ctx.strokeStyle = rgba(COL.molten, 0.9); ctx.lineWidth = 1.5; ctx.beginPath(); ctx.arc(b.x, b.y, r * 1.5, 0, Math.PI * 2); ctx.stroke(); }