whiteout: better brackets in mathtext

pull/932/head
nick black 4 years ago committed by Nick Black
parent ed0d9d8a8e
commit 83b0f8c238

@ -26,15 +26,15 @@ mathplane(struct notcurses* nc){
ncplane_set_fg(n, 0xd4af37); // metallic gold
ncplane_set_bg(n, 0x0);
if(n){
ncplane_printf_aligned(n, 0, NCALIGN_RIGHT, "∮E⋅da=Q,n→∞,∑f(i)=∏g(i)⎧⎡⎛ ⎞⎤⎫");
ncplane_printf_aligned(n, 1, NCALIGN_RIGHT, "⎪⎢⎜ 8πG ⎟⎥");
ncplane_printf_aligned(n, 2, NCALIGN_RIGHT, "∀x∈:⌈x⌉=x⌋,α∧¬β=¬(¬α∨β)⎪⎢⎜ ───Tμν⎟⎥⎪");
ncplane_printf_aligned(n, 3, NCALIGN_RIGHT, "⎪⎢⎜ c⁴ ⎟⎥⎪");
ncplane_printf_aligned(n, 4, NCALIGN_RIGHT, "ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ(z̄=(z)(z)⋅𝑖)⎨⎢⎜ ⎟⎥");
ncplane_printf_aligned(n, 5, NCALIGN_RIGHT, "⎪⎢⎜ ∞ ⎟⎥⎪");
ncplane_printf_aligned(n, 6, NCALIGN_RIGHT, "⊥<a≠b≡c≤d≪⇒(⟦A⟧⇔⟪B⟫)⎪⎢⎜ ⎲ ⎟⎥⎪");
ncplane_printf_aligned(n, 7, NCALIGN_RIGHT, "⎪⎢⎜ ⎳aⁱ-bⁱ⎟⎥⎪");
ncplane_printf_aligned(n, 8, NCALIGN_RIGHT, "2H₂+O₂⇌2H₂O,R=4.7kΩ,⌀200µm⎩⎣⎝i=1 ⎠⎦⎭");
ncplane_printf_aligned(n, 0, NCALIGN_RIGHT, "∮E⋅da=Q,n→∞,∑f(i)=∏g(i)╭╭╭ ╮╮╮");
ncplane_printf_aligned(n, 1, NCALIGN_RIGHT, "│││ 8πG ││");
ncplane_printf_aligned(n, 2, NCALIGN_RIGHT, "∀x∈:⌈x⌉=x⌋,α∧¬β=¬(¬α∨β)│││ ───Tμν│││");
ncplane_printf_aligned(n, 3, NCALIGN_RIGHT, "│││ c⁴ │││");
ncplane_printf_aligned(n, 4, NCALIGN_RIGHT, "ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ(z̄=(z)(z)⋅𝑖)⎨││ ││");
ncplane_printf_aligned(n, 5, NCALIGN_RIGHT, "│││ ∞ │││");
ncplane_printf_aligned(n, 6, NCALIGN_RIGHT, "⊥<a≠b≡c≤d≪⇒(⟦A⟧⇔⟪B⟫)│││ ⎲ │││");
ncplane_printf_aligned(n, 7, NCALIGN_RIGHT, "│││ ⎳aⁱ-bⁱ│││");
ncplane_printf_aligned(n, 8, NCALIGN_RIGHT, "2H₂+O₂⇌2H₂O,R=4.7kΩ,⌀200µm╰╰╰i=1 ╯╯╯");
}
return n;
}

@ -151,20 +151,21 @@ cellcmp_and_dupfar(egcpool* dampool, cell* damcell,
}
// Extracellular state for a cell during the render process. This array is
// passed along to rasterization, which uses only the 'damaged' bools.
// passed along to rasterization, which uses only the 'damaged' bools. There
// is one crender per rendered cell, and they are initialized to all zeroes.
struct crender {
const ncplane *p;
unsigned fgblends;
unsigned bgblends;
bool damaged; // also used in rasterization
// if CELL_ALPHA_HIGHCONTRAST is in play, we apply the HSV flip once the
// background is locked in. set highcontrast to indicate this.
bool highcontrast;
// we'll need recalculate the foreground relative to the solved background,
// and then reapply any foreground shading from above the highcontrast
// declaration. save the foreground state when we go highcontrast.
unsigned hcfgblends; // number of foreground blends prior to HIGHCONTRAST
uint32_t hcfg; // foreground channel prior to HIGHCONTRAST
bool damaged; // also used in rasterization
// if CELL_ALPHA_HIGHCONTRAST is in play, we apply the HSV flip once the
// background is locked in. set highcontrast to indicate this.
bool highcontrast;
};
// Emit fchannel with RGB changed to contrast effectively against bchannel.

Loading…
Cancel
Save