101 releases (12 breaking)

new 0.13.27 Jan 14, 2025
0.13.10 Dec 30, 2024
0.13.0 Nov 30, 2024
0.9.0 Jul 31, 2024
0.5.4 Mar 28, 2024

#104 in WebAssembly

Download history 110/week @ 2024-09-24 6/week @ 2024-10-01 2/week @ 2024-10-08 1342/week @ 2024-11-12 790/week @ 2024-11-19 819/week @ 2024-11-26 486/week @ 2024-12-03 1082/week @ 2024-12-10 326/week @ 2024-12-17 662/week @ 2024-12-24 1581/week @ 2024-12-31 233/week @ 2025-01-07

2,877 downloads per month

MIT and AGPL-3.0-or-later

595KB
15K SLoC

MathLikeAnim-rs

MathLikeAnim-rs

This is an animation library written in Rust, widely inspired by Manim and, unlike Manim, it allows interactivity thanks to WebAssembly, JavaScript and the web.

Features

  • Interactivity.
  • Basic shapes.
  • Function plotting.
  • Animations in HTML Canvas and SVG.
  • Text rendering.
  • LaTeX rendering.
  • 3D rendering.
  • Browser support.
  • Python support.

How to install it?

If you want to start creating mathematical and interactive animations, you can install it by running:

npm i mathlikeanim-rs

How to use it in the browser?

You can embed the library in your HTML file by adding a script tag, and don't forget to include your HTML Canvas for raster animations or DIV container for SVG animations!

<script type="module">
    import initWasm from './node_modules/mathlikeanim-rs/index.js';

    initWasm().then((wasm) => {
        ...
    });
</script>

How to use it in Python?

You can use the Python package to create animations in the same way you would do with the Rust library. You can install it by running:

pip install mathlikeanim-rs

Development

If you want to contribute to this project, you can clone a fork of this repository and work with the Rust codebase.

By the moment we don't have any tests, so your contributions are welcome!

Documentation

You can find the documentation of this project in https://mathlikeanim-rs.vercel.app/.

Dependencies

~26MB
~415K SLoC