Math formulas: TeX subset in pixel style, with write-on and morph animations #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Math formulas in the scenes, drawn in the daviz look (pixel glyphs, thick outlines, theme colors), and animated.
Syntax: a TeX subset, so formulas can be pasted from papers and Wikipedia:
Layout engine (
source/math/), our own and small, not a full TeX:\frac,\sqrt(and\sqrt[n]), sums, products and integrals with limits,\lim, brackets that grow with their content (\left( ... \right)), matrices and vectors (\begin{pmatrix}),\vec,\hat,\bar,\dot, text in formulas (\text{}), spacing (\,,\quad), aligned equations over several lines (&,\\).\pm \times \cdot \leq \geq \neq \approx \infty \partial \nabla \in \rightarrow ...).Font: a pixel font with Latin, digits, Greek and the math symbols in two sizes (normal and script for exponents and limits). Check the fonts from the theme issue (#3) cover them, or draw the missing glyphs.
Animation (every glyph and stroke is its own drawable element):
\color{2}{x}(series colors of the theme).Fallback (optional, later): for formulas the subset can't handle,
formula-tex "..."renders with an installed LaTeX (latex+dvipng) at canvas size, thresholds it to hard pixels and outlines it. It has no glyph animation, only whole-formula entries.Done when: a scene writes on the quadratic formula, the Gaussian integral and a 2x2 matrix, crisp at x1 and x3, highlights one term, and morphs
a^2 + b^2 = c^2intoc = \sqrt{a^2 + b^2}.The glyphs come from #20 (Monocraft-based bitmap font): Greek and most operators exist, the missing ones are drawn there. Needs a script-size font for exponents and limits.