SVG 实例集:形状、滤镜、渐变与动画
按独立文件保留可观察的实例目标,并区分已知组合、待核对目标和浏览器实际行为。
学完这一章,你能够
- 按独立文件保留可观察的实例目标,并区分已知组合、待核对目标和浏览器实际行为。
- 按独立文件保留可观察的实例目标,并区分已知组合、待核对目标和浏览器实际行为。
基础图形与文字完整对应
实例集包含圆、四种矩形、三种椭圆、直线、三角形、四边形、两种星形、两条折线、两种路径、五种文字及四组描边。每个入口指向自己的SVG文件,不把所有尝试入口改成同一份默认代码。
几何、透明度、填充规则、控制点、文字路径与描边端帽分别有明确条件。图形文件使用本站内容和品牌,源码与下载关系保留;列表数量不作为语义已经完整通过的证据。
组合滤镜不能只给名称
混合实例分别呈现normal/multiply/screen/darken/lighten;颜色矩阵保留identity矩阵、saturate、hueRotate和luminanceToAlpha;组件传递保留identity/table/linear/gamma。形态学分别呈现erode与dilate在半径1/3/4的六分支。
双偏移着色合并保留两层不同透明度阴影,再合成原图。光照组合阶段依次观察镜面光照、按alpha裁切、算术合成原图及合并偏移阴影。未取得有效技术目标的组合另列待核对,不能以任意相似效果冒充已补齐。
渐变与六种动画目标
三种线性及两种径向渐变各有独立文件。动画包含五秒重复淡出、矩形尺寸及颜色、三个不同起始时刻的颜色、路径文字运动、路径运动加旋转缩放,以及再加矩形尺寸颜色的组合。
声明式动画通过实际时间取样观察,既看0秒也看中间时刻;只有标签或静态截图不能证明运动。生产界面应考虑减少动态偏好,但显式教学动画的演示条件不能被无说明删掉。
观察与剩余范围
gallery.html 是本站自有实例索引,除前述目标还加入响应式、组合、双方向模糊和便利投影示例。独立图形的正常渲染、像素变化、动画时间及嵌入资源分别记录,不自动声称所有浏览器一致。
本批仍保留完整来源事实复核、缺图、编辑器界面观察及个别未知组合的待办。用户无需逐章帮忙指出遗漏,后续继续按固定队列和证据检查,不擅自发布草稿。
有明确目标的独立实例
| 实例文件 | 目标 | 类型 |
|---|---|---|
| cases/circle.svg | 圆心90/90,半径50,红色填充及黑色描边 | circle |
| cases/rect.svg | 矩形位置25/30、宽220高100 | rect |
| cases/rect2.svg | fill-opacity=.15、stroke-opacity=.9分别生效 | rect |
| cases/rect3.svg | 整体opacity=.5同时影响填充和描边 | rect |
| cases/rect4.svg | 水平24、垂直12的椭圆角 | rect |
| cases/ellipse.svg | rx110与ry45两个半径 | ellipse |
| cases/ellipse2.svg | 后绘制图形覆盖前面重叠部分 | ellipse |
| cases/ellipse3.svg | 白色覆盖而非真正透明裁洞 | ellipse |
| cases/line.svg | 起点30/35、终点250/165,描边显示线段 | line |
| cases/polygon.svg | 三点自动闭合形成三条边 | polygon |
| cases/polygon2.svg | 四点按顺序连接并闭合 | polygon |
| cases/polygon3.svg | 同一自交路径按nonzero决定中心填充 | polygon |
| cases/polygon4.svg | 同一自交路径按evenodd决定中心填充 | polygon |
| cases/polyline.svg | 连接相邻点但描边不自动闭合 | polyline |
| cases/polyline2.svg | 折线填充按隐式闭合区域解释,描边仍开放 | polyline |
| cases/path.svg | M移动、L连线、Z闭合 | path |
| cases/path2.svg | 控制点150/20影响曲线但通常不在曲线上 | path |
| cases/text.svg | x/y定位文字基线锚点,不是文字左上角 | text |
| cases/text2.svg | rotate25围绕25/70旋转 | text |
| cases/text3.svg | textPath引用真实存在的弧线路径 | text |
| cases/text4.svg | tspan逐行设置x/y,不依赖HTML自动换行 | text |
| cases/text5.svg | 现代href与历史xlink写法指向同一个自有本地目标 | text |
| cases/stroke0.svg | 红蓝黑三条描边 | stroke |
| cases/stroke.svg | 宽度2/5/9三条路径 | stroke |
| cases/stroke2.svg | butt不延长,round/square端点外各延半个描边宽 | stroke |
| cases/stroke3.svg | 不同dash/gap列表形成不同节奏 | stroke |
| cases/fegaussianblur.svg | stdDeviation7,扩大滤镜区域避免裁切 | fegaussianblur |
| cases/feoffset.svg | 原图与偏移图同时存在 | feoffset |
| cases/feoffset2.svg | 保留原图及彩色模糊偏移 | feoffset |
| cases/feoffset3.svg | 用SourceAlpha产生黑色阴影并保留原图 | feoffset |
| cases/feoffset4.svg | RGB乘.2保留alpha,不是任意颜色变成纯黑 | feoffset |
| cases/feblend.svg | 五种混合模式逐项比较;用显式输入替代历史BackgroundImage依赖 | examples |
| cases/fecolormatrix.svg | matrix、saturate、hueRotate及luminanceToAlpha四分支 | examples |
| cases/fecomponenttransfer.svg | identity、table、linear、gamma四种分量传递分别呈现 | examples |
| cases/femerge.svg | 两个独立偏移与不同透明着色,经composite和merge保留原图 | examples |
| cases/femorphology.svg | erode与dilate各半径1、3、4六分支 | examples |
| cases/filter_3.svg | 仅镜面光照 | examples |
| cases/filter_4.svg | 按原透明度裁切光照 | examples |
| cases/filter_5.svg | 原图与光照算术合成 | examples |
| cases/filter_6.svg | 合并偏移阴影与受光原图 | examples |
| cases/linear.svg | 渐变起终点及stop控制水平颜色分布 | grad-linear |
| cases/linear2.svg | 渐变起终点及stop控制垂直颜色分布 | grad-linear |
| cases/linear3.svg | 渐变起终点及stop控制水平加文字颜色分布 | grad-linear |
| cases/radial.svg | 中心、焦点与半径及透明stop分别影响颜色 | grad-radial |
| cases/radial2.svg | 中心、焦点与半径及透明stop分别影响颜色 | grad-radial |
| cases/animate.svg | 0秒不透明、2.5秒约半透明,每5秒重复 | examples |
| cases/animate2.svg | 2.5秒width160且颜色插值 | examples |
| cases/animatecolor.svg | 三个不同起始时刻的颜色动画 | examples |
| cases/animatemotion.svg | 路径运动 | examples |
| cases/animatemotion2.svg | 路径运动加旋转/缩放 | examples |
| cases/animatemotion3.svg | 路径运动加旋转/缩放及矩形尺寸颜色 | examples |
| cases/first-circle.svg | 基础圆形与XML命名空间 | tutorial |
| cases/responsive.svg | viewBox保留用户坐标,显示尺寸变化由CTM转换 | intro |
| cases/composition.svg | 图形按文档顺序绘制并用text-anchor居中文字 | example |
| cases/blur-two-values.svg | stdDeviation12 2分别控制横纵标准差 | filters-intro |
| cases/drop-shadow.svg | feDropShadow同时保留原图并构造有色投影 | feoffset |
组合实例分支
| 系列 | 必须保留的分支 | 当前范围 |
|---|---|---|
| blend | normal/multiply/screen/darken/lighten | 明确自有输入,非BackgroundImage旧实现 |
| color matrix | matrix/saturate/hueRotate/luminanceToAlpha | 四分支 |
| component | identity/table/linear/gamma | 四分支 |
| morphology | erode/dilate各1/3/4 | 六分支 |
| merge | 两层不同alpha偏移及原图 | 三路合并 |
| lighting | 光照/裁切/算术/合并 | 四阶段 |
| 动画 | 淡出/尺寸颜色/三矩形/运动/旋转缩放/组合 | 六独立文件 |
| 未知组合 | 尚无有效技术证据 | 内部单独待核对,不宣称补全 |
本章独立核心源码与验证步骤
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><title>蓝色天空网 SVG 实例</title><style>body{font:18px system-ui;color:#172b4d;margin:28px}main{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:24px}article{border:1px solid #dce4ee;border-radius:12px;padding:16px}img{max-width:100%;height:auto}</style><h1>在图形中理解 SVG</h1><p>蓝色天空网 · 每个文件有独立代码和学习目标。动画可打开文件单独观察。</p><main><article><h2>圆形与边框</h2><a href="cases/circle.svg"><img src="cases/circle.svg" alt="圆心90/90,半径50,红色填充及黑色描边"></a><p>圆心90/90,半径50,红色填充及黑色描边</p><a download href="cases/circle.svg">下载独立SVG</a></article><article><h2>矩形</h2><a href="cases/rect.svg"><img src="cases/rect.svg" alt="矩形位置25/30、宽220高100"></a><p>矩形位置25/30、宽220高100</p><a download href="cases/rect.svg">下载独立SVG</a></article><article><h2>填充与描边分别透明</h2><a href="cases/rect2.svg"><img src="cases/rect2.svg" alt="fill-opacity=.15、stroke-opacity=.9分别生效"></a><p>fill-opacity=.15、stroke-opacity=.9分别生效</p><a download href="cases/rect2.svg">下载独立SVG</a></article><article><h2>整体透明</h2><a href="cases/rect3.svg"><img src="cases/rect3.svg" alt="整体opacity=.5同时影响填充和描边"></a><p>整体opacity=.5同时影响填充和描边</p><a download href="cases/rect3.svg">下载独立SVG</a></article><article><h2>圆角矩形</h2><a href="cases/rect4.svg"><img src="cases/rect4.svg" alt="水平24、垂直12的椭圆角"></a><p>水平24、垂直12的椭圆角</p><a download href="cases/rect4.svg">下载独立SVG</a></article><article><h2>椭圆</h2><a href="cases/ellipse.svg"><img src="cases/ellipse.svg" alt="rx110与ry45两个半径"></a><p>rx110与ry45两个半径</p><a download href="cases/ellipse.svg">下载独立SVG</a></article><article><h2>三个椭圆的绘制顺序</h2><a href="cases/ellipse2.svg"><img src="cases/ellipse2.svg" alt="后绘制图形覆盖前面重叠部分"></a><p>后绘制图形覆盖前面重叠部分</p><a download href="cases/ellipse2.svg">下载独立SVG</a></article><article><h2>两个椭圆叠出环状区域</h2><a href="cases/ellipse3.svg"><img src="cases/ellipse3.svg" alt="白色覆盖而非真正透明裁洞"></a><p>白色覆盖而非真正透明裁洞</p><a download href="cases/ellipse3.svg">下载独立SVG</a></article><article><h2>指定两端的直线</h2><a href="cases/line.svg"><img src="cases/line.svg" alt="起点30/35、终点250/165,描边显示线段"></a><p>起点30/35、终点250/165,描边显示线段</p><a download href="cases/line.svg">下载独立SVG</a></article><article><h2>闭合三角形</h2><a href="cases/polygon.svg"><img src="cases/polygon.svg" alt="三点自动闭合形成三条边"></a><p>三点自动闭合形成三条边</p><a download href="cases/polygon.svg">下载独立SVG</a></article><article><h2>闭合四边形</h2><a href="cases/polygon2.svg"><img src="cases/polygon2.svg" alt="四点按顺序连接并闭合"></a><p>四点按顺序连接并闭合</p><a download href="cases/polygon2.svg">下载独立SVG</a></article><article><h2>星形填充规则 nonzero</h2><a href="cases/polygon3.svg"><img src="cases/polygon3.svg" alt="同一自交路径按nonzero决定中心填充"></a><p>同一自交路径按nonzero决定中心填充</p><a download href="cases/polygon3.svg">下载独立SVG</a></article><article><h2>星形填充规则 evenodd</h2><a href="cases/polygon4.svg"><img src="cases/polygon4.svg" alt="同一自交路径按evenodd决定中心填充"></a><p>同一自交路径按evenodd决定中心填充</p><a download href="cases/polygon4.svg">下载独立SVG</a></article><article><h2>开放折线</h2><a href="cases/polyline.svg"><img src="cases/polyline.svg" alt="连接相邻点但描边不自动闭合"></a><p>连接相邻点但描边不自动闭合</p><a download href="cases/polyline.svg">下载独立SVG</a></article><article><h2>阶梯折线及填充</h2><a href="cases/polyline2.svg"><img src="cases/polyline2.svg" alt="折线填充按隐式闭合区域解释,描边仍开放"></a><p>折线填充按隐式闭合区域解释,描边仍开放</p><a download href="cases/polyline2.svg">下载独立SVG</a></article><article><h2>闭合路径</h2><a href="cases/path.svg"><img src="cases/path.svg" alt="M移动、L连线、Z闭合"></a><p>M移动、L连线、Z闭合</p><a download href="cases/path.svg">下载独立SVG</a></article><article><h2>二次贝塞尔与控制线</h2><a href="cases/path2.svg"><img src="cases/path2.svg" alt="控制点150/20影响曲线但通常不在曲线上"></a><p>控制点150/20影响曲线但通常不在曲线上</p><a download href="cases/path2.svg">下载独立SVG</a></article><article><h2>文字基线</h2><a href="cases/text.svg"><img src="cases/text.svg" alt="x/y定位文字基线锚点,不是文字左上角"></a><p>x/y定位文字基线锚点,不是文字左上角</p><a download href="cases/text.svg">下载独立SVG</a></article><article><h2>围绕指定点旋转文字</h2><a href="cases/text2.svg"><img src="cases/text2.svg" alt="rotate25围绕25/70旋转"></a><p>rotate25围绕25/70旋转</p><a download href="cases/text2.svg">下载独立SVG</a></article><article><h2>路径上的文字</h2><a href="cases/text3.svg"><img src="cases/text3.svg" alt="textPath引用真实存在的弧线路径"></a><p>textPath引用真实存在的弧线路径</p><a download href="cases/text3.svg">下载独立SVG</a></article><article><h2>多行tspan</h2><a href="cases/text4.svg"><img src="cases/text4.svg" alt="tspan逐行设置x/y,不依赖HTML自动换行"></a><p>tspan逐行设置x/y,不依赖HTML自动换行</p><a download href="cases/text4.svg">下载独立SVG</a></article><article><h2>SVG文字链接</h2><a href="cases/text5.svg"><img src="cases/text5.svg" alt="现代href与历史xlink写法指向同一个自有本地目标"></a><p>现代href与历史xlink写法指向同一个自有本地目标</p><a download href="cases/text5.svg">下载独立SVG</a></article><article><h2>描边颜色</h2><a href="cases/stroke0.svg"><img src="cases/stroke0.svg" alt="红蓝黑三条描边"></a><p>红蓝黑三条描边</p><a download href="cases/stroke0.svg">下载独立SVG</a></article><article><h2>描边宽度</h2><a href="cases/stroke.svg"><img src="cases/stroke.svg" alt="宽度2/5/9三条路径"></a><p>宽度2/5/9三条路径</p><a download href="cases/stroke.svg">下载独立SVG</a></article><article><h2>三个端帽</h2><a href="cases/stroke2.svg"><img src="cases/stroke2.svg" alt="butt不延长,round/square端点外各延半个描边宽"></a><p>butt不延长,round/square端点外各延半个描边宽</p><a download href="cases/stroke2.svg">下载独立SVG</a></article><article><h2>三种虚线</h2><a href="cases/stroke3.svg"><img src="cases/stroke3.svg" alt="不同dash/gap列表形成不同节奏"></a><p>不同dash/gap列表形成不同节奏</p><a download href="cases/stroke3.svg">下载独立SVG</a></article><article><h2>高斯模糊</h2><a href="cases/fegaussianblur.svg"><img src="cases/fegaussianblur.svg" alt="stdDeviation7,扩大滤镜区域避免裁切"></a><p>stdDeviation7,扩大滤镜区域避免裁切</p><a download href="cases/fegaussianblur.svg">下载独立SVG</a></article><article><h2>偏移并与原图混合</h2><a href="cases/feoffset.svg"><img src="cases/feoffset.svg" alt="原图与偏移图同时存在"></a><p>原图与偏移图同时存在</p><a download href="cases/feoffset.svg">下载独立SVG</a></article><article><h2>偏移后模糊</h2><a href="cases/feoffset2.svg"><img src="cases/feoffset2.svg" alt="保留原图及彩色模糊偏移"></a><p>保留原图及彩色模糊偏移</p><a download href="cases/feoffset2.svg">下载独立SVG</a></article><article><h2>透明度通道阴影</h2><a href="cases/feoffset3.svg"><img src="cases/feoffset3.svg" alt="用SourceAlpha产生黑色阴影并保留原图"></a><p>用SourceAlpha产生黑色阴影并保留原图</p><a download href="cases/feoffset3.svg">下载独立SVG</a></article><article><h2>矩阵暗化彩色偏移</h2><a href="cases/feoffset4.svg"><img src="cases/feoffset4.svg" alt="RGB乘.2保留alpha,不是任意颜色变成纯黑"></a><p>RGB乘.2保留alpha,不是任意颜色变成纯黑</p><a download href="cases/feoffset4.svg">下载独立SVG</a></article><article><h2>两路图像混合</h2><a href="cases/feblend.svg"><img src="cases/feblend.svg" alt="五种混合模式逐项比较;用显式输入替代历史BackgroundImage依赖"></a><p>五种混合模式逐项比较;用显式输入替代历史BackgroundImage依赖</p><a download href="cases/feblend.svg">下载独立SVG</a></article><article><h2>颜色矩阵去饱和</h2><a href="cases/fecolormatrix.svg"><img src="cases/fecolormatrix.svg" alt="matrix、saturate、hueRotate及luminanceToAlpha四分支"></a><p>matrix、saturate、hueRotate及luminanceToAlpha四分支</p><a download href="cases/fecolormatrix.svg">下载独立SVG</a></article><article><h2>分量传递</h2><a href="cases/fecomponenttransfer.svg"><img src="cases/fecomponenttransfer.svg" alt="identity、table、linear、gamma四种分量传递分别呈现"></a><p>identity、table、linear、gamma四种分量传递分别呈现</p><a download href="cases/fecomponenttransfer.svg">下载独立SVG</a></article><article><h2>着色阴影合并</h2><a href="cases/femerge.svg"><img src="cases/femerge.svg" alt="两个独立偏移与不同透明着色,经composite和merge保留原图"></a><p>两个独立偏移与不同透明着色,经composite和merge保留原图</p><a download href="cases/femerge.svg">下载独立SVG</a></article><article><h2>膨胀滤镜</h2><a href="cases/femorphology.svg"><img src="cases/femorphology.svg" alt="erode与dilate各半径1、3、4六分支"></a><p>erode与dilate各半径1、3、4六分支</p><a download href="cases/femorphology.svg">下载独立SVG</a></article><article><h2>光照组合阶段3</h2><a href="cases/filter_3.svg"><img src="cases/filter_3.svg" alt="仅镜面光照"></a><p>仅镜面光照</p><a download href="cases/filter_3.svg">下载独立SVG</a></article><article><h2>光照组合阶段4</h2><a href="cases/filter_4.svg"><img src="cases/filter_4.svg" alt="按原透明度裁切光照"></a><p>按原透明度裁切光照</p><a download href="cases/filter_4.svg">下载独立SVG</a></article><article><h2>光照组合阶段5</h2><a href="cases/filter_5.svg"><img src="cases/filter_5.svg" alt="原图与光照算术合成"></a><p>原图与光照算术合成</p><a download href="cases/filter_5.svg">下载独立SVG</a></article><article><h2>光照组合阶段6</h2><a href="cases/filter_6.svg"><img src="cases/filter_6.svg" alt="合并偏移阴影与受光原图"></a><p>合并偏移阴影与受光原图</p><a download href="cases/filter_6.svg">下载独立SVG</a></article><article><h2>水平线性渐变</h2><a href="cases/linear.svg"><img src="cases/linear.svg" alt="渐变起终点及stop控制水平颜色分布"></a><p>渐变起终点及stop控制水平颜色分布</p><a download href="cases/linear.svg">下载独立SVG</a></article><article><h2>垂直线性渐变</h2><a href="cases/linear2.svg"><img src="cases/linear2.svg" alt="渐变起终点及stop控制垂直颜色分布"></a><p>渐变起终点及stop控制垂直颜色分布</p><a download href="cases/linear2.svg">下载独立SVG</a></article><article><h2>水平加文字线性渐变</h2><a href="cases/linear3.svg"><img src="cases/linear3.svg" alt="渐变起终点及stop控制水平加文字颜色分布"></a><p>渐变起终点及stop控制水平加文字颜色分布</p><a download href="cases/linear3.svg">下载独立SVG</a></article><article><h2>径向渐变 radial</h2><a href="cases/radial.svg"><img src="cases/radial.svg" alt="中心、焦点与半径及透明stop分别影响颜色"></a><p>中心、焦点与半径及透明stop分别影响颜色</p><a download href="cases/radial.svg">下载独立SVG</a></article><article><h2>径向渐变 radial2</h2><a href="cases/radial2.svg"><img src="cases/radial2.svg" alt="中心、焦点与半径及透明stop分别影响颜色"></a><p>中心、焦点与半径及透明stop分别影响颜色</p><a download href="cases/radial2.svg">下载独立SVG</a></article><article><h2>五秒重复淡出</h2><a href="cases/animate.svg"><img src="cases/animate.svg" alt="0秒不透明、2.5秒约半透明,每5秒重复"></a><p>0秒不透明、2.5秒约半透明,每5秒重复</p><a download href="cases/animate.svg">下载独立SVG</a></article><article><h2>尺寸与颜色同步变化</h2><a href="cases/animate2.svg"><img src="cases/animate2.svg" alt="2.5秒width160且颜色插值"></a><p>2.5秒width160且颜色插值</p><a download href="cases/animate2.svg">下载独立SVG</a></article><article><h2>三个矩形颜色变化</h2><a href="cases/animatecolor.svg"><img src="cases/animatecolor.svg" alt="三个不同起始时刻的颜色动画"></a><p>三个不同起始时刻的颜色动画</p><a download href="cases/animatecolor.svg">下载独立SVG</a></article><article><h2>沿路径运动 animatemotion</h2><a href="cases/animatemotion.svg"><img src="cases/animatemotion.svg" alt="路径运动"></a><p>路径运动</p><a download href="cases/animatemotion.svg">下载独立SVG</a></article><article><h2>沿路径运动 animatemotion2</h2><a href="cases/animatemotion2.svg"><img src="cases/animatemotion2.svg" alt="路径运动加旋转/缩放"></a><p>路径运动加旋转/缩放</p><a download href="cases/animatemotion2.svg">下载独立SVG</a></article><article><h2>沿路径运动 animatemotion3</h2><a href="cases/animatemotion3.svg"><img src="cases/animatemotion3.svg" alt="路径运动加旋转/缩放及矩形尺寸颜色"></a><p>路径运动加旋转/缩放及矩形尺寸颜色</p><a download href="cases/animatemotion3.svg">下载独立SVG</a></article><article><h2>第一个SVG</h2><a href="cases/first-circle.svg"><img src="cases/first-circle.svg" alt="基础圆形与XML命名空间"></a><p>基础圆形与XML命名空间</p><a download href="cases/first-circle.svg">下载独立SVG</a></article><article><h2>响应式视口</h2><a href="cases/responsive.svg"><img src="cases/responsive.svg" alt="viewBox保留用户坐标,显示尺寸变化由CTM转换"></a><p>viewBox保留用户坐标,显示尺寸变化由CTM转换</p><a download href="cases/responsive.svg">下载独立SVG</a></article><article><h2>矩形圆与文字组合</h2><a href="cases/composition.svg"><img src="cases/composition.svg" alt="图形按文档顺序绘制并用text-anchor居中文字"></a><p>图形按文档顺序绘制并用text-anchor居中文字</p><a download href="cases/composition.svg">下载独立SVG</a></article><article><h2>双方向模糊</h2><a href="cases/blur-two-values.svg"><img src="cases/blur-two-values.svg" alt="stdDeviation12 2分别控制横纵标准差"></a><p>stdDeviation12 2分别控制横纵标准差</p><a download href="cases/blur-two-values.svg">下载独立SVG</a></article><article><h2>现代投影写法</h2><a href="cases/drop-shadow.svg"><img src="cases/drop-shadow.svg" alt="feDropShadow同时保留原图并构造有色投影"></a><p>feDropShadow同时保留原图并构造有色投影</p><a download href="cases/drop-shadow.svg">下载独立SVG</a></article></main></html>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:26d5701c9dddc65e665ed21ed6fe12fd58c060f1a049d026f2a1874385268b8d
- 按独立文件保留可观察的实例目标,并区分已知组合、待核对目标和浏览器实际行为。
两路图像混合
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="240" viewBox="0 0 320 240"><title>两路图像混合 · 蓝色天空网</title><desc>五种混合模式逐项比较;用显式输入替代历史BackgroundImage依赖</desc><defs><filter id="variant0" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feFlood flood-color="#888844" result="background"/><feBlend in="SourceGraphic" in2="background" mode="normal"/></filter><filter id="variant1" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feFlood flood-color="#888844" result="background"/><feBlend in="SourceGraphic" in2="background" mode="multiply"/></filter><filter id="variant2" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feFlood flood-color="#888844" result="background"/><feBlend in="SourceGraphic" in2="background" mode="screen"/></filter><filter id="variant3" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feFlood flood-color="#888844" result="background"/><feBlend in="SourceGraphic" in2="background" mode="darken"/></filter><filter id="variant4" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feFlood flood-color="#888844" result="background"/><feBlend in="SourceGraphic" in2="background" mode="lighten"/></filter><linearGradient id="source-colors"><stop offset="0" stop-color="red"/><stop offset=".4" stop-color="lime"/><stop offset=".7" stop-color="blue"/><stop offset="1" stop-color="white"/></linearGradient></defs><g id="subject"><text x="8" y="31" font-size="13">normal</text><rect x="145" y="12" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant0)"/><text x="8" y="62" font-size="13">multiply</text><rect x="145" y="43" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant1)"/><text x="8" y="93" font-size="13">screen</text><rect x="145" y="74" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant2)"/><text x="8" y="124" font-size="13">darken</text><rect x="145" y="105" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant3)"/><text x="8" y="155" font-size="13">lighten</text><rect x="145" y="136" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant4)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:8927ef7c2efe0cad2d740207661833674690beec975a48b4f5fe62887881422d
- 五种混合模式逐项比较;用显式输入替代历史BackgroundImage依赖
颜色矩阵去饱和
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="240" viewBox="0 0 320 240"><title>颜色矩阵去饱和 · 蓝色天空网</title><desc>matrix、saturate、hueRotate及luminanceToAlpha四分支</desc><defs><filter id="variant0" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/></filter><filter id="variant1" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feColorMatrix type="saturate" values=".4"/></filter><filter id="variant2" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feColorMatrix type="hueRotate" values="90"/></filter><filter id="variant3" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feColorMatrix type="luminanceToAlpha" result="alpha"/><feComposite in="SourceGraphic" in2="alpha" operator="in"/></filter><linearGradient id="source-colors"><stop offset="0" stop-color="red"/><stop offset=".4" stop-color="lime"/><stop offset=".7" stop-color="blue"/><stop offset="1" stop-color="white"/></linearGradient></defs><g id="subject"><text x="8" y="31" font-size="13">matrix identity</text><rect x="145" y="12" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant0)"/><text x="8" y="62" font-size="13">saturate .4</text><rect x="145" y="43" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant1)"/><text x="8" y="93" font-size="13">hueRotate 90</text><rect x="145" y="74" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant2)"/><text x="8" y="124" font-size="13">luminance alpha</text><rect x="145" y="105" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant3)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:867fd5e2f7cd28530c586cffc7bc0c5df8435c1f1818762cdf72a0f4e362ddba
- matrix、saturate、hueRotate及luminanceToAlpha四分支
分量传递
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="240" viewBox="0 0 320 240"><title>分量传递 · 蓝色天空网</title><desc>identity、table、linear、gamma四种分量传递分别呈现</desc><defs><filter id="variant0" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feComponentTransfer><feFuncR type="identity"/><feFuncG type="identity"/><feFuncB type="identity"/><feFuncA type="identity"/></feComponentTransfer></filter><filter id="variant1" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feComponentTransfer><feFuncR type="table" tableValues="0 0 1 1"/><feFuncG type="table" tableValues="1 1 0 0"/><feFuncB type="table" tableValues="0 1 1 0"/></feComponentTransfer></filter><filter id="variant2" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feComponentTransfer><feFuncR type="linear" slope=".5" intercept=".25"/><feFuncG type="linear" slope=".5"/><feFuncB type="linear" slope=".5" intercept=".5"/></feComponentTransfer></filter><filter id="variant3" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feComponentTransfer><feFuncR type="gamma" amplitude="2" exponent="5"/><feFuncG type="gamma" amplitude="2" exponent="3"/><feFuncB type="gamma" amplitude="2" exponent="1"/></feComponentTransfer></filter><linearGradient id="source-colors"><stop offset="0" stop-color="red"/><stop offset=".4" stop-color="lime"/><stop offset=".7" stop-color="blue"/><stop offset="1" stop-color="white"/></linearGradient></defs><g id="subject"><text x="8" y="31" font-size="13">identity</text><rect x="145" y="12" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant0)"/><text x="8" y="62" font-size="13">table</text><rect x="145" y="43" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant1)"/><text x="8" y="93" font-size="13">linear</text><rect x="145" y="74" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant2)"/><text x="8" y="124" font-size="13">gamma</text><rect x="145" y="105" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant3)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:a650e2081b236584a8e46af11ceebd617ba273a79477610b03f2e5f92b922235
- identity、table、linear、gamma四种分量传递分别呈现
着色阴影合并
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">着色阴影合并 · 蓝色天空网</title><desc id="desc">flood加composite按alpha着色,merge保留原图</desc><defs><filter id="effect" x="-40%" y="-40%" width="200%" height="220%"><feOffset in="SourceAlpha" dx="15" dy="18" result="off1"/><feFlood flood-color="purple" flood-opacity=".8" result="f1"/><feComposite in="f1" in2="off1" operator="in" result="c1"/><feOffset in="SourceAlpha" dx="30" dy="36" result="off2"/><feFlood flood-color="purple" flood-opacity=".4" result="f2"/><feComposite in="f2" in2="off2" operator="in" result="c2"/><feMerge><feMergeNode in="c2"/><feMergeNode in="c1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g id="subject"><rect id="shape" x="65" y="45" width="150" height="110" fill="#f44336" stroke="#1565c0" stroke-width="4" filter="url(#effect)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:9677afcd8f1ddecf15eb0772dd3cde557294343b17d8e6f4521e922b11533101
- 两个独立偏移与不同透明着色,经composite和merge保留原图
膨胀滤镜
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="240" viewBox="0 0 320 240"><title>膨胀滤镜 · 蓝色天空网</title><desc>erode与dilate各半径1、3、4六分支</desc><defs><filter id="variant0" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feMorphology operator="erode" radius="1"/></filter><filter id="variant1" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feMorphology operator="erode" radius="3"/></filter><filter id="variant2" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feMorphology operator="erode" radius="4"/></filter><filter id="variant3" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feMorphology operator="dilate" radius="1"/></filter><filter id="variant4" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feMorphology operator="dilate" radius="3"/></filter><filter id="variant5" x="-30%" y="-50%" width="180%" height="220%" color-interpolation-filters="sRGB"><feMorphology operator="dilate" radius="4"/></filter><linearGradient id="source-colors"><stop offset="0" stop-color="red"/><stop offset=".4" stop-color="lime"/><stop offset=".7" stop-color="blue"/><stop offset="1" stop-color="white"/></linearGradient></defs><g id="subject"><text x="8" y="31" font-size="13">erode 1</text><rect x="145" y="12" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant0)"/><text x="8" y="62" font-size="13">erode 3</text><rect x="145" y="43" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant1)"/><text x="8" y="93" font-size="13">erode 4</text><rect x="145" y="74" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant2)"/><text x="8" y="124" font-size="13">dilate 1</text><rect x="145" y="105" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant3)"/><text x="8" y="155" font-size="13">dilate 3</text><rect x="145" y="136" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant4)"/><text x="8" y="186" font-size="13">dilate 4</text><rect x="145" y="167" width="130" height="23" fill="url(#source-colors)" stroke="blue" stroke-width="2" filter="url(#variant5)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:25b70b20639239a461d37f3f5fc6c4fc02eedc8ef40067984aa64c91bfbe3ba9
- erode与dilate各半径1、3、4六分支
光照组合阶段3
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">光照组合阶段3 · 蓝色天空网</title><desc id="desc">仅镜面光照</desc><defs><filter id="effect" filterUnits="userSpaceOnUse" x="0" y="0" width="320" height="220" color-interpolation-filters="sRGB"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="10" dy="10" result="offsetBlur"/><feSpecularLighting in="blur" surfaceScale="8" specularConstant="1" specularExponent="8" lighting-color="#0066aa" result="spec"><fePointLight x="-200" y="-200" z="300"/></feSpecularLighting></filter></defs><g id="subject"><rect id="shape" x="65" y="45" width="150" height="110" fill="#f44336" stroke="#1565c0" stroke-width="4" filter="url(#effect)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:340c28b03ea8b095b7e898a4c3514d86f61615b4b299f3ccb65f239be23e769f
- 仅镜面光照
光照组合阶段4
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">光照组合阶段4 · 蓝色天空网</title><desc id="desc">按原透明度裁切光照</desc><defs><filter id="effect" filterUnits="userSpaceOnUse" x="0" y="0" width="320" height="220" color-interpolation-filters="sRGB"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="10" dy="10" result="offsetBlur"/><feSpecularLighting in="blur" surfaceScale="8" specularConstant="1" specularExponent="8" lighting-color="#0066aa" result="spec"><fePointLight x="-200" y="-200" z="300"/></feSpecularLighting><feComposite in="spec" in2="SourceAlpha" operator="in" result="masked"/></filter></defs><g id="subject"><rect id="shape" x="65" y="45" width="150" height="110" fill="#f44336" stroke="#1565c0" stroke-width="4" filter="url(#effect)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:0e5ef41e49ba24a9501caaad835c3062578f450afc2fa2fd04cd656f0aa65869
- 按原透明度裁切光照
光照组合阶段5
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">光照组合阶段5 · 蓝色天空网</title><desc id="desc">原图与光照算术合成</desc><defs><filter id="effect" filterUnits="userSpaceOnUse" x="0" y="0" width="320" height="220" color-interpolation-filters="sRGB"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="10" dy="10" result="offsetBlur"/><feSpecularLighting in="blur" surfaceScale="8" specularConstant="1" specularExponent="8" lighting-color="#0066aa" result="spec"><fePointLight x="-200" y="-200" z="300"/></feSpecularLighting><feComposite in="spec" in2="SourceAlpha" operator="in" result="masked"/><feComposite in="SourceGraphic" in2="masked" operator="arithmetic" k1="0" k2="1" k3="1" k4="0" result="lit"/></filter></defs><g id="subject"><rect id="shape" x="65" y="45" width="150" height="110" fill="#f44336" stroke="#1565c0" stroke-width="4" filter="url(#effect)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:671a68f0c2e8c36e26edd4fa1d9a27c9bce9e02ae672ee4f54737ade3fc0099a
- 原图与光照算术合成
光照组合阶段6
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">光照组合阶段6 · 蓝色天空网</title><desc id="desc">合并偏移阴影与受光原图</desc><defs><filter id="effect" filterUnits="userSpaceOnUse" x="0" y="0" width="320" height="220" color-interpolation-filters="sRGB"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="10" dy="10" result="offsetBlur"/><feSpecularLighting in="blur" surfaceScale="8" specularConstant="1" specularExponent="8" lighting-color="#0066aa" result="spec"><fePointLight x="-200" y="-200" z="300"/></feSpecularLighting><feComposite in="spec" in2="SourceAlpha" operator="in" result="masked"/><feComposite in="SourceGraphic" in2="masked" operator="arithmetic" k1="0" k2="1" k3="1" k4="0" result="lit"/><feMerge><feMergeNode in="offsetBlur"/><feMergeNode in="lit"/></feMerge></filter></defs><g id="subject"><rect id="shape" x="65" y="45" width="150" height="110" fill="#f44336" stroke="#1565c0" stroke-width="4" filter="url(#effect)"/></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:ee7ca78c03cf4e45753e8f0f97a67a2f902bb9c66e16daa6a447a85eb012c8ef
- 合并偏移阴影与受光原图
五秒重复淡出
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">五秒重复淡出 · 蓝色天空网</title><desc id="desc">0秒不透明、2.5秒约半透明,每5秒重复</desc><defs></defs><g id="subject"><rect id="animated" x="30" y="40" width="210" height="110" fill="blue"><animate attributeName="opacity" values="1;0" dur="5s" repeatCount="indefinite"/></rect></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:e7797f8356d89b2c6084e6ad02f26be034fca55dd66e95c34590bef72fe468c7
- 0秒不透明、2.5秒约半透明,每5秒重复
尺寸与颜色同步变化
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">尺寸与颜色同步变化 · 蓝色天空网</title><desc id="desc">2.5秒width160且颜色插值</desc><defs></defs><g id="subject"><rect id="animated" x="30" y="40" width="80" height="80" fill="blue"><animate attributeName="width" values="80;240" dur="5s" repeatCount="indefinite"/><animate attributeName="fill" values="blue;red" dur="5s" repeatCount="indefinite"/></rect></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:a737c2801a9e5c3d2723868e02c8780fe96334ee4b6af6e0533228f88850c847
- 2.5秒width160且颜色插值
三个矩形颜色变化
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">三个矩形颜色变化 · 蓝色天空网</title><desc id="desc">三个不同起始时刻的颜色动画</desc><defs></defs><g id="subject"><rect id="animated0" x="20" y="60" width="80" height="100" fill="blue"><animate attributeName="fill" values="blue;red;blue" dur="5s" begin="0.0s" repeatCount="indefinite"/></rect><rect id="animated1" x="120" y="60" width="80" height="100" fill="blue"><animate attributeName="fill" values="blue;red;blue" dur="5s" begin="0.25s" repeatCount="indefinite"/></rect><rect id="animated2" x="220" y="60" width="80" height="100" fill="blue"><animate attributeName="fill" values="blue;red;blue" dur="5s" begin="0.5s" repeatCount="indefinite"/></rect></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:d8725d025f42a1576b84b9d482cd0f00c5bc1779c6b8ac75535e71679fc8abed
- 三个不同起始时刻的颜色动画
沿路径运动 animatemotion
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">沿路径运动 animatemotion · 蓝色天空网</title><desc id="desc">路径运动</desc><defs></defs><g id="subject"><text id="animated" x="0" y="0" font-size="20" fill="blue">蓝天学习<animateMotion path="M40 160 Q150 20 230 150" dur="5s" rotate="0" repeatCount="indefinite"/></text></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:c68c31fa727b423143b63ad195449d6240216ecdad12d23c9ebb55c39d2b1ba4
- 路径运动
沿路径运动 animatemotion2
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">沿路径运动 animatemotion2 · 蓝色天空网</title><desc id="desc">路径运动加旋转/缩放</desc><defs></defs><g id="subject"><text id="animated" x="0" y="0" font-size="20" fill="blue">蓝天学习<animateMotion path="M40 160 Q150 20 230 150" dur="5s" rotate="auto" repeatCount="indefinite"/><animateTransform attributeName="transform" type="scale" values="1;1.4" dur="5s" repeatCount="indefinite" additive="sum"/></text></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:60697f178ba66b6ed6b4171ce2dbcdf8bc899724f08b009d654d11c3d62304ea
- 路径运动加旋转/缩放
沿路径运动 animatemotion3
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="320" height="240" viewBox="0 0 320 240" role="img" aria-labelledby="title desc" ><title id="title">沿路径运动 animatemotion3 · 蓝色天空网</title><desc id="desc">路径运动加旋转/缩放及矩形尺寸颜色</desc><defs></defs><g id="subject"><text id="animated" x="0" y="0" font-size="20" fill="blue">蓝天学习<animateMotion path="M40 160 Q150 20 230 150" dur="5s" rotate="auto" repeatCount="indefinite"/><animateTransform attributeName="transform" type="scale" values="1;1.4" dur="5s" repeatCount="indefinite" additive="sum"/></text><rect id="size-animation" x="30" y="170" width="60" height="20" fill="red"><animate attributeName="width" values="60;180" dur="5s" repeatCount="indefinite"/><animate attributeName="fill" values="red;yellow" dur="5s" repeatCount="indefinite"/></rect></g><text x="12" y="232" fill="#325b86" font-size="12">蓝色天空网 · mbsky.com</text></svg>所需环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
当前源码 SHA256:1badf4938ba1da575cd5f796b770874733bdc597ea47d2698da1e2088fb629c5
- 路径运动加旋转/缩放及矩形尺寸颜色
常见错误与边界
- 把正确的http命名空间误改为https。
- 仅看标签/数量就认定渲染或知识完整。
练习与解答
只改变本章一个坐标、样式或时间条件,先预测再观察;保留原始输入便于回退。
展开参考解答
逐项比较真实图形与对应源码,分开记录几何、像素及运行环境;未知条件继续待办。