SeiyaCooper/Mraph.js
SeiyaCooper/Mraph.js has 39 GitHub stars and 0 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 11:24 UTC. Last push 2025-08-29.
✏️ Mraph.js is my poor rendering engine for graphing mathematical objects in a browser.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Mraph.js is my poor animation engine for drawing geometric shapes in a browser, inspired by manim
Github |
NPM |
Examples
Usage
Install with npm:
npm install --save mraph
or use yarn:
yarn add mraph
A short example:
Once you installed, try this example below.
import * as MRAPH from "mraph";
// Creates a new layer
const layer = new MRAPH.Layer().appendTo(document.body);
// Creates some points and sets their position
const pointsNum = 50;
const layersNum = 5;
const angleUnit = (Math.PI * 2) / pointsNum;
for (let j = 0; j < layersNum; j++) {
for (let i = 1; i <= pointsNum; i++) {
const point = new MRAPH.Point(Math.cos(angleUnit * i) * (3 + j * 2), Math.sin(angleUnit * i) * (3 + j * 2));
point.setColor(new MRAPH.Color(Math.random(), Math.random(), Math.random()));
layer.add(point);
}
}
// Sets an infinite event
// This event will remain perpetually active
layer.timeline.addInfinite(() => {
layer.scene.children.forEach((point, i, arr) => {
point.a = point.center.mult((-1 * i) / arr.length);
});
});
// Starts playing animation
layer.enableOrbitControl().enableRotate = false;
layer.play();
Input this code in your preferred text editor. If all proceeds as it should, you will observe a series of dots engaged in a, hmm..., rather peculiar dance.
Contribution
Feel free to contribute to this repo
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,500 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,840 starsmrdoob/three.js
JavaScript 3D Library.
117,905 stars