Nothing

<shape>

Place and paint a single geometry as a drawable.

Read as Markdown

The <shape> element owns exactly one geometry child and carries its paint, transform and attachments. Set rotation on the shape and dimensions and registration on its geometry.

Syntax

Translate the shape to (56, 8) and set both rectangle anchors to zero. The top-left corner of the white rectangle lands at (56, 8).

<shape translate-x="56" translate-y="8">
  <rect width="10" height="6" anchor-u="0" anchor-v="0"/>
  <fill><paint><solid color="#FFFFFFFF"/></paint></fill>
</shape>

Complete .nothing source

Usage context

Allowed parents are <scene>, <group>, <sequence>, <shape>, <boolean>, <mask>.

The spatial trial also allows <plane>.

Inherits from Drawable.

Use at most one locator kind. u and v form one kind, along a second, and vertex a third. A locator uses the nearest enclosing shape or the scene viewport.

Attributes

Property animation

translate-x

Value parent units · If omitted 0 · Keys Scalar · Declared by Transform

Horizontal translation.

translate-y

Value parent units · If omitted 0 · Keys Scalar · Declared by Transform

Vertical translation.

pivot-x

Value local units · If omitted 0 · Keys Scalar · Declared by Transform

Horizontal coordinate of the transform pivot.

pivot-y

Value local units · If omitted 0 · Keys Scalar · Declared by Transform

Vertical coordinate of the transform pivot.

scale-x

Value factor · If omitted 1 · Keys Scalar · Declared by Transform

Local horizontal scale. Negative values reflect the axis.

scale-y

Value factor · If omitted 1 · Keys Scalar · Declared by Transform

Local vertical scale. Negative values reflect the axis.

skew-x

Value degrees · If omitted 0 · Keys Scalar · Declared by Transform

Horizontal shear angle, strictly between −90 and 90.

rotate

Value degrees · If omitted 0 · Keys Scalar · Declared by Transform

Rotation about the drawable pivot, clockwise in default scene coordinates.

u

Value fraction of host width · Keys Scalar · Declared by Locator

Horizontal share measured from the left of the host bounds. Values outside [0, 1] select a point outside those bounds. A track requires an authored base. Omission leaves this axis at the parent origin.

v

Value fraction of host height · Keys Scalar · Declared by Locator

Vertical share measured from the top of the host bounds. Values outside [0, 1] select a point outside those bounds. A track requires an authored base. Omission leaves this axis at the parent origin.

along

Value fraction of contour length · Keys Scalar · Declared by Locator

Share of the directed contour length. Open contours use [0, 1]. Closed contours wrap across laps. A track requires an authored base.

vertex

Value vertex index · Keys Scalar · Declared by Locator

Zero-based vertex and fractional distance along its following segment. Open contours with n vertices admit [0, n − 1]. Closed contours wrap every n vertices. A track requires an authored base.

orient

Value none, auto · If omitted none · Keys Held · Declared by Locator

Facing relative to the host contour. Auto facing requires along or vertex.

opacity

Value fraction · If omitted 1 · Keys Scalar · Declared by Blending

Opacity from 0 to 1, applied once to the completed visual result.

blend-mode

Value normal, multiply, screen, pass-through · If omitted normal · Keys Held · Declared by Blending

Blend the assembled drawable into its enclosing paint scope.

Children

ElementsCardinalityDeclared byRole and source order
<rect>, <circle>, <ellipse>, <line>, <polyline>, <polygon>, <path>, <boolean>, <text>Exactly one<shape>Select the host contour. Its position divides attached drawables into those painted below and above the host.
<shape>, <group>, <sequence>Zero or more<shape>Drawables attached to this shape. Document order, below or above the host according to each child's position relative to geometry. Attachment order and compositing
<fill>Optional, at most one<shape>Paint the interior. Before all strokes. Paint
<stroke>Zero or more<shape>Paint a band along the contour. Document order after fill and inset shadows. Paint
<box-shadow>Zero or more<shape>Shadow from the underlying rectangle. Document order within outer or inset shadows. Outers precede fill and insets follow fill. Requires rectangle geometry. Outer box shadows
<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
<animate>Zero or moreAnimationA track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks

Specifications

On this page