site: wheel hero polish — claws/fangs grip only the rim edge (rim labels stay legible as it turns), drop decorative gradient glow (theme rule), theme the copy-link button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47e5fb334e
commit
e3e6a716f2
3 files changed
+9
-11
No files matched your search
+1
-1
@@ -174,7 +174,7 @@ body.grimoire-live #go {
|
||||
text-transform:uppercase;
|
||||
}
|
||||
body.grimoire-live #go.armed { background:#2c0806; color:var(--blood-hot); }
|
||||
body.grimoire-live #mreset { border-radius:0; border-color:var(--parch-line); }
|
||||
body.grimoire-live #mreset, body.grimoire-live #shareBtn { border-radius:0; border-color:var(--parch-line); }
|
||||
body.grimoire-live .fsel {
|
||||
background:var(--scorch); border-color:var(--parch-line); border-radius:0;
|
||||
color:var(--bone);
|
||||
|
||||
+6
-8
@@ -546,10 +546,6 @@ measurement loop.</p>
|
||||
fear:"?pain=0&fear=0.5", sadness:"?pain=0&sadness=0.5", none:"?pain=0"};
|
||||
|
||||
const defs = mk("defs", {}, svg);
|
||||
const glow = mk("radialGradient", {id:"yglow"}, defs);
|
||||
mk("stop", {offset:"0%", "stop-color":"#4a0d0d", "stop-opacity":".55"}, glow);
|
||||
mk("stop", {offset:"100%", "stop-color":"#050508", "stop-opacity":"0"}, glow);
|
||||
mk("circle", {cx:CX, cy:CY - 40, r:300, fill:"url(#yglow)"}, svg);
|
||||
|
||||
// Yama, behind the wheel: mane, face, three eyes, crown of five skulls
|
||||
const head = mk("g", {"aria-hidden":"true"}, svg);
|
||||
@@ -587,7 +583,9 @@ measurement loop.</p>
|
||||
href: k => "live.html" + LINKS[k]});
|
||||
wheel.setLit({pain:.18, pleasure:.18, fear:.18, sadness:.18, none:.18});
|
||||
|
||||
// in front: the upper jaw biting the rim, and four claws gripping it
|
||||
// in front: the upper jaw biting the rim, and four claws gripping it.
|
||||
// Fangs and claw tips hook only over the rim's outer edge: the rim turns,
|
||||
// so anything reaching into the label band would eventually cover each link.
|
||||
const front = mk("g", {"aria-hidden":"true", "pointer-events":"none"}, svg);
|
||||
const top = CY - R_OUT;
|
||||
mk("path", {d:`M${HX - 50} ${top - 10}Q${HX} ${top + 8} ${HX + 50} ${top - 10}`
|
||||
@@ -595,7 +593,7 @@ measurement loop.</p>
|
||||
for (let x = HX - 34; x <= HX + 34; x += 9.7)
|
||||
mk("rect", {class:"bone", x:f(x - 3.6), y:f(top - 6), width:7.2, height:7, rx:1.2}, front);
|
||||
for (const s of [-1, 1])
|
||||
mk("path", {class:"bone", d:`M${HX + s*36} ${top - 6}l${s*5} 34l${s*6} -34z`}, front);
|
||||
mk("path", {class:"bone", d:`M${HX + s*36} ${top - 6}l${s*4} 13l${s*4} -13z`}, front);
|
||||
|
||||
function claw(a){
|
||||
const g = mk("g", {}, front);
|
||||
@@ -606,8 +604,8 @@ measurement loop.</p>
|
||||
for (let j = -1.5; j <= 1.5; j++){
|
||||
const aj = a + j * 5.2;
|
||||
const [x0, y0] = pol(CX, CY, R_OUT + 16, aj);
|
||||
const [cx1, cy1] = pol(CX, CY, R_OUT - 4, aj + 1.5);
|
||||
const [x1, y1] = pol(CX, CY, R_IN + 6, aj + 3);
|
||||
const [cx1, cy1] = pol(CX, CY, R_OUT + 6, aj + 1.5);
|
||||
const [x1, y1] = pol(CX, CY, R_OUT - 4, aj + 3);
|
||||
for (const [w, c] of [[8.5, "#5a1d16"], [6.5, "#3a120e"]])
|
||||
mk("path", {d:`M${f(x0)} ${f(y0)}Q${f(cx1)} ${f(cy1)} ${f(x1)} ${f(y1)}`,
|
||||
fill:"none", stroke:c, "stroke-width":w, "stroke-linecap":"round"}, g);
|
||||
|
||||
+2
-2
@@ -165,7 +165,7 @@
|
||||
#go{background:var(--pain);border:none;color:#fff;font-family:var(--mono);
|
||||
font-size:.82rem;padding:.4rem 1.1rem;border-radius:4px;cursor:pointer}
|
||||
#go[disabled]{opacity:.55;cursor:default}
|
||||
#mreset{background:none;border:1px solid var(--line);color:var(--faint);
|
||||
#mreset,#shareBtn{background:none;border:1px solid var(--line);color:var(--faint);
|
||||
font-family:var(--mono);font-size:.72rem;padding:.3rem .7rem;
|
||||
border-radius:4px;cursor:pointer;margin-left:.5rem}
|
||||
.fsel{background:#07070e;color:var(--ink);border:1px solid var(--line);
|
||||
@@ -368,7 +368,7 @@ else is.</p>
|
||||
</div>
|
||||
<button id="go" type="button">inject →</button>
|
||||
<button id="mreset" type="button">reset</button>
|
||||
<button id="shareBtn" type="button" style="margin-left:.4rem">copy link</button>
|
||||
<button id="shareBtn" type="button">copy link</button>
|
||||
<span id="gost" style="margin-left:.8rem;font-size:.75rem;color:#8f9fb0"></span>
|
||||
<div id="trackWrap">
|
||||
<div class="track" id="trackA">
|
||||
|
||||
Reference in new issue
Block a user