💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[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)