<GradientStop> / Element reference
GradientStop
The GradientStop element in IDML: where it appears (Resources/Graphic), its 4 attributes, their values, and how real documents use them.
Definition
One stop of a gradient swatch: a colour, its position along the ramp and where the blend before it reaches halfway.
- Lives in
Resources/Graphic272- Frequency
- In 272 of the 305 documents of the census (89.2%), 2026-10-12
- Attributes
- 4 observed, 4 of them vary between documents
- Discussed in
- Apply a gradient fill, Gradients & tints, Color & swatches and Resource parts
Structure
Relationships
GradientStop sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Seen in |
|---|---|---|---|
| Location# The stop's position along the gradient, in percent from 0 to 100. | integer or real | any | 100% varies in 272 |
| StopColor# Names a colour in the palette by Self id. | reference to Color | any | 100% varies in 272 |
| Midpoint# Where the blend between the previous stop and this one reaches its halfway colour, in percent of the distance between them. | integer or real | any | 99.6% varies in 23 |
Self#Self and Name work as on a <Color>; page items name the tint by its Self. | text | any | 99.6% varies in 271 |
GradientStop (census of 2026-10-12, 305 documents). Seen in is the share of the 272 documents with a GradientStop that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Evidence
- Observed
- In 272 of 305 documents (89.2%):
Resources/Graphic272. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
Paged support
What Paged, one implementation of the format, does with GradientStop. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged 6347aa9, read 2026-11-24; render from the capability record exported 2026-11-24.
- Parse
- Reads 3 of the 4 attributes
- Render
- No feature of the capability record names this element
- Edit
- No attribute maps to a scriptable path
- Write
- Writes 3 of the 4 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| Location | readseffect_xml.rs:260 | — | writesresources.rs:186 |
| StopColor | readseffect_xml.rs:273 | — | writesresources.rs:185 |
| Midpoint | readseffect_xml.rs:270 | — | writesresources.rs:189 |
| Self | not read | — | not written |
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names GradientStop.