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

分量传递

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

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

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

预期结果与验证条件观察提示
  • identity、table、linear、gamma四种分量传递分别呈现

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

附件与关联工程包下载

下载课程关联工程包:SVG

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

搜索教程、工具与资讯

热门搜索

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

欢迎登录蓝色天空网

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