CSS中的泛光颜色和照明颜色定义是什么? [英] what's a flood-color and lighting-color definition in CSS?

查看:511
本文介绍了CSS中的泛光颜色和照明颜色定义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很酷,我只是意识到在CSS中有一些 flood-color lighting-color 。有谁知道什么是泛色 lighting-colour ,它们做什么?

Way cool, i'd just realised there is something called flood-color and lighting-color in CSS. Does anyone know what is a flood-color and lighting-color and what do they do?

这些是什么意思?


'flood-color'使用溢出
当前过滤器原子子区域。关键字currentColor和ICC
颜色可以以与'fill'和'stroke'属性的
规范相同的方式指定。

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.

'lighting-color'属性定义过滤器原语'feDiffuseLighting'和'feSpecularLighting'的光源的颜色

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

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

How do we apply these so-called SVG effects? I've tried setting the lighting-color to red but there doesn't seem to be any effect whatsoever.

推荐答案

SVG滤镜效果。


'lighting-color'属性定义光源的颜色
for filter primitives'feDiffuseLighting'和feSpecularLighting。

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


'flood-opacity'属性定义了在整个过滤器原始子区域中使用的不透明度值。

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

这篇关于CSS中的泛光颜色和照明颜色定义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆