# `<stop>`

[Canonical page](https://nothing.graphics/docs/format/reference/stop) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/stop.md)

Define one color and position on a gradient ramp.



<!-- Generated by ncf/tools/reference/generate.mjs. -->

A stop owns its position and color independently. Animation never sorts the authored stop children.

## Syntax [#syntax]

### Set the final ramp color [#set-the-final-ramp-color]

Place opaque teal at ramp position one. At (86, 32), beyond the endpoint of the left swatch’s gradient, the paint stays teal.

```xml
<stop offset="1" stop-color="#4ABCC0FF"/>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/gradient-paint-stack.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples)

## Usage context [#usage-context]

Allowed parents are [`<gradient>`](https://nothing.graphics/docs/format/reference/gradient).

## Attributes [#attributes]

[Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions)

### `offset` [#offset]

**Value** fraction of ramp length · **Required** · **Keys** Scalar

Authored position from zero to one. The effective value is at least the previous effective position.

### `stop-color` [#stop-color]

**Value** `#RRGGBBAA` · **Required** · **Keys** Color channels

Eight hexadecimal digits giving encoded sRGB followed by linear alpha.

## Children [#children]

| Elements                                                              | Cardinality  | Declared by | Role and source order                                                                                                                                                                                                |
| --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`<animate>`](https://nothing.graphics/docs/format/reference/animate) | Zero or more | Animation   | A track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) |

## Specifications [#specifications]

* [Paint](https://nothing.graphics/docs/format/spec/graphics#paint)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
