Nothing

<paint>

Add one typed value to a fill or stroke's paint stack.

Read as Markdown

Examples

Download the complete .nothing source · Source on GitHub

Rendered with ncf-preview at 208 × 64.

The outlined swatch at the left transitions from navy to teal. The swatch at the right uses a translucent teal paint over solid navy.
Still · Ramp and paint stack at 0sThe outlined swatch at the left transitions from navy to teal. The swatch at the right uses a translucent teal paint over solid navy.
XML source
<scene width="208" height="64">
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="8" offset-y="8" width="88" height="48" corner-radius="12"/>
    <fill>
      <paint>
        <gradient type="linear" gradientUnits="userSpaceOnUse" x1="24" y1="32" x2="80" y2="32">
          <stop offset="0" stop-color="#193661FF"/>
          <stop offset="1" stop-color="#4ABCC0FF"/>
        </gradient>
      </paint>
    </fill>
    <stroke stroke-width="2"><paint><solid color="#122947FF"/></paint></stroke>
  </shape>
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="112" offset-y="8" width="88" height="48" corner-radius="12"/>
    <fill>
      <paint><solid color="#193661FF"/></paint>
      <paint><solid color="#4ABCC080"/></paint>
    </fill>
  </shape>
</scene>

Use each paint for a single solid, image, or gradient. Its position in the stack determines which layers are beneath it.

Syntax

Overlay a translucent color

The upper paint layers half-alpha teal over navy. At (144, 32), the result is approximately (50, 121, 145, 255).

<paint><solid color="#4ABCC080"/></paint>

Complete .nothing source · Sample checks

Usage context

Allowed parents are <fill>, <stroke>.

Attributes

Property animation

blend-mode

Value normal, multiply, screen · If omitted normal · Keys Held

Blend this layer into the paint below. The bottom paint's mode composites the assembled stack into its destination.

Children

ElementsCardinalityDeclared byRole and source order
<solid>, <image>, <gradient>Exactly one<paint>Choose the source of this paint layer. Exactly one value.
<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