aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-02 13:12:22 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-02 13:12:22 -0500
commit7412fedeeb030bc00d8dd9dc9b3a883c8a94e9fc (patch)
treecd77a018eb9357a1d0da668c6ded18ee3a4cbafd /src
parent0e8f57af12a3eda54e8e75672b0f0d67b06245e5 (diff)
Keep character backing at the same height as the character
Diffstat (limited to 'src')
-rw-r--r--src/e.bqn4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/e.bqn b/src/e.bqn
index 6ae25f68..dd7d8dd3 100644
--- a/src/e.bqn
+++ b/src/e.bqn
@@ -13,8 +13,8 @@ gt ← "g" At "font-size=15px|text-anchor=middle"
gb ← "g" At "class=codeCover|stroke-width=8|stroke-linejoin=round"
gf ← "g" At "opacity=0.9"
Shadow ← {
- t ← (⟨0,0‿¯2⟩+⌜𝕨) ("text" Attr Pos)⊸Enc¨ (1⊸⊑¨≍∾¨) 𝕩
- gt Enc ⟨gb,gf⟩ Enc¨<˘ t
+ p ← ("text" Attr ·Pos -⟜0‿2)¨ 𝕨
+ gt Enc ⟨gb,gf⟩ Enc¨ (1⊸⊑¨ ≍○<○(p Enc¨⊢) ∾¨) 𝕩
}
hlcl‿hlch ← <˘ ⍉ ∘‿2⥊⟨