html - 什么是 CSS 中的 flood-color 和 lighting-color 定义?

标签 html css svg-filters

太棒了,我刚刚意识到 CSS 中有一种叫做 flood-colorlighting-color 的东西。有谁知道什么是 flood-colorlighting-color 以及它们的作用?

这些到底是什么意思?:

The ‘flood-color’ property indicates what color to use to flood the current filter primitive subregion. The keyword currentColor and ICC colors can be specified in the same manner as within a specification for the ‘fill’ and ‘stroke’ properties.

The ‘lighting-color’ property defines the color of the light source for filter primitives ‘feDiffuseLighting’ and ‘feSpecularLighting’.

我们如何应用这些所谓的 SVG 效果?我试过将灯光颜色设置为红色,但似乎没有任何效果。

最佳答案

这些是 SVG 滤镜效果。

The ‘lighting-color’ property defines the color of the light source for filter primitives ‘feDiffuseLighting’ and ‘feSpecularLighting’.

http://www.w3.org/TR/SVG/filters.html#LightingColorProperty

The ‘flood-opacity’ property defines the opacity value to use across the entire filter primitive subregion.

http://www.w3.org/TR/SVG/filters.html#FloodColorProperty

关于html - 什么是 CSS 中的 flood-color 和 lighting-color 定义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6982380/

相关文章:

javascript - 移动 View 中的 slider ,显示下一张图像的一半

html - YouTube 如何将长视频流式传输到移动设备

css - div 定位不当

css - 使用 AngularJS 动画动态高度

jquery - 添加 id 以链接到类

javascript - 需要增加圆的高度和宽度

html - 如何防止过渡动画运行页面加载

SVG 阴影被截断

html - Firefox 的模糊效果滤镜

javascript - D3 中的 svg 亮度滤镜