Skip to content

ChloeYanYan/charming

 
 

Repository files navigation

Charming

logo

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 node = 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(node);

Resources 📚

License 📄

MIT@Bairui SU

About

Bring art and dynamics to SVG and HTML.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%