蓝色天空.知识 · 实践 · 创造
我的收藏
在线代码实验室

膨胀滤镜

XMLEdge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记femorphology.svg
femorphology.svg1 行
<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功能;实际版本另记 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程

运行环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记

入口文件:projects/svg-lab/cases/femorphology.svg

预期结果与验证条件观察提示
  • erode与dilate各半径1、3、4六分支

请结合实际环境逐项观察。

附件与关联工程包下载

下载课程关联工程包:SVG

课程关联工程包(登记关联21章) · 含当前章节或实例 · mbskycom202611a533.zip
SITE SEARCH

搜索教程、工具与资讯

热门搜索

JavaScriptJSON格式化正则表达式AI 编程AI 翻译AI导航专题标签
Esc 关闭

欢迎登录蓝色天空网

使用会员账号,继续你的学习