Note
The current next branch is implementing the new proposal API for production use. Please refer to the main branch for the current release.
The JavaScript library for generative art based on SVG.
import * as cm from "charmingjs";
const SVG = cm.SVG;
const app = cm.render({
width: 100,
height: 100,
draw: [
SVG.rect({x: 0, y: 0, width: 100, height: 100, fill: "black"}),
SVG.circle({cx: 50, cy: 50, r: 40, fill: "white"}),
],
});
document.body.append(app.node());
- Documentation - https://charmingjs.org/
- Features - https://charmingjs.org/what-is-charming
MIT@Bairui SU