NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
[TOC] [https://snapsvg.io/start/](https://snapsvg.io/start/) ## 实例 ``` // First lets create our drawing surface out of existing SVG element // If you want to create new surface just provide dimensions // like s = Snap(800, 600); var s = Snap("#svg"); // Lets create big circle in the middle: var bigCircle = s.circle(150, 150, 100); // By default its black, lets change its attributes bigCircle.attr({ fill: "#bada55", stroke: "#000", strokeWidth: 5 }); ``` ![](https://img.kancloud.cn/ea/22/ea2291563f68182cf620fa44c86e46fe_226x223.png)