feFlood 滤镜元素#

feFlood Filter Element

这个滤镜原语创建一个矩形,并填充来自 flood-colorflood-opacity 属性的颜色和不透明度值。该矩形的大小与 feFlood 元素上 xywidthheight 属性所设定的滤镜原语子区域相同。

有关常见属性,请参见:滤镜原语概述

This filter primitive creates a rectangle filled with the color and opacity values from properties flood-color and flood-opacity. The rectangle is as large as the filter primitive subregion established by the x, y, width and height attributes on the feFlood element.

For common properties see: 滤镜原语概述

SVG Attributes#

  • flood-color'currentColor' | <color> [<icccolor>] | ' inherit'

    initial value is 'black'

  • flood-opacity<opacity-value> | 'inherit'

    initial value is '1'