values - SVG: Scalable Vector Graphics 编辑

The values attribute has different meanings, depending upon the context where itʼs used, either it defines a sequence of values used over the course of an animation, or itʼs a list of numbers for a color matrix, which is interpreted differently depending on the type of color change to be performed.

Five elements are using this attribute: <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <feColorMatrix>

animate, animateColor, animateMotion, animateTransform

For <animate>, <animateColor>, <animateMotion>, and <animateTransform>, values is a list of values defining the sequence of values over the course of the animation. If this attribute is specified, any from, to, and by attribute values set on the element are ignored.

Value<list-of-values>
Default valueNone
AnimatableNo
<list-of-values>
The value holds a semicolon-separated list of one or more values. The type of the values is defined by the href and attributeName attributes.

feColorMatrix

For the <feColorMatrix> element, values is a list of numbers interpreted differently depending on the value of the type attribute.

Value<list-of-numbers>
Default valueIf type="matrix", identity matrix,
if type="saturate", 1, resulting in identity matrix,
if type="hueRotate", 0, resulting in identity matrix
AnimatableYes
<list-of-numbers>

The value is a list of numbers, which is interpreted differently depending on the value of the type attribute:

  • For type="matrix", values is a list of 20 matrix values (a00 a01 a02 a03 a04 a10 a11 ... a34), separated by whitespace and/or a comma.
  • For type="saturate", values is a single real number value (0 to 1).
  • For type="hueRotate", values is a single one real number value (degrees).
  • For type="luminanceToAlpha", values is not applicable.

Specifications

SpecificationStatusComment
Filter Effects Module Level 1
The definition of 'values for <feColorMatrix>' in that specification.
Working DraftNo change
SVG Animations Level 2
The definition of 'values for <animate>, <animateColor>, <animateMotion>, and <animateTransform>' in that specification.
Editor's DraftNo change
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'values for <feColorMatrix>' in that specification.
RecommendationInitial definition for <feColorMatrix>
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'values for <animate>, <animateColor>, <animateMotion>, and <animateTransform>' in that specification.
RecommendationInitial definition for <animate>, <animateColor>, <animateMotion>, and <animateTransform>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:97 次

字数:6299

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文