<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功能;实际版本另记 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程
运行环境:Edge本地HTTP;SVG1.1知识与现代基础SVG功能;实际版本另记
入口文件:projects/svg-lab/cases/filter_4.svg
预期结果与验证条件观察提示
- 按原透明度裁切光照
请结合实际环境逐项观察。
附件与关联工程包下载
课程关联工程包(登记关联21章) · 含当前章节或实例 · mbskycom202611a533.zip