多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[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)