- Create a Motion Canvas project.
- Run
npm install --save mathjax-full
- Add the script
tex.ts
below somewhere - Do something like the following:
export default makeScene2D(function* (view) {
const tex = texToBase64SVG('{\\color{white} x = \\sin \\left( \\frac{\\pi}{2} \\right) }');
const image = createRef<Image>();
view.add(<Layout x={0}><Image ref={image} src={tex} width={200}></Image></Layout>);
yield* waitUntil("fadeOut");
yield image.value.alpha(0, 0.3);
});