🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[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)