Nothing

Drawable effects

Filter or mask a drawable or blur the picture behind it.

Read as Markdown

A source filter acts on the assembled drawable. A backdrop filter acts on earlier paint. A mask sets how much of the result contributes.

Example

Blur a group as a unit

Put a source <filter> directly under the group to blur its assembled contents. The filter isolates the Multiply shape even at frame 0, when sigma is zero, so both (20, 20) and (44, 20) are yellow. By frame 4, with sigma 4, the blur reaches the blue background at (20, 13).

<group blend-mode="pass-through">
  <filter><blur sigma="0"><animate attributeName="sigma" fill="freeze">
    <key frame="0" value="0" ease="linear"/><key frame="4" value="4"/>
  </animate></blur></filter>
  <shape blend-mode="multiply"><rect anchor-u="0" anchor-v="0" offset-x="8" offset-y="14" width="48" height="12"/><fill><paint><solid color="#FFFF00FF"/></paint></fill></shape>
</group>

Complete .nothing source

Usage context

Trait DrawableEffects in the scene format type model.

Related pages in this reference are Drawable.

Children

ElementsCardinalityDeclared byRole and source order
<filter>Optional, at most oneDrawable effectsSource-image operations on the assembled drawable. Independent of its position among siblings.
<backdrop-filter>Optional, at most oneDrawable effectsBlur the accumulated picture at this drawable's paint position. Independent of its position among siblings. Backdrop blur
<mask>Optional, at most oneDrawable effectsCoverage from one source shape. Independent of its position among siblings. Mask sources

Specifications

On this page