mirror of
https://github.com/kennethreitz/rhymepad.org.git
synced 2026-06-11 17:08:33 +00:00
Widen the end-vs-internal fill contrast
End rhymes 34%, internals 13% (phrases 22/10) — scheme structure reads at a glance without the old underlines. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -466,7 +466,7 @@ function render(){
|
||||
if(!w && !p){ h += text; continue; }
|
||||
// fills only: words paint their group color; phrase rhymes paint
|
||||
// the stretches between, so multi-word matches still read as units
|
||||
const alpha = w ? (w.end ? 24 : 15) : (p.end ? 18 : 12);
|
||||
const alpha = w ? (w.end ? 34 : 13) : (p.end ? 22 : 10);
|
||||
const color = w ? colorOf(w) : colorOf(p);
|
||||
h += `<span class="hseg" style="background:color-mix(in srgb, ${color} ${alpha}%, transparent);">${text}</span>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user