# The .nothing scene format [Canonical page](https://nothing.graphics/docs/format) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/www/content/docs/format/index.mdx) Author editable scenes, look up XML names and find the rules for rendering and editing. A `.nothing` document describes an editable 2D scene. You can open it as artwork, sample it at a particular time, or place it in another composition. Version 0.9.0 is the ratified internal rehearsal for Level 1. ## Guides and concepts [#guides-and-concepts] [Make a first scene](https://nothing.graphics/docs/format/guides/first-scene) using a complete, runnable XML file. [Browse the guides](https://nothing.graphics/docs/format/guides) for placement, paint, animation, timing and editable text. ## Reference [#reference] Browse the [reference overview](https://nothing.graphics/docs/format/reference) or look up a name directly. * [Elements](https://nothing.graphics/docs/format/reference/elements) lists XML tags. * [Attributes](https://nothing.graphics/docs/format/reference/attributes) lists exact XML attribute spellings and their owners. * [Abstract types](https://nothing.graphics/docs/format/reference/types) shows which elements inherit from each family. * [Mixins](https://nothing.graphics/docs/format/reference/mixins) describes sets of controls shared by multiple types. ## Specification [#specification] The [Level 1 specification](https://nothing.graphics/docs/format/spec) defines how a scene evaluates. The [type model](https://nothing.graphics/docs/format/spec/type-model) describes the XML structure. [Implementation support](https://nothing.graphics/docs/format/implementation-support) records what the standalone preview and N4 exercise. The separate [perspective optics decision](https://nothing.graphics/docs/format/spec/perspective-camera-optics) ratifies optical behavior. Spatial camera authoring syntax is in trial. The [changelog](https://nothing.graphics/docs/format/changelog) records the original review draft and subsequent contract and tooling decisions under Unreleased. The rehearsal is a format milestone. The online manual documents it independently of a tagged release. ## Plain text [#plain-text] * [Compact authoring guide](https://nothing.graphics/docs/format/llms.txt) * [Complete scene format manual](https://nothing.graphics/docs/format/llms-full.txt) # NCF Level 1 specification [Canonical page](https://nothing.graphics/docs/format/spec) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/README.md) The Level 1 document contract for source, diagnostics, canvas, clocks and scene order. **Ratified internal rehearsal · 0.9.0.** A `.nothing` file describes an editable 2D scene. The same source can be opened as artwork, sampled at a time, or placed in another composition. Level 1 defines the meaning of the source independently of any renderer, editor, or conversion tool. “Level 1” names this specification. It introduces no version attribute or file migration. The first review draft and subsequent contract decisions are listed under Unreleased. [Changelog](https://nothing.graphics/docs/format/changelog) Start here for the document contract. The chapters below define how its contents evaluate. A rule marked open identifies a limit of Level 1. | Chapter | What it defines | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | [Graphics](https://nothing.graphics/docs/format/spec/graphics) | Shape geometry, editable boolean operands, multiple paints and strokes, gradients, images, masks, and compositing | | [Boxed geometry](https://nothing.graphics/docs/format/spec/boxed-geometry) | Registration, contour displacement and resize behavior for rectangles, circles and ellipses | | [Image effects](https://nothing.graphics/docs/format/spec/filters) | Drawable-owned backdrop blur, ordered source filters, Gaussian blur, alpha-based drop and inner shadows, and outer and inset rectangle shadows | | [Animation](https://nothing.graphics/docs/format/spec/animation) | Property ownership, base values, key addresses, interpolation, repetition, and seeking | | [Sequences](https://nothing.graphics/docs/format/spec/sequences) | Placement of picture, sound, and nested compositions, local clocks, and audio mixing | | [Attached drawables](https://nothing.graphics/docs/format/spec/attached-drawables) | Placement on bounds, a contour or a vertex, host ownership, facing and paint order | | [Spatial composition](https://nothing.graphics/docs/format/spec/spatial) | Groups, local coordinates, pivots, cameras, mask ownership, and composited opacity | | [Fonts](https://nothing.graphics/docs/format/spec/fonts) | Family and weight requests, host font sources, coverage fallback and reproducible layout | | [Text](https://nothing.graphics/docs/format/spec/text) | Editable copy, styled spans, font input, line layout, and replacement keys | | [Contour trim](https://nothing.graphics/docs/format/spec/contour-trim) | Select a distance interval for one stroke while retaining its source geometry | Level 1 defines the 2D camera. A separate perspective trial exercises the ratified optical behavior with proposed spatial authoring syntax. [Perspective optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics) · [Scene camera RFC](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) The [scene format type model](https://nothing.graphics/docs/format/spec/type-model) defines the structural reference for all 32 Level 1 elements and the explicitly labeled spatial trial. ## A complete document [#a-complete-document] ```xml ``` This still has a transparent 64 × 64 canvas. The rectangle is centered at (28, 28), with its upper-left corner at (8, 8). A second fill paint would cover the same rectangle. A sibling stroke would follow its contour. Changing the canvas width and changing the rectangle width are distinct edits. To move the entire shape by a further (4, 8), set `translate-x="32" translate-y="36"` on the shape. Its paints and mask follow it. Each axis is an independently keyable scalar, with the same translation semantics as the two components of SVG translation. [SVG coordinate systems](https://www.w3.org/TR/SVG2/coords.html#TransformProperty) ### Source and names [#source-and-names] Use UTF-8 XML 1.0 with one unnamespaced `scene` root. The ASCII vocabulary is case-sensitive. UTF-8 also accommodates literal copy, filenames and comments. An XML declaration is optional. XML quoting, numeric character references, and the five predefined entity references have their XML meanings. The document grammar admits comments and whitespace between elements. Character data is significant inside `text` and `span`; elsewhere only inter-element whitespace is permitted. See [text content](https://nothing.graphics/docs/format/spec/text) before indenting mixed content. A DTD, processing instruction, or unknown element requires a diagnostic. [XML 1.0](https://www.w3.org/TR/xml/) Attributes outside the Level 1 vocabulary are permitted on any element. Their values are opaque to NCF evaluation and have no effect on the sampled picture, audio mix, or animation. Source-preserving editors retain them on unrelated edits. An unqualified core attribute still requires its specified owner and value. A namespaced attribute has a distinct expanded name even when its local spelling matches a core field. A host can supply a list of well-known attribute names to a spelling checker. That list affects lint diagnostics only. [Host vocabulary example](https://github.com/gridaco/nothing/blob/main/ncf/examples/host-labels/README.md) Read a scalar number as a finite signed decimal in local units unless its property gives another unit. The lexical form is an optional sign, decimal digits with an optional fractional part (or a leading dot followed by digits), and an optional decimal exponent with sign. For example, `8`, `0.5`, `.5`, and `5e-1` are numbers. Property ranges still apply. Clock values, frame rates, colors, point lists, and path data have their own grammars. Resolve names on their owning element. For example, `fill` on `animate` is an end-of-animation policy. Its spelling as a child of `shape` introduces a paint operation. [Keyword table](https://github.com/gridaco/nothing/blob/main/ncf/docs/vocabulary.md) ### Canvas and clock [#canvas-and-clock] * Supply `width` and `height` together as positive finite numbers to give the scene a fixed canvas. Its origin is the top left, x increases right, and y increases down. The visible region spans zero to the declared width and height. Geometry can extend beyond those boundaries. * With both dimensions omitted, the caller supplies the viewport for visual sampling. A referenced scene without dimensions uses its enclosing viewport. Rendering needs a known extent. A lone dimension is an error. Changing an object's bounds never implicitly resizes the canvas. * The first SVG exchange case uses a matching viewport at one local unit per CSS pixel. Export resolution is a separate input. Responsive sizing, automatic fit on resize, and authored `viewBox` transforms remain open. Sources with different dimensions can already be placed at their native size and scaled explicitly. [Source coordinates](https://nothing.graphics/docs/format/spec/sequences#source-coordinates) SVG distinguishes viewport establishment from the transform into user coordinates. [SVG coordinate systems](https://www.w3.org/TR/SVG2/coords.html) * Optional `background="#RRGGBBAA"` fills the resolved scene viewport once, beneath all drawable children. The default is transparent black (`#00000000`). Background alpha participates in ordinary compositing. On resize the fill follows the viewport. A referenced scene uses its own resolved viewport and local time. Its placement transforms, clips, masks, and fades the entire picture, background included. Inline sequences and groups start transparent. The scene owns its background color track. [Color sampling](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) * A scene containing a placement or a property track declares `frame-rate`. A still containing neither can omit it. Canvas dimensions and frame rate are document settings. Moving a key and changing the rate have distinct meanings. [Frame and time addresses](https://nothing.graphics/docs/format/spec/animation#key-addresses) ### From source to a sample [#from-source-to-a-sample] A scene owns zero or more shapes, groups, and sequence placements in drawing order. An optional named 2D camera frames their combined scene coordinates in the viewport. A camera declaration consumes no paint slot. [Cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) Start with the sampled scene background and silence. Resolve at Base to inspect authored properties, or at an explicit instant to obtain animated values. A nested drawable can take its position from its host’s sampled geometry. Each group passes the enclosing time to its children. For each active placement, map parent time to source time before resolving its contents. Resolve text and its font inputs before using glyph geometry. Each stroke can select part of the shared contour. Apply each drawable's local mask and opacity to its assembled picture, then place that result in the parent. Spatial operations preserve the audio mix. A composition contributes its composited picture and audio mix to its parent. The same document, resources, viewport, and sampling environment must give the same result when seeking back to an instant. [Shape evaluation](https://nothing.graphics/docs/format/spec/graphics) · [Sampling sequences](https://nothing.graphics/docs/format/spec/sequences#resolving-a-composition-at-time-t) ### Source-preserving editing [#source-preserving-editing] An editor must be able to locate an authored element, property, or key in the specific source file that owns it. Syntax positions belong to a revision of that file. Two equal paint values on different strokes are distinct targets. A nested scene's placement belongs to the parent file, and an edit to the referenced artwork belongs to the referenced file. For a save without edits, preserve every byte. For a value change on an existing attribute, replace only the bytes of the selected value. Preserve the surrounding quotes, indentation, comments, sibling order, line endings, and the other occurrences of that value. A literal-copy edit targets the selected character-data range or held key in its owning text or span. Adding an absent property or a new key is a structural edit at its owner. Reopening the file must reproduce the edit. Full-fidelity syntax trees are one precedent for retaining tokens, trivia, and source locations. The format specifies the observable edit. [Roslyn syntax model](https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/work-with-syntax) ### Diagnostics and evidence [#diagnostics-and-evidence] A reader can recognize syntax that its renderer cannot evaluate. When a requested operation encounters malformed source, an invalid owner or value, a missing resource, or an unsupported construct, a strict reader reports the reason and refuses that result. A best-effort renderer identifies any degradation at its source. Include the file and an element or attribute location. For malformed XML, a byte position or line and column suffices. Source-preserving tools retain unedited source even when a construct is unavailable for rendering. The [rectangle exchange case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.md) supplies a complete SVG input, native counterpart, expected samples, and a byte-local edit. The [composition cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md) exercise graphics and timing together. These are expectations for implementations. The [vocabulary check](https://github.com/gridaco/nothing/blob/main/ncf/tools/vocabulary.py) checks the authoring examples against the inventory. The [moving card](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) exercises copy replacement, source slip, framing, stroke trim, and group opacity together. ## Scope under review [#scope-under-review] | Area | In this draft | Decision still needed | | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | Content and geometry | Basic shapes, per-corner rectangle radii, paths and editable boolean geometry | Standalone images, further path and shape coverage | | Text and layout | Horizontal text layout, literal mixed content, stable styled spans and held copy | Selection by laid-out unit, path baselines, inline objects and container layout | | Structure and placement | Geometry attachments, spatial groups, pivoted scale, X-skew and rotation, independent parent and source clocks | Arbitrary matrices and automatic fitting on resize | | Appearance and compositing | Local masks, isolated opacity, ordered paints, drawable blend modes, pass-through scopes, source filters, backdrop blur and shadows | Additional blend modes, general filters and host-defined shaders | | Geometry modifiers | Independent strokes and whole-path trim across authored contours | [Shape-wide modifiers and derived geometry branches](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/geometry-modifiers.md) | | Time and exchange | Local property tracks, unit-speed nested sequences, fixed-viewport rectangle exchange | Reusable animation, retiming and the remaining [SVG crosswalk](https://github.com/gridaco/nothing/blob/main/ncf/docs/svg-crosswalk.md) | The [design doctrine](https://github.com/gridaco/nothing/blob/main/ncf/DOCTRINE.md) gives the criteria for reviewing these decisions. The [authoring guide](https://nothing.graphics/docs/format/llms.txt) teaches the current vocabulary. # Level 1 property animation [Canonical page](https://nothing.graphics/docs/format/spec/animation) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/animation.md) Property ownership, key addresses, interpolation and fill behavior. An inline track supplies a value for one property at a requested instant. This chapter specifies its source representation, clock, and evaluation in the Level 1 working draft. ## Authoring [#authoring] Authoring intent lives physically beside the property definition. Every authored appearance, geometry, or sound property is animatable unless its definition names an exception. Its `animate` must be a direct child of the owning element. The required `attributeName` selects a property of that element. A shape owns its translation and opacity, a rectangle owns its width, and a sequence placement owns its gain. An animation declaration consumes no drawing or mixing slot. Changing a shape's geometry preserves animation declared on the shape. ```xml ``` A timed scene declares its authored `frame-rate` in frames per second as a positive integer or a ratio of positive integers, such as `24` or `30000/1001`. Frame numbering starts at zero. Inline sequences inherit the scene's rate. Each referenced timed scene declares its own rate. ## Key addresses [#key-addresses] A key carries a `value` in the target property's grammar, units, and range, and exactly one address. | Address | Meaning | When the authored frame rate changes | | ------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------ | | `frame="12"` | Integer frame index in the owning composition. At rate `R`, frame `n` occurs at `n / R` seconds. | Stays on frame 12. | | `time="0.5s"` | Exact seconds, written as an integer, decimal, or integer fraction with a positive denominator and an `s` suffix. | Stays at half a second. | Writers preserve the choice of address. At 24 fps the two examples coincide. At 30 fps frame 12 occurs at 0.4s. Changing the export rate only changes which instants are sampled. Frame 1 at 30000/1001 fps is exactly 1001/30000s. Resolve and compare times as rational values through every level of nesting. An animation has at least two keys in strictly increasing resolved time. Frame and time addresses can be mixed. Equal or reversed instants, including after an authored rate edit, require a diagnostic identifying the keys. ## Evaluation [#evaluation] Under Base evaluation each property reads its authored value or the default defined for that property. A track still requires a valid base. If the property requires an explicit attribute, supply it on the owner. For a sample at time `t`, evaluate the owning composition directly at that instant. Sampling preserves the authored tree and is independent of playback history. The first key starts the animation. The time from first to last key is one iteration. Each key except the last specifies the `ease` of its outgoing segment. The last key carries only its address and value. | Outgoing `ease` | Value on the segment | | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `hold` | Use the left key's value until the right key's instant. | | `linear` | Pass the interval fraction directly to the type's interpolation rule. For finite scalars this gives `a + (b - a) × u`. | | `spline` | The key carries `keySplines="x1 y1 x2 y2"`, one SVG cubic Bézier tuple with coordinates in \[0, 1]. Use interval fraction `u` as the curve's x coordinate and its corresponding y as the interpolation fraction. | Before the first key, the animation contributes nothing. At an interior key's exact instant, its value takes effect. Optional `repeatCount` is a positive integer and defaults to 1. At an interior repeat boundary the first key takes effect again. At the final boundary, `fill="freeze"` retains the last value and `fill="remove"` releases the property to the next contributing animation or its base. Level 1 adopts SVG's attribute name, both values, and its default of `remove`. On ``, `fill` governs the track's contribution after its active interval. A key's outgoing ease governs the segment leading to the next key. For direct seeking, let `B` be the first key's time, `D` the difference between last and first key times, and `N` the repeat count. The active interval is `[B, B + N × D)`. Within it, look up the keys at `q = B + ((t - B) mod D)`. Choose the surrounding keys such that `t_left <= q < t_right` and pass `(q - t_left) / (t_right - t_left)` to the left key's easing function. At or after `B + N × D`, use the track's `fill` policy. A track keyed at frames 6 and 18 with two iterations starts its second iteration at frame 18 and finishes at frame 30. For simultaneous replacement effects on one property, the contributing animation with the latest first-key time wins. The original first-key time also determines priority during repeats and after a freeze. Equal starts use later declaration order. When a higher-priority track releases the property, sample the remaining tracks at the requested instant. Unknown properties, invalid values, and invalid segment controls require a diagnostic on the owning animation. In the example, translation is 0 just before 0.5s, 40 at 0.5s, 70 at 0.75s, and 100 from 1s onward. ## Property types and exceptions [#property-types-and-exceptions] The property type supplies the interpolation rule. * **Continuous values.** Finite scalars support hold, linear, and spline segments. This covers a gradient endpoint, a stop offset, and a stroke width, a trim endpoint, or a pivot coordinate using each property's units and range. * **Colors.** `scene.background`, `solid.color`, and `stop.stop-color` support hold, linear, and spline. Decode each byte of `#RRGGBBAA` to a value from 0 to 1. Interpolate the three straight, encoded sRGB components and alpha independently with the same eased fraction. Preserve intermediate precision when passing the sampled color to a gradient or compositing operation. Premultiply only when computing its contribution. For transparent red to opaque blue, halfway gives straight RGBA (0.5, 0, 0.5, 0.5) and premultiplied RGBA (0.25, 0, 0.25, 0.5). A hold retains the left color, including RGB at zero alpha. This uses the same channel rule in time and across a [gradient ramp](https://nothing.graphics/docs/format/spec/graphics#paint). SVG supplies the precedent for keying color with an ordinary property track. [SVG color animation](https://www.w3.org/TR/SVG11/animate.html#AnimateColorElement) A transparent endpoint's RGB can therefore tint the middle of a fade. Key only opacity for a fade that keeps the same ink. Importing a CSS premultiplied transition with changing color and alpha requires sampling its curve or reporting the difference. [CSS interpolation with alpha](https://www.w3.org/TR/css-color-4/#interpolation-alpha) * **Discrete values.** Use `ease="hold"` to switch between valid values at a key. Examples include a camera selector, a boolean operation, a font face request or weight, and the logical string `value` of a text or span with no child spans. Its base is the literal copy in that owner. [Text](https://nothing.graphics/docs/format/spec/text) * **Point lists.** For a linear or spline segment, endpoints must contain the same number of `x,y` pairs. Interpolate each corresponding coordinate with the segment’s eased fraction. A held key can replace the whole list and change its length. * **Path data.** Expand implicit repetitions, including the line segments after a move. Continuous endpoints must have the same sequence of commands and coordinate modes. Treat `Z` and `z` alike. Interpolate corresponding parameters numerically. For arc flags, interpolate 0 and 1 and treat any nonzero result as true. A hold can switch between any two valid paths. Report an incompatible continuous interval at the key. Sample the resulting geometry before resolving strokes, masks or attachments. [SVG 2 path interpolation](https://www.w3.org/TR/SVG2/paths.html#TheDProperty) * **Other structured values.** A hold can switch between valid values. A continuous segment needs a specified interpolation rule. Child insertion, removal, and reordering are edits to the document tree. Scene dimensions (`width`, `height`) and `frame-rate` are document settings. Attributes of `animate` and `key` define how the track is read. These are outside property animation. Resource references and placement timing (`begin`, `dur`, `source-start`) require separate sampling rules and are outside this draft's animation targets. A declaration targeting an excluded property or using an unsupported segment requires a diagnostic on the animation. The following properties illustrate the default and specify their base values. | Owner and property | Value and effect | | -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `shape`, `group`, `sequence` | Translation and pivot coordinates default to 0, scale factors to 1, rotation in degrees to 0. [Transform order](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) | | `opacity` on the same three owners | Scalar in \[0, 1] applied once to the composited picture. Base default 1. | | `rect.width` | Nonnegative width in local geometry units. The rectangle supplies its authored width. | | `anchor-u/v`, `offset-x/y` on boxed geometry | Independent scalar tracks on the primitive. Sample size, registration and offset before deriving the corner or center. [Defaults and units](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) | | `sequence.gain` | Nonnegative linear amplitude multiplier on each channel before the placement is mixed into its parent. Base default 1. | ## Picture, sound, and nesting [#picture-sound-and-nesting] A sequence placement's own properties use its enclosing composition's time. Its contents use `source-start + (t - begin)`. A referenced composition interprets its frame keys at its authored rate after that mapping. Sample at the resulting instant even when it falls between authored frames. [Sequence rules](https://nothing.graphics/docs/format/spec/sequences) ```xml ``` At parent time 2.5s the voice plays source time 10.5s at half amplitude. Evaluate picture properties at each requested visual instant and audio gain at each output sample instant. At 48 kHz the gain one sample after 2s is exactly 1/48000 on this ramp. A key can address that sample directly as `time="96001/48000s"`. A compound clip applies its gain once to its child mix. When the placement ends at 5s it contributes silence. External animation files and reusable animation definitions are deferred. Further profiles can extend the property vocabulary, typed interpolation, event timing, and additive composition. [Existing SVG animation profiles](https://github.com/gridaco/nothing/blob/main/docs/wg/feat-svg/animation.md) ## Design evidence [#design-evidence] * **SVG and SMIL** define the timing interval, repetition, interpolation, post-interval fill, and priority of simultaneous effects. SVG also admits begin times derived from events. A deterministic production profile can reuse its clock-based math while selecting a smaller authoring surface. [SVG animation](https://www.w3.org/TR/SVG11/animate.html) · [SMIL Animation](https://www.w3.org/TR/2001/REC-smil-animation-20010904/) * **After Effects** exposes temporal interpolation per property, including Hold, Linear, and Bézier. Its Audio Levels property is keyframeable and measured in decibels, with 0 dB representing unity. A straight line through dB values gives a different amplitude curve from a straight line through linear gain. Import must preserve that distinction. [Keyframe interpolation](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/animation-keyframes/keyframe-interpolation.html) · [Audio Levels](https://helpx.adobe.com/my_en/after-effects/desktop/work-with-layers/layer-properties/layer-properties.html) * **Blender** presents animated strip volume as a curve and reflects it in the displayed waveform. **Lottie** records typed property keyframes with frame times, hold flags, and easing tangents. Together these precedents distinguish an editable parameter curve from the media and from the author's choice of time display. [Blender strip properties](https://docs.blender.org/manual/en/latest/video_editing/edit/montage/strips/strip_properties.html) · [Lottie properties](https://lottie.github.io/lottie-spec/latest/single-page/) * **Web Audio** specifies gain as multiplication of each channel's samples by a computed parameter and distinguishes audio-rate from control-rate automation. It provides a concrete reference for sample-rate gain evaluation. [Web Audio GainNode](https://www.w3.org/TR/webaudio-1.0/#GainNode) ### Decision on animating a gradient stop [#decision-on-animating-a-gradient-stop] A stop owns its offset track. SVG defines an animatable offset on each stop. Figma's plugin API likewise groups position and color in each stop of a gradient paint. After Effects lets the artist edit individual stops while keying the shape gradient's Colors property as a whole. [SVG gradient stops](https://www.w3.org/TR/SVG2/pservers.html#GradientStops) · [Figma paint API](https://developers.figma.com/docs/plugins/api/Paint/) · [After Effects gradient editing](https://helpx.adobe.com/after-effects/desktop/drawing-painting-and-paths/shapes-and-shape-attributes/shape-attributes-paint-operations-path.html) For the twelve-frame edit, the existing scalar track gives the editor one source value to patch. A whole-gradient key would repeat the two stationary stops and their colors. The middle stop stays identifiable by its owning element throughout the edit. This case exercises strictly increasing offsets. [Gradient animation cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#gradient-animation) # Attached drawables [Canonical page](https://nothing.graphics/docs/format/spec/attached-drawables) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/attached-drawables.md) Attach artwork to a shape’s bounds, contour or authored vertices. A drawable written inside a shape is attached to that shape's geometry. One locator names the point of the geometry where the drawable's origin sits. Keying the geometry updates each locator against the sampled host. An unlocated child retains its frame at the host’s local origin. Keying a locator moves one drawable over it. Everything else in the scene keeps its explicit coordinates. [Spatial composition](https://nothing.graphics/docs/format/spec/spatial) · [Cases](https://github.com/gridaco/nothing/tree/main/ncf/conformance/attached-drawables/) · [Guide entry](https://nothing.graphics/docs/format/llms.txt) · [Precedents](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/attached-drawables/precedents.md) The chapter adds no ids and no references. It adds one nesting rule, five attributes and one rule about paint order. Relations between siblings, sizes taken from a host and container layout are [outside it](https://nothing.graphics/docs/format/spec/attached-drawables#outside-this-chapter). ## An arrow on a line [#an-arrow-on-a-line] ```xml ``` The dot's origin is on the second point of the line, at (230, 110). The arrowhead's origin is on the last, at (560, 100), turned −39.094° to face the way the line arrives. Each is drawn in its own coordinates around that origin, as an SVG marker is drawn around its reference point. | Change or sample | Expected result | | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | Switch `points` to `80,180 250,260 380,90 560,200` with a held key at frame 30 and `fill="freeze"`. | From frame 30 the dot is at (250, 260). The arrowhead follows the last point. No value on either attached shape changes. | | Change the arrowhead's `vertex="3"` to `vertex="2"`. | It sits at (400, 230) and faces −1.938°, halfway between arriving at 35.218° and leaving at −39.094°. One value changes in the source. | | Use `vertex="1.5"` on a third shape. | Its origin is at (315, 170), halfway along the stretch from the second point to the third. | | Wrap the dot in a `group` with no attributes. | Nothing moves. | | Set `translate-y="-18"` on the dot. | It sits 18 above the point. The translation is the offset from the point. | ## Hosts [#hosts] **The host of a drawable is the nearest enclosing `shape`.** A drawable with no enclosing shape has the scene as its host. A `shape`, `group` or `sequence` can be written directly inside a shape, beside its geometry and paint. A `group` and an inline `sequence` have no geometry and are never hosts. A drawable inside one is attached to the host outside it, and the group's transform then moves it like any other content. A referenced scene is its own document: its drawables have that scene as their host, and its placement hosts nothing. A host's geometry is its own. What is attached to a shape never changes that shape's bounds, contour or vertices, and never changes the bounds its image paint uses. ### What a geometry offers [#what-a-geometry-offers] | Geometry | Bounds | Contour | Vertices | | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | | `rect` | The [registered box](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) before corner rounding. | The [contour a stroke trims](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance): from the end of the top-left corner, clockwise | None | | `circle`, `ellipse` | The registered center plus and minus the radii | From the rightmost point, clockwise | None | | `line` | Of its two endpoints | From the first endpoint to the second | The endpoints, 0 and 1 | | `polyline` | Of its points | Through the points in authored order | The points, from 0 | | `polygon` | Of its points | The same, with the return to the first point | The points, from 0 | | `path` | Of the curves it draws, in every subpath. Control points do not count. | Its one subpath in command order, with its closing stretch when it ends in `Z`. A command after a close starts another subpath. | The initial point, then the end point of each segment, counting the segments of repeated arguments. A close adds none. | | `text` | The box of its lines, defined below | None | None | | `boolean` | Of the resulting region | None | None | | the scene | From (0, 0) to the resolved canvas width and height | As a `rect` at the origin with square corners | None | Bounds and contours are those of the geometry in the host's local coordinates, before any stroke, shadow, filter or transform. A contour and its direction are exactly those of [stroke trimming](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance), so a stroke's `trim` and a drawable's `along` measure the same distance. A path with several subpaths has bounds and no single contour. **Text.** The box of a text runs from the first baseline minus the ascent to the last baseline plus the descent. Use the horizontal font metrics of the text element’s sampled face and size, as defined in [text layout](https://nothing.graphics/docs/format/spec/text#attachment-bounds). Spans do not change them. With an `inline-size` the box is that wide. Without one it is as wide as the widest line. Either way the box is placed at `x` by `text-anchor`, as a line of that width would be. Empty copy has one empty line. Its natural width is zero. An authored `inline-size` still supplies its box width. **Hosts at their limits.** Bounds and contours come from the authored numbers. A rectangle of zero width keeps bounds of zero extent and keeps its contour. A contour of one point, or of several points in one place, has no length: `along` and `vertex` give that point, with direction 0. A point list or path with no coordinates at all has no bounds and no contour. The same holds for one the draft rejects as malformed. Every locator on such a host gives the origin, with no further report. A boolean whose result is empty has no bounds, and `u` and `v` on it give the origin. ## Locators [#locators] A locator is an attribute of the attached `shape`, `group` or `sequence`. Each is a finite number and an ordinary animated property. | Locator | The point of the host | | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `u`, `v` | `u` is a share of the bounds' width, measured from their left edge: x = left + `u` × (right − left). `v` is the same for the height, from the top. Each is optional and independent. An omitted one contributes 0, so the drawable stays at its parent's origin on that axis. Values outside 0 to 1 lie outside the bounds. | | `along` | A share of the contour's length from its start. On an open contour it lies in 0 to 1. On a closed contour it is unwrapped: use its fractional part, so 1.25 is a quarter of the second lap and −0.25 is three quarters. | | `vertex` | A whole number is that vertex. A fraction is a share of the contour's length from that vertex to the next, so 1.5 is halfway along that stretch. On an open contour with n vertices it lies in 0 to n − 1. On a closed contour the stretch after the last vertex returns to the first, and `v` and `v` + n name the same point. | **One kind per drawable.** `u` and `v` together are one kind, `along` is another and `vertex` a third. The kind is read from the source: an attribute or a track for it counts, whatever it samples to and even when its value is dropped. A drawable with none sits at its parent's origin, with its ordinary local transform. A `vertex` within 0.000001 of a whole number is that vertex. A locator with a track needs an authored base, as an animated `inline-size` does. **Facing the contour.** `orient` is `none`, the default, or `auto`. With `auto`, the drawable is turned about the point to face the direction of the contour there. It needs `along` or `vertex`. It switches with held keys. The direction at a point is the way the contour leaves it, as an angle measured like `rotate`. On a curve that is the tangent. At a corner it is the direction of the stretch that follows. The last point of an open contour uses the direction it arrives by. Stretches of no length are skipped. A whole `vertex` is the exception, and follows SVG's marker: it faces halfway between the arriving and the leaving direction, through the smaller turn. If the two are exactly opposite it faces the leaving direction. The first vertex of an open contour has only a leaving direction and the last only an arriving one. A share of the length can fall on a corner only by coincidence of arithmetic, so `along` never uses the halfway rule. ## Placing an attached drawable [#placing-an-attached-drawable] Let P be the point the locator gives, in the host's coordinates, and θ the direction that `orient="auto"` adds, otherwise 0. For a local point `v` of the drawable, with the pivot `p`, translation `d` and the rotation, shear and scale of [the spatial chapter](https://nothing.graphics/docs/format/spec/spatial#local-to-parent): ``` in the parent: P + R(θ) × ( d + p + R × K × S × (v − p) ) ``` With no transform of its own, the drawable's origin lands on P. `translate-x` and `translate-y` are the offset from P. `orient="auto"` turns that whole frame about P, so the offset turns with the contour: `translate-y="-4"` is 4 to the left of the direction of travel. The drawable's own `rotate` still turns it about its own pivot inside that frame, so its facing is θ plus `rotate`. Then each ancestor's map applies out to the scene, as before. When groups or inline sequences lie between the drawable and its host, P is still computed in the host's coordinates and used as written in the parent's. A group with no transform therefore changes nothing. A group that is itself attached, or transformed, moves its content like any group: a drawable inside it is then off its point by the group's own map. The host's transform carries what is attached to it. Scaling a host scales its attachments. To resize a card and keep a badge's size, key the card's geometry. ## Order and compositing [#order-and-compositing] Attached drawables paint in document order. One written before the shape's geometry element paints beneath the shape's own paint. One written after it paints above, including one written between the geometry and the `fill`. This gives a meaning to the position of the geometry element, which had none. A fill, a stroke, a shadow, a filter and a mask keep their meaning wherever they are written. 1. Draw the attached drawables written before the geometry, in order. 2. Draw the shape's outer box shadows, fill, inset box shadows and strokes. 3. Draw the attached drawables written after the geometry, in order. 4. Run the shape's filter on that picture, apply its mask and its opacity once, then its transform. A shape with a backdrop filter combines this source with the picture at its paint position using the [backdrop rule](https://nothing.graphics/docs/format/spec/filters#backdrop-blur). By default a shape assembles its attached drawables on transparency. An unfiltered pass-through shape draws into its parent scope. A card at opacity 0.5 with a badge overlapping its corner has alpha 0.5 throughout, including the overlap. Inside that picture the drawables beneath are earlier operations of the same shape, so the bottom blend mode of the shape's fill sees them. Each attachment uses its own [layer blend mode](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage). **Mask sources.** A mask's source shape is written inside its owner, so it takes a locator like any drawable there. Its host is the nearest enclosing shape: the owner itself when the owner is a shape. An iris can open from `u="0.5" v="0.5"` of a word whatever the word is. Drawables attached to a mask source are part of its rendered picture. An alpha or luminance mask sees them. A geometry mask takes the source's own geometry and ignores them, as it ignores the source's paint. **Boolean operands.** An operand supplies geometry to the shape that is being built, so it takes no locator. Drawables written inside an operand are reported and contribute nothing. **Sequences.** A `sequence` can be attached. Its locators, and their keys, use the enclosing composition's time. What an inline sequence holds uses source time and is attached to the host outside the sequence, whose geometry is sampled at the host's own time. Attachment does not change sound. A mask source and an operand contribute no sound. ## Animation [#animation] `u`, `v`, `along` and `vertex` are continuous values with hold, linear and spline segments. `orient` is discrete. A track on a locator needs an authored base on the drawable, so the locator always has a value. Three controls stay independent. The same test the [doctrine](https://github.com/gridaco/nothing/blob/main/ncf/DOCTRINE.md#animation-and-evaluation) uses for a road's casing applies here. | The artist keys | What moves | What stays | | ----------------------------------------------- | ------------------------------------------------- | ----------------------------------- | | The host's geometry: a point, a width, the copy | Every point on it, and so everything attached | Each attached drawable's own values | | One locator | That drawable, over the host | The host and its other attachments | | A transform | That drawable and what is attached to it, rigidly | Its host and its siblings | ## What is reported [#what-is-reported] Report each condition at its source. A strict reader refuses the affected sample. A best-effort reader uses the result in the table. Check the active locator value against the host geometry at that instant. For example, a held geometry key can reduce the vertex count and put a previously valid index past the end. A linter can also check authored values ahead of time. | Source | Result | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | More than one kind of locator on a drawable | None is used. The drawable sits at its parent's origin. | | `along` or `vertex` on a host with no single contour: text, a boolean, a path with several subpaths | The same | | `vertex` on a host with a contour and no vertices: a rectangle, a circle, an ellipse, the scene | The same | | A point that is not finite, from a share or a geometry too large to compute | The same | | A locator with a track and no authored base | That locator has no value: for `u` or `v` that axis is at 0, and for `along` or `vertex` the drawable sits at its parent's origin | | A locator that is not a finite number | The same as having no value. Its kind still counts. | | A sampled `along` or `vertex` outside an open contour | The nearest end | | `orient="auto"` with no `along` or `vertex`, or an `orient` that is not a value | No rotation is added | | A locator, or `orient`, on a boolean operand | Not used | | A drawable written inside a boolean operand | Report at the operand. Ignore the nested drawable’s picture and sound | These are all the conditions this chapter adds. A drawable depends on its host's geometry and on nothing beside it, so there is no reference to resolve, no order to find and no cycle. ## Evaluating [#evaluating] 1. Sample every property at its owner's time. 2. Resolve the host's geometry from its own sampled properties: lay out text, then find the bounds, the contour and the vertices. 3. For each drawable whose host this is, including a mask source and anything reached through groups and inline sequences, find P and θ from its locator and compose its map. 4. Descend. Each shape is the host of what is written inside it. No step reads the host's transform or paint, or another drawable's place, to find a point. An operand's transform is part of a boolean's geometry and is read as such. The scene resolves in one pass from the root, and seeking to an instant gives the same result as playing to it. ## A card and what sits on it [#a-card-and-what-sits-on-it] ```xml Northline updated 09:41 ``` | Change or sample | Expected result | | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | As written | The badge's center is on the top-right corner at scene (340, 70). The footer's origin is 22 left of and 20 above the bottom-right corner, at (318, 180), and its text ends there on that baseline. The title has no locator and stays at (142, 116). | | Key the rectangle's `width` to 400 and `height` to 220. | The badge is at (520, 70) and the footer at (498, 270). The title has not moved. The edit changes two values on the rectangle. | | Replace the `rect` with an `ellipse` of the same bounds. | The badge and footer keep their places on the bounds. `u` and `v` survive a change of geometry. | | Set `opacity="0.5"` on the card. | The card, title, badge and footer fade as one picture. | | Move the badge's element above the `rect`. | It paints beneath the card. Its place is unchanged. | A unit that follows a number uses the same rule with text as the host. With the number's `x` and `y` at 0, `u="1"` and no `v` puts the unit at the end of the number, on its baseline. Replacing the copy moves the unit. ## Editing [#editing] | Gesture | Source patch | | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Drag an attached drawable off its point | `translate-x` and `translate-y` on that drawable | | Slide it along the host | One locator value | | Move a point of the host, or change a size or the copy | The geometry's own values. Nothing attached is rewritten. | | Insert or delete a point of the host | A structural edit. `vertex` counts points, so the editor renumbers the `vertex` bases and keys of everything attached to that host, through groups, sequences and mask sources. | | Group attached drawables | The group element is added around them. No value changes. | | Move a drawable into or out of a host | A structural edit. The editor rewrites its locator and translation to keep its place at the current instant. | ## Vocabulary [#vocabulary] | Kind | Owner | Name | Values | Meaning | | --------- | -------------------------------------- | ---------------------------- | -------------- | ----------------------------------------------------------------------------- | | element | `shape` (added to the existing owners) | `shape`, `group`, `sequence` | | A drawable attached to the shape's geometry. | | attribute | `shape`, `group`, `sequence` | `u`, `v` | | Shares of the width and height of the host's bounds. Each is optional. | | attribute | `shape`, `group`, `sequence` | `along` | | Share of the length of the host's contour, in the measure a trim uses. | | attribute | `shape`, `group`, `sequence` | `vertex` | | An authored point of the host's contour, from 0. A fraction lies between two. | | attribute | `shape`, `group`, `sequence` | `orient` | `none`, `auto` | Add the contour's direction at the point to the rotation. | Nested drawables and the five unqualified attributes on their specified owners have Level 1 meaning. Earlier drafts treated these names as render-neutral [host attributes](https://nothing.graphics/docs/format/spec#source-and-names). A host that uses one of these spellings for its own metadata can move it into its own XML namespace. ## SVG interchange [#svg-interchange] An importer writes each SVG marker as attached drawables: one per vertex the marker property covers, with `vertex` set and `orient="auto"` when the marker's `orient` is `auto`. `refX` and `refY` become an offset of the marker's content. An importer identifies each loss. * The shared definition becomes copies, so editing one arrowhead no longer edits them all. * A marker in `strokeWidth` units is written at its resolved size and no longer follows the stroke width. * SVG assigns start and end to the first and last vertices of the entire path, and marks the intervening vertices across subpaths. A path with several subpaths has no vertices here, so the importer splits it into one shape per subpath or writes the markers at resolved positions. Splitting a compound path can change its fill or stroke, so retain the original painted path and use unpainted subpath guides when needed. * A marker's viewport clips its content by default. The importer adds a mask or reports the difference. * `paint-order` can put markers between the fill and the stroke. Attached drawables paint beneath all of a shape's own paint or above all of it. For a compatible SVG motion animation or CSS motion path, write an unpainted path host and put `along` on its moving child. Add `orient="auto"` to match automatic tangent rotation. Resolve units, anchor and transform order, and convert progress and timing on the child. For a compatible set of oriented vertex decorations, an exporter can synthesize SVG marker definitions when role, scale, facing, clipping and paint order agree. A closed seam may carry separate SVG start and end markers at the same point. Resolve or report context-dependent marker paint and any difference at a reversing corner. [SVG 2 markers](https://www.w3.org/TR/SVG2/painting.html#Markers) Export has no SVG form for `u` and `v` on arbitrary bounds or for text as a host. An exporter writes the resolved transform at each sample and reports that the attachment is lost. ## Outside this chapter [#outside-this-chapter] These were considered and left out. Each is a real need and none is blocked by the rules above. 1. **Relations between siblings.** One drawable placed against another by name. That is the [pin proposal](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/pins/README.md), which stays a separate study ([gridaco/nothing#147](https://github.com/gridaco/nothing/issues/147)). 2. **Size from a host.** A plate behind a word and an underline as wide as it need two points of the host. A locator gives one. 3. **A flat run.** Words that follow each other without nesting. Attached words can chain, one inside the other, but a transform or opacity on one then carries the rest. 4. **Upright attachment.** Following a point without taking the host's rotation. 5. **Repetition.** One drawable on every vertex, or at intervals. A generator writes the copies. 6. **More of text.** The end of the last line, the baseline of a line other than the first, and a contour for text or a boolean. 7. **Vertices of a rectangle or an ellipse.** They have none today. A rectangle's corners are reachable as `u` and `v`. 8. **Surfaces.** A 3D host would take `u` and `v` on its surface with the same rule. It needs a projection, an order by depth and a facing rule of its own. Readers sample [point lists and path data](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) before measuring a contour. A change in vertex count or command structure requires a held segment. ## Design evidence [#design-evidence] **Precedents.** SVG's marker is the model: the shape owns what marks it, and the marker's own coordinates decide which part lands on the point. `along` with `orient` is the motion path of CSS and After Effects, made a shape in the scene that several drawables share. `u` and `v` are the normalized anchors of Unity and Godot, read from a geometry's bounds in place of a layout box. A one-way dependency is what separates this from a CAD sketch, whose two-way relations need a solver. [Precedent study](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/attached-drawables/precedents.md) **Decisions.** Each was a choice between written alternatives. | Decision | Alternative | Why this one | | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | The attached drawable is nested in the shape and carries its own locator. | A wrapper element that owns the locator. A container that names one child as a guide. | It is the flattest form that states ownership. A shape with no paint is already an invisible guide, and a painted host needs no copy of its geometry. Nesting is how a mask source and a boolean operand already state membership. | | A group passes through to the host outside it. | Report a locator inside a group. | Grouping is the commonest structural edit and must not move anything. A group has no bounds here, so passing through is one sentence. | | Paint order follows the position of the geometry element. | Attached drawables always paint above. An attribute for beneath. | A glow or plate behind its host is common. Document order already orders drawables and strokes. | | `along` faces the way the contour leaves. A whole `vertex` faces halfway through its corner. | Halfway at every corner. Leaving at every corner. | A whole vertex is SVG's mid marker and must import unchanged. A share of the length lands exactly on a corner only by rounding, so a halfway rule there would differ between implementations for one frame. | | A keyed locator needs a base. | A released track leaves the drawable at the origin. | The drawable would jump between the origin and the contour. The draft already asks an animated `inline-size` for a base. | | A report is tested at each sample. | Reports about authored values only. | A host's point count and closure can change at a key. | | Three kinds of locator, one per drawable. | One attribute with a typed value. Named points such as `top-right`. | A number keys and interpolates. Bounds, length and vertex are three different addresses: a share of the length suits travel, and a vertex stays on the author's point when the others move. | | `u` and `v` are independent, and an omitted one is 0. | Both required. Default 0.5. | A drawable can take one axis from the host and keep the other explicit. With text at (0, 0), `u="1"` alone is the end of the line on its baseline. | | `along` uses the trim's contour and range rules. | A second parameterization. | One concept, one measure. The road case drives a trim and a locator with the same keys. | | A reported locator leaves the drawable at its parent's origin. | Use the first of several. | One result for every structural problem, and the picture shows that something is wrong. | | Omitted `u` or `v` is 0 on that axis. | The geometry's own anchor, such as a text's `x` and `y`. | Zero is the same for every geometry and is what a drawable with no locator gets. It costs the idiom below: keep a text's `y` at 0 to reach its baseline. | | The offset turns with `orient`. | Offset in the host's axes. | A label beside a moving point stays on the same side of the path. CSS motion path composes the same way. | **Traps found in review.** An independent review listed what an author is likely to get wrong. None is unsound. Each is taught in the guide or recorded as outside the chapter. * **An omitted `v` is the parent's y = 0.** It is neither an edge of the bounds nor the baseline. With ``, a unit with `u="1"` sits 120 above the baseline. Keep the text's `x` and `y` at 0 and move its shape. * **Locators add through an attached group.** A group at `u="1" v="1"` holding a drawable at `u="1" v="1"` puts that drawable at twice the corner. * **A transformed group takes its content off the contour.** * **Two shares.** A fraction of a `vertex` is a share of one stretch. `along` is a share of the whole contour. * **`vertex` counts points.** Inserting a point renumbers the ones after it. On a closed contour a number past the last vertex wraps without a report. * **Scaling a host scales what is attached.** A scale pop on a card pops its badge with it. **What ran.** The [cases](https://github.com/gridaco/nothing/tree/main/ncf/conformance/attached-drawables/) carry expectations a second implementation can read: 21 scenes and 235 checks, each derived by hand with arithmetic text metrics. They include the positions the draft publishes for its trimmed road and the worked numbers of its spatial chapter. A [property run](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/attached-drawables/engine/fuzz.py) generates random documents, hostile values among them, and checks eight invariants, such as that grouping moves nothing and that nothing outside a drawable's subtree depends on it. Three deliberately broken resolvers are each caught. Four authors who saw only the guide wrote four briefs correctly and answered every reading question. An independent review found no fundamental flaw, and its findings are folded into the rules above. The [README](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/attached-drawables/README.md) records each result. # Boxed geometry and drawable placement [Canonical page](https://nothing.graphics/docs/format/spec/boxed-geometry) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/boxed-geometry.md) Sizing, registration and offsets for rectangles, circles and ellipses. **Ratified 2026-12-03.** A drawable places the whole object. A rectangle, circle or ellipse defines its contour within that object's local coordinates. This chapter defines the Level 1 source contract. N4 and the standalone preview evaluate these properties before constructing the contour. [Conformance cases](https://github.com/gridaco/nothing/tree/main/ncf/conformance/boxed-geometry/) · [Transform review](https://github.com/gridaco/nothing/issues/157) · [Geometry position review](https://github.com/gridaco/nothing/issues/158) ## Size, registration and offset [#size-registration-and-offset] | Geometry owner | Required size | Box dimensions (W, H) | Default (`anchor-u`, `anchor-v`) | | -------------- | ----------------- | --------------------- | -------------------------------- | | `rect` | `width`, `height` | (width, height) | (0.5, 0.5), center | | `circle` | `r` | (2r, 2r) | (0.5, 0.5), center | | `ellipse` | `rx`, `ry` | (2rx, 2ry) | (0.5, 0.5), center | Each omitted registration axis resolves to 0.5, independently, at Base and whenever that axis samples its default. With both offsets omitted, an unadorned primitive is centered at drawable-local (0, 0). The four optional properties belong to the geometry element. [Ratification and one-property edits](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/centered-rectangles.md) * `anchor-u` and `anchor-v` are finite signed fractions of the unpainted width and height. Zero selects the left or top edge, one the right or bottom edge. Values outside that interval extrapolate. Use `1.25` to place the registration point a quarter-width beyond the right edge. * `offset-x` and `offset-y` give the coordinates of that registration point in drawable-local units. Both default to zero. Keying an offset slides the contour through the local frame. The size and corner radii remain independently editable. At Base or at the requested local time, resolve each property's own base or track first. The sampled fractions (u,v) and offsets (gx,gy) determine the local box. ``` left = gx − u × W right = left + W top = gy − v × H bottom = top + H center = (left + W/2, top + H/2) ``` Construct the rectangle and its rounded corners inside this box. A circle or ellipse uses this center and its authored radii. Sizes and radii are nonnegative finite lengths. When W is zero both horizontal bounds equal gx, even if u is negative or animated. The same rule applies to H and gy. A collapsed primitive can still locate an attached child. Reflection acts later through drawable scale. [Geometry and corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) · [Degenerate hosts](https://nothing.graphics/docs/format/spec/attached-drawables#what-a-geometry-offers) Each of the four properties is independently keyable using scalar interpolation on its owner. Preserve the time unit of each key. If both width and registration animate, multiply their sampled values **at the requested instant**. Interpolating only the resulting endpoint corners can change the intervening motion. [Animation](https://nothing.graphics/docs/format/spec/animation) ## What follows an edit [#what-follows-an-edit] For a root shape translated to (100, 60) containing ``, the unrotated rectangle spans x = 60…140 and y = 50…70. Changing only the shape’s `rotate` to 90 keeps the center at (100, 60) and gives extents x = 90…110 and y = 20…100. Starting from the unrotated shape, changing only `width` to 120 gives extents x = 40…160 and y = 50…70. Both edits use the same local pivot (0, 0). [Executable rectangle case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) A sign using the default pivot can turn about a bolt at its left midpoint. ```xml ``` Changing only `width="80"` to `width="160"` keeps the bolt at (240,120). The lamp follows the sampled right edge along the tilted axis and keeps its radius. Omitting `anchor-u` registers the sign's center at the bolt. For an outboard bolt, `anchor-u="1.25"` and zero offset leave a gap of 20 at width 80 and 40 at width 160. To keep a constant 20-unit gap at both widths, write `anchor-u="1" offset-x="-20"`. * A child with a bounds or contour locator reads the resulting geometry. An unlocated child's frame stays at the owner's local origin. A local user-space gradient retains its authored coordinates as the contour moves across it. An image paint fitted to the geometry uses the resulting box. Masks and boolean operands keep their existing ownership and placement rules. [Attachments](https://nothing.graphics/docs/format/spec/attached-drawables) · [Paint](https://nothing.graphics/docs/format/spec/graphics#paint) * A drawable's `translate-x/y` moves its assembled artwork in the parent or attachment frame. Its `pivot-x/y` is an absolute local point, default (0,0), for scale, shear and rotation. Changing a dimension never rewrites that pivot. A live hinge tracking a changing geometric center requires authored motion when the registration point lies elsewhere. [Local-to-parent transform](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) * The geometry child retains its paint-order slot. A shape's transform and appearance still belong to that shape after a geometry replacement. Text retains its baseline and text anchor. Paths retain their authored points. Groups and sequence placements have their own transforms. None acquires a box registration. * Artwork on a spatial plane resolves locally before the plane pose and camera projection. An ordinary 2D shape needs no camera or plane fields. The plane's existing visibility and projection rules apply. [Spatial trial](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) ## Names and interchange [#names-and-interchange] Use the four registration and offset names only on `rect`, `circle` and `ellipse`. Apply the ordinary wrong-owner, invalid-scalar and track diagnostics. Under this contract a strict reader diagnoses unqualified `x/y` on a rectangle and `cx/cy` on a circle or ellipse, including tracks targeting them. The same spellings keep their defined meanings on text and gradients. Namespaced host attributes remain opaque. [Source and names](https://nothing.graphics/docs/format/spec#source-and-names) To preserve a resolved SVG rectangle’s x/y and its response to a width or height edit, write `anchor-u="0" anchor-v="0"` and map x/y to the corresponding local offsets. A circle or ellipse maps its SVG center directly to those offsets with default registration. Export the sampled left/top for a rectangle or the sampled center for a circle or ellipse. [SVG crosswalk](https://github.com/gridaco/nothing/blob/main/ncf/docs/svg-crosswalk.md) For an internal corpus rewrite, rename each former coordinate and its directly owned track target on the corresponding primitive. Preserve the base even when it differs from the first key, as well as easing, timing and unrelated source bytes. Detect a collision with existing unqualified host metadata before assigning a new core name. Migration tooling performs this rewrite. ## Design basis [#design-basis] Rive's parametric origin makes a change of width grow a bar about a chosen point. After Effects gives a parametric path its own position and size inside a separately transformable group. These edits distinguish a proportional mounting distance, a fixed contour displacement and a whole-object Move, even when all three give the same still. The existing NCF doctrine of local property ownership covers each operation. [Rive shape origins](https://rive.app/docs/editor/fundamentals/origin#origin-of-a-shape) · [After Effects shape paths and transforms](https://helpx.adobe.com/after-effects/desktop/drawing-painting-and-paths/vector-graphics-and-raster-images/overview-shape-layers-paths-vector.html) · [NCF doctrine](https://github.com/gridaco/nothing/blob/main/ncf/DOCTRINE.md) # Trimming a stroke [Canonical page](https://nothing.graphics/docs/format/spec/contour-trim) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/contour-trim.md) Reveal a stroke over an interval of the original contour’s length. A stroke may own one `trim` with explicit `start` and `end` attributes. Both are independently animatable, finite positions measured in lengths of the shape's sampled path in local coordinates. The stroke paints the selected part using its own width, caps, joins, alignment, and paint stack. A stroke with no trim follows the whole contour. All paints in the stroke share the trim. ## Full casing, growing stripe [#full-casing-growing-stripe] ```xml ``` The contour is 100 local units long. At frame 12 the stripe ends at (50, 0) in shape coordinates. At frame 18 it turns the corner and ends at (60, 15). The casing reaches (60, 40) throughout. The shape's translation adds (16, 16) to each of those positions in the scene. If the artist extends the final leg to (60, 60), the new total is 120. At frame 18 the same key now places the stripe end at (60, 30). The edit changes one point pair in the geometry. ## Directed contour and distance [#directed-contour-and-distance] Measure along the contour in the direction in the table. For total length `L`, the selected interval runs from `start × L` to `end × L`. Measure curves by arc length. In particular, halfway along a Bézier can have a curve parameter other than 0.5. Recompute from sampled geometry when its dimensions or control points change. Apply the owner's spatial transform after stroking. | Geometry | Start and direction | | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `line`, `polyline` | Start at the first endpoint or vertex. Follow the authored order. | | `polygon` | Follow the authored vertices and include the return segment to the first vertex. | | `rect` | Start at (left + used top-left radius, top) of the [sampled box](https://nothing.graphics/docs/format/spec/boxed-geometry), traverse the top edge to the right, and continue clockwise through the corner arcs. | | `circle`, `ellipse` | Start at the rightmost point and travel clockwise in the local x-right, y-down coordinate system. | | `path` | Follow the authored subpaths in command order. Include each closing edge in the drawn length. | ### Paths with several subpaths [#paths-with-several-subpaths] One stroke owns one interval across the total drawn length of its path. Visit each subpath in authored order. A move starts a new contour and consumes zero distance. A close contributes the distance back to that contour’s start. A drawing command immediately after a close begins another contour at that same point. For a compound path, both trim positions must lie in \[0, 1], including when every contour closes. Intersect the selected interval with each contour’s distance range. Emit each positive-length overlap as a separate stroked piece. At a pen lift, retain both exposed caps and draw no bridge. An endpoint exactly at the lift gives the next contour zero coverage, even with round caps. A fully selected closed contour keeps its closing join. A full \[0, 1] interval paints the ordinary stroke. In a proper subinterval, zero-length contours contribute neither distance nor ink. For example, if a signature’s name measures 60 units and its underline measures 40, `` draws the whole name and 10 units of the underline. Moving the underline farther away preserves the reveal timing. To animate the two marks independently, author separate shapes and put a trim on each stroke. [Pen-lift and closed-loop fixture](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-trim.nothing) Diagnose trim on text and boolean geometry, whose generated contours have no authored traversal order. Stroke trimming leaves the geometry used by fills, masks, boolean operands, and sibling strokes intact. [Shape and stroke contract](https://nothing.graphics/docs/format/spec/graphics#paint) ## Coverage [#coverage] * On an open contour both positions must be in \[0, 1]. Diagnose an out-of-range base or key at its authored location. The full interval from 0 to 1 paints the ordinary open stroke, including its endpoint caps. * On a single closed contour both positions are unwrapped. Integer values mark successive visits to the seam, with one unit per lap. Negative positions count back from the authored origin. Sample both tracks in these coordinates before wrapping. A path that returns to its start with a line or curve follows the open rule unless it closes with `Z`. * If `end <= start`, the stroke has zero coverage, including when `start=0.8` and `end=0.2` on a closed contour. On a closed contour a span of one lap or more paints the full closed stroke exactly once, preserving its seam join and paint opacity. * For a closed span strictly between zero and one lap, begin at the fractional part of `start` (its value minus its floor) and travel forward by `end - start` laps. Crossing the seam continues the same stroke through the original join. Caps occur only at the two trim ends. * For a proper subinterval of positive length, extract the curve segment and apply the stroke's caps to its two ends. Interior vertices keep their joins. When a cut coincides with a corner, the endpoint cap follows the tangent on the retained side. Zero-length pieces contribute no distance. A partial interval on a contour of total length zero gives empty coverage. * Centered strokes use the width centered on the selected curve. For inside or outside alignment on a simple closed source, construct the centered band of twice the stroke width around the selected segment, using the stroke's caps and joins. Intersect that band with the original filled region for inside alignment, or with its exterior for outside alignment. An open source contour follows the usual center-alignment rule. * Compute paint coordinates and image fitting from the same shape geometry used by the full stroke. Trimming changes coverage. A gradient highlight keeps its position as the stripe passes through it. For example, `` paints the last eighth and first eighth of a closed rail as one band. Add 0.25 to both coordinates to move the band a quarter lap. To retime just its head crossing the seam, move the frame of its `end` key with value 1. The `start` track still controls the tail independently. Rive calls the per-stroke operation Trim. GSAP’s `sliceRawPath` uses unwrapped positions for a path interval, allowing either end to cross the origin continuously. NCF applies that convention to stroke coverage. [Rive Trim](https://rive.app/docs/editor/manipulating-shapes/trim-path#trim) · [GSAP path slicing](https://gsap.com/docs/v3/Plugins/MotionPathPlugin/static.sliceRawPath%28%29/) Lottie Trim Path defines selection by fractional distance and includes rules for applying one operation to multiple paths. Skia's path measurement API extracts a segment along one contour. SVG defines the direction and equivalent path for basic shapes, the length of a path, and the effect of caps on stroke ends. A stroke-local owner in NCF lets the artist key one stripe while the other stroke still follows the complete road. [Lottie shape modifiers](https://lottie.github.io/lottie-spec/latest/specs/shapes/) · [Skia path measurement](https://api.skia.org/classSkPathMeasure.html) · [SVG basic shapes](https://www.w3.org/TR/SVG2/shapes.html) · [SVG path distance](https://www.w3.org/TR/SVG2/paths.html#DistanceAlongAPath) · [SVG stroke caps](https://www.w3.org/TR/SVG2/painting.html#LineCaps) ## Checks for implementation and review [#checks-for-implementation-and-review] | Change or sample | Expected result | | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | Sample the road at frames 18, 0, and 18 again. | Both frame-18 samples end at local (60, 15). At frame 0 the stripe contributes no coverage, including at its start. | | Change the stripe's final key value to `0.8`. | At frame 12 it ends at local (40, 0). Only that key value changes in source. | | Use `M 0 0 C 0 0 0 0 80 0` as an open path with a centered stroke and trim from 0 to 0.5. | The segment ends at (40, 0). Its curve parameter is the cube root of 0.5. | | On that cubic, set stroke width to 8. Sample (42, 0) with butt caps, then round caps. | The butt cap ends at x = 40 and leaves the sample clear. The round cap extends to x = 44 and covers the sample. | | On a 100 × 100 rectangle at the origin, use a centered miter stroke of width 6 with butt caps. Set the trim end to 1, then 0.25, with start at 0. | The seam join covers (−1, −1) at full length. The partial stroke starts with a butt cap and leaves that point clear. | | On the same rectangle, use start 0.875 and end 1.125. Add one lap to both positions, then try subtracting one lap from both instead. | Each sample follows the left edge from (0, 50) to (0, 0) and the top edge to (50, 0). The join covers (−1, −1) and only the two tips have caps. | | On a 100 × 100 rectangle at the origin, trim an inside stroke of width 6 from 0 to 0.25, with butt caps. | The top edge is selected. Point (50, 5) is covered and (50, −2) is clear. Changing only the alignment to outside reverses those samples. | | Put a second paint on the stripe and move the penultimate vertex of the polyline. | Both paints follow one trimmed band. The dark casing follows the same edited contour over its full length. | # Source filters, backdrop filters and box shadows [Canonical page](https://nothing.graphics/docs/format/spec/filters) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/filters.md) Ordered source filters, backdrop blur and rectangle shadows. A shape, group or sequence can own one optional `filter`. Its children form an ordered list of named image operations. The first operation receives the assembled local picture. Each subsequent operation receives the entire preceding result. Operations may repeat, and an empty list returns its input. The filter occupies no drawing slot among the owner's children. ```xml ``` For a shape, start with attached drawables written before the geometry. Assemble outer box shadows, fill, inset box shadows and strokes, then the attachments written after the geometry. [Attachment order](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) For a group, assemble its children on transparency. For an active sequence, obtain its sampled picture. A nonempty source filter establishes this isolated input even on a pass-through owner and even for a sampled identity operation. Filter the resulting image in the owner's local coordinates, apply the owner's mask and opacity once, then transform and composite into the parent. A filter can extend pixels outside the original geometry. The scene viewport and any enclosing clips still apply. On a referenced sequence, the source scene clips its own picture before the placement filters it. Sound is independent of these operations. [Spatial composition](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) · [Sequence clocks](https://nothing.graphics/docs/format/spec/sequences) ## Backdrop blur [#backdrop-blur] A shape, group or sequence may own one `backdrop-filter` in addition to its source `filter`. It contains exactly one `blur`. Its nonnegative `sigma`, default zero, and its animation use the ordinary blur units and owner clock. Both filter declarations are properties of the drawable. Their XML positions do not determine their evaluation order. At the owner's paint position, take the accumulated image **D** in its parent paint scope at the sampled instant. At the scene root this includes the background and earlier drawables. Inside an isolated owner it includes earlier painting in that picture. An unfiltered pass-through owner also exposes its enclosing backdrop to its contents. Inside a referenced scene the read starts with that scene's own background. A backdrop filter on the *placement* reads the enclosing scope. An inactive sequence contributes nothing. Sampling a standalone scene requires only its declared inputs. Compute **F** by Gaussian convolution of D in premultiplied linear sRGB, including alpha, using the owner's local coordinates. The full local-to-picture map carries the kernel into picture space, including camera zoom and nonuniform scale. Clamp samples at a finite scene viewport edge. Empty parts of an isolated scope are transparent. The kernel may read past the edge of the affected geometry or mask. An allocation or tile edge introduces no sampling boundary. For a shape, let **g** be coverage of its sampled filled geometry, including holes, independently of fill paint, stroke, shadow and attachments. For a group or sequence, require an explicit owner mask and use **g = 1**. A missing required mask, a duplicate backdrop filter, or any operation list other than one blur requires a diagnostic. Let **w** be its mask coverage (default one) times its opacity. Keep the existing source compositing behavior throughout the owner: 1. Form the adjusted background **A = mix(D, F, g)** in premultiplied linear sRGB. 2. Convert A to premultiplied encoded sRGB. Draw the owner onto A according to its [layer blend mode and source scope](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) to obtain **C**. 3. Replace the destination with **mix(D, C, w)** in that same premultiplied encoded space. Apply w once to all four channels. A zero sigma gives the ordinary source compositing result. A transparent panel can blur through its geometry. Its source shadow can extend beyond that geometry. A geometry mask or boolean operand reads only geometry. When rendering a mask's visual source, evaluate it in its own transparent scope. In the [panel case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing), resize one rectangle to move the tint and blur boundary together. Edit the blur's sigma to soften the plate, or edit the separate source shadow to move the panel's shadow. CSS also gives a drawable a backdrop effect and an independent source effect. SVG 1.1 exposes image inputs on individual graph primitives. An After Effects adjustment layer gives the effect its own position in the layer stack. The panel edit needs one geometry owner and two independently editable effects. [CSS backdrop filters](https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty) · [SVG filter inputs](https://www.w3.org/TR/SVG11/filters.html#FilterPrimitiveInAttribute) · [After Effects adjustment layers](https://helpx.adobe.com/after-effects/desktop/work-with-layers/create-layers/creating-layers.html) ## Operations [#operations] | Operation | Meaning | | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `blur` | Convolve premultiplied linear-sRGB color and alpha with a normalized, isotropic Gaussian. Source blur samples transparent black beyond the input. Backdrop blur uses its scope’s sampling boundary. | | `drop-shadow` | Blur the **input alpha**, offset it by `dx` and `dy`, and multiply it by the alpha of `color`. Tint with that color's RGB. Composite the original input over this shadow in linear sRGB. The next operation sees both. | | `inner-shadow` | Tint the **preceding image** along the inside of its alpha silhouette, including around holes. Preserve its alpha at every pixel. Positive `dx` shades the left inside edge of an opaque vertical bar. | For an inner shadow, let `A` be the input alpha and `B` its Gaussian blur offset by `(dx, dy)`, with zero beyond the input before convolution. Set `q = color.alpha × (1 − B)`. For input premultiplied linear-sRGB color `P` and straight linear shadow color `C`, output `((1 − q) × P + q × A × C, A)`. A fully transparent input stays transparent. A translucent region can receive tint throughout, even with zero blur and offset. The next operation receives this whole image. All Gaussian blurs, including box shadows, take the same nonnegative `sigma` in local units. Zero copies the input to the blur stage. A zero-sigma shadow has a sharp edge. `dx` and `dy` are finite signed local lengths, right and down positive. These three lengths default to zero. Each shadow requires an explicit `color="#RRGGBBAA"` in encoded sRGB. Convert colors to the working space for filtering. Offsets, spread, sigma and color can each own an ordinary property track. A placement's filter samples on the placement's parent clock, and filters within its source sample on the source clock. [Property animation](https://nothing.graphics/docs/format/spec/animation) ## Outer box shadows [#outer-box-shadows] A shape with rectangle geometry may own any number of `box-shadow` children. Each uses the same sampled, untransformed rectangle, including its used corner radii. The caster is opaque geometry even where the rectangle's fill is transparent. The default `inset="false"` draws the outer shadows behind the fill. Paint shadows of the same kind in document order, later over earlier. 1. Expand the rectangle outwards on each side by `spread`, a signed local length with default zero. A negative value contracts the caster. A zero-area original or collapsed caster casts no shadow. 2. Keep square corners square. Add the spread to each other used radius, floor it at zero, and apply the rectangle's proportional fit rule to the resulting radii. [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) 3. Blur the caster coverage with `sigma`, offset by `dx` and `dy`, and tint as for a drop shadow. Exclude the original rounded rectangle's interior from the result, including when the shape has no fill. Each box shadow samples its own caster independently. ## Inset box shadows [#inset-box-shadows] With `inset="true"`, the same rounded rectangle defines an opening in an opaque plane. Start from the used corner radii and resize the opening using the outer-shadow rules above with the sign of `spread` reversed. Positive spread makes the inner band thicker. Blur the opening coverage, shift it by the authored offsets, and tint its complement with the shadow color. Clip the result to the original rounded rectangle. A collapsed opening shades the entire original rectangle. A zero-area original draws nothing. Paint inset shadows above the fill and below every stroke. An unfilled rectangle can therefore show an inset shadow. Its opacity comes from geometry and shadow color. In contrast, an image `inner-shadow` preserves the alpha of its input. The `inset` boolean accepts the discrete hold tracks used by other enumerated properties. A geometry mask or boolean operand reads geometry alone. An alpha or luminance mask reads the rendered shape, including its shadows and filter. [Mask coverage](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) For interchange, copy an isotropic SVG Gaussian standard deviation or CSS filter blur length to `sigma`. A CSS box shadow with blur radius 16 uses a reference Gaussian with sigma 8. CSS lists the foremost box shadow first, so reverse its list when mapping overlapping shadows. Verify spread and corner geometry on import. [CSS shadow blurring](https://www.w3.org/TR/css-backgrounds-3/#shadow-blur) · [CSS filters](https://www.w3.org/TR/filter-effects-1/#FilterFunctions) [Layer filters](https://github.com/gridaco/nothing/blob/main/ncf/examples/layer-filters.nothing) · [Inner shadows on geometry and image alpha](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) # Fonts [Canonical page](https://nothing.graphics/docs/format/spec/fonts) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/fonts.md) Resolve font families, weights, coverage fallback and font inputs. A text run requests a family and weight. The host supplies the fonts available to the renderer. An ordinary local editor can use installed fonts. A project can supply additional faces, and a headless renderer can use a fixed collection. All three consume the same scene. ## Authored request [#authored-request] `font-family` on `text` names one nonempty family. `font-weight` requests a weight from 1 through 1000 and defaults to 400. A `span` may override either field independently. Resolve inherited and animated values at the sample before selecting faces. [Text fields and inheritance](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) Treat the entire family value as a name. A comma does not start a fallback list. A path or URL in that field never authorizes a read or fetch. Level 1 has no font import declaration, embedded font payload or required companion manifest. A host can offer installation or project packaging outside the scene. ## Face selection and fallback [#face-selection-and-fallback] 1. Match the request against the host's available faces. The host controls its font sources, precedence, weight matching and fallback order. Keep the resolved primary face for paragraph metrics even when individual runs need another face. If the family is unavailable, report the authored request and source location, choose an available substitute and continue layout. 2. For text the primary face cannot shape, try suitable fallback faces. Preserve extended grapheme clusters, including combining marks and emoji sequences, and the shaping context of the surrounding script. Keep text covered by the primary face in that face wherever shaping permits. Successful coverage fallback is ordinary rendering. The requested family and weight continue to belong to their authored owner. 3. If coverage is exhausted, display a missing-glyph mark for the unresolved cluster, report its source range and face request, and continue with subsequent text. An empty font environment must be reported if the host cannot lay out the paragraph. Use the same resolved faces, instances, advances and cluster mapping for measuring, wrapping, painting, hit testing and deriving outlines. Face selection does not extend the Level 1 glyph artwork profile. A selected emoji face may supply a monochrome outline. Color-only or bitmap-only ink remains subject to the [glyph geometry rules](https://nothing.graphics/docs/format/spec/text#glyph-geometry). Opening or saving with different fonts preserves authored family, weight, spans and copy. Only an explicit author edit changes the request. Installing a missing face and reopening the original scene can therefore recover the intended typography. ## Reproducing a layout [#reproducing-a-layout] Different font environments may produce different line breaks, glyph ink, mask coverage and attachment positions. For repeatable rendering, supply the same primary and fallback font bytes, face indices, variable-font axis coordinates and selection order. Keep the shaping implementation, Unicode data and layout settings fixed. Shape in design units with default OpenType features for the script and language `und`. Test fixtures can bind names to exact files without creating scene syntax. [Font resolution cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/README.md) # Shapes, paint, and coverage [Canonical page](https://nothing.graphics/docs/format/spec/graphics) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/graphics.md) Drawable geometry, paint stacks, strokes, gradients, images and coverage. **Level 1 review draft.** A `shape` owns editable geometry and the operations that give it an appearance. At a sample time each stroke uses the same evaluated geometry. A stroke can select an interval along a contour. Paints are local to the fill or stroke that consumes them. [Level 1 specification](https://nothing.graphics/docs/format/spec) · [Canonical specimen](https://github.com/gridaco/nothing/blob/main/ncf/examples/canonical-draft.nothing) ## Non-destructive authoring [#non-destructive-authoring] A `shape` retains its identity across geometry edits. Changing its `rect` child to an `ellipse` edits the geometry of the existing shape. The shape keeps its paint and its place in the scene. An animation targeting the shape can therefore continue to target it across that edit. A fill or stroke owns its gradient. Author the gradient and its stops inline under the consumer's `paint` element. Two shapes can start with identical gradients and an edit to a stop affects only the consuming paint. In the canonical specimen, changing the circle's geometry and changing a stop in its linear gradient are independent edits. ## Timed composition [#timed-composition] A scene can contain shapes and timed placements in drawing order. A `sequence` places audio, footage, a referenced scene, or inline content. Sampling at time `t` determines which placements are active and their local sample times. The same rule applies recursively inside a compound clip for both picture and sound. Overlapping audio contributions mix on the output sample grid. [Sequence syntax and sampling rules](https://nothing.graphics/docs/format/spec/sequences) A timed scene declares its authored frame rate. An element owns the keyframes for its animated properties. A key can address a frame or an exact instant in seconds on the owning timeline. [Property animation](https://nothing.graphics/docs/format/spec/animation) ## Shapes [#shapes] Each `shape` has exactly one geometry child. Geometry and paint use the same local coordinates, with x increasing to the right and y increasing down. The shape contributes one drawable to its enclosing scene, shape, group, or inline sequence. A shape under a boolean or mask contributes to its owner in the role given below. | Owner | Graphics children | Meaning of order | | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `shape` | One geometry, zero or one `fill`, zero or more `stroke` siblings, rectangle shadows, attached drawables, optional `filter`, `backdrop-filter` and `mask` | An attachment before the geometry paints beneath the host’s own appearance. One after it paints above. [Paint order](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) | | `boolean` | Two or more operand shapes | The first operand supplies the starting region for subtraction. | | `fill` | One or more `paint` children | Later paints cover earlier paints within this operation. | | `stroke` | One or more `paint` children and zero or one `trim` | Paints stack in authored order on the selected stroke region. | | `paint` | One `solid`, `image`, or `gradient` | The child supplies the paint value. | | `gradient` | Ordered `stop` children | Each stop owns its ramp position and color. | | `mask` | One source shape | The source supplies coverage in the owner's local coordinates. | A property owner can also contain its `animate` declarations. These do not occupy graphics slots. Report a missing or excess required child at its owner, and identify a child or property attached to the wrong owner at its source location. For example, a second fill is an error. A second stroke starts another independent drawing operation. | Geometry | Definition | | ---------- | -------------------------------------------------------------------------------------------------------------------------- | | `rect` | `width` and `height` around the registered point | | `circle` | `r` and the registered box | | `ellipse` | `rx`, `ry` and the registered box | | `line` | Endpoints (`x1`, `y1`) and (`x2`, `y2`) | | `polyline` | Straight segments through the coordinate pairs in `points` | | `polygon` | The same point sequence with a closing segment back to the first point | | `path` | SVG path data in `d` | | `boolean` | Region formed by combining two or more ordered operand shapes | | `text` | Editable copy, spans, and their laid-out glyph geometry. [Text and layout](https://nothing.graphics/docs/format/spec/text) | Supply the geometry fields listed above in local units. The document-wide lexical and viewport rules apply. For these three primitives the [boxed geometry contract](https://nothing.graphics/docs/format/spec/boxed-geometry) resolves local bounds from dimensions, registration fractions and contour offsets. Rectangle dimensions and circle or ellipse radii are nonnegative. A zero dimension or radius gives zero filled area. Attachments can still measure degenerate bounds or a contour. [Hosts at their limits](https://nothing.graphics/docs/format/spec/attached-drawables#what-a-geometry-offers) An SVG importer resolves omitted geometry values or relative lengths using their SVG meanings. Author point lists as ordered `x,y` pairs separated by whitespace. An empty list has no bounds or contour. The single-contour examples use straight segments between successive points. [SVG shapes](https://www.w3.org/TR/SVG2/shapes.html) ### Path data [#path-data] A `path` requires one `d` attribute in the [SVG 2 path-data syntax](https://www.w3.org/TR/SVG2/paths.html#PathDataBNF), evaluated after XML attribute decoding. Use the raw command string in local units. CSS values such as `none` and `path(...)` are outside this grammar. An empty or whitespace-only value gives empty geometry. A nonempty path starts with `M` or `m`. Use either case for each command family. `M/m` moves, `Z/z` closes, `L/l`, `H/h` and `V/v` draw lines, `C/c` and `S/s` draw cubic Béziers, `Q/q` and `T/t` draw quadratic Béziers, and `A/a` draw elliptical arcs. Lowercase drawing and move commands use relative coordinates. An initial `m` is relative to the origin. Extra coordinate pairs after either move command draw implicit lines in the same coordinate mode. Other commands with parameters can repeat across complete argument groups. A close returns the current point to the subpath start. Each smooth curve reflects the preceding control point only after a curve of the corresponding family and otherwise uses the current point. Apply SVG's comma and whitespace rules, including adjacent numbers when their token boundaries are unambiguous, signed coordinates, fractional numbers and exponents. A decimal point requires at least one digit after it. Arc flags consume exactly one digit each, either `0` or `1`, including when adjacent to each other or the endpoint. For arcs, omit a segment ending at its start point, draw a line for a zero radius, use the magnitudes of signed radii, and scale insufficient radii together until the ellipse reaches the endpoints. [SVG path commands and implementation notes](https://www.w3.org/TR/SVG2/paths.html) Consume the entire attribute. An invalid command, separator, flag, incomplete argument group or non-finite number requires a diagnostic at the path's source location. Reject the malformed value as a whole. Keep the authored spelling, separators and command case when saving an unrelated edit. A path owns its interior through the optional `fill-rule` attribute. Use the SVG winding rules across all subpaths together. The default `nonzero` includes points whose signed winding number is nonzero. Under `evenodd`, a point is inside when a ray from it to the exterior crosses the path an odd number of times. Two nested contours drawn in the same direction therefore have a filled center under `nonzero` and a hole under `evenodd`. Reversing the inner contour makes a hole under both rules. These definitions include self-intersections. A path owns one rule for every paint in its fill, with hold keys for animation. Diagnose any other value. [SVG winding rules](https://www.w3.org/TR/SVG2/painting.html#FillRuleProperty) For fill coverage, implicitly close each open subpath. This closure contributes only to the interior. Strokes follow the authored commands. A closed path used as a geometry mask or boolean operand supplies the same sampled interior, even when it has no paint. The closed-contour requirement in those two roles applies to each drawn subpath. [Compound-path fixture](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-path.nothing) A path can have multiple subpaths. The [fill operation](https://nothing.graphics/docs/format/spec/graphics#paint) receives the whole path, and [contour trim](https://nothing.graphics/docs/format/spec/contour-trim) selects one interval across the drawn lengths of its subpaths in authored order. [Structured animation rules](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) apply to `d` values. ### Rectangle corners [#rectangle-corners] A rectangle owns five optional nonnegative finite lengths in local units. `corner-radius` supplies the shared radius and defaults to zero. `corner-top-left-radius`, `corner-top-right-radius`, `corner-bottom-right-radius`, and `corner-bottom-left-radius` each default to the sampled shared radius. An explicit corner value, including zero, overrides that default. Each property accepts an ordinary scalar track on the rectangle. When a corner track releases, use its authored base or, if absent, the current shared radius. Left and right refer to the local rectangle before any transform or reflection. ```xml ``` First sample the dimensions and the four corner values. For each edge, divide its length by the sum of its two adjacent radii, skipping a sum of zero. Multiply all four radii by the smallest of those ratios and 1. These used radii determine circular quarter-arcs tangent to the edges. A zero radius leaves a square corner. A zero width or height gives zero filled area and retains the collapsed contour for attachments. For example, radius 100 on a 120 × 40 rectangle uses 20 at every corner. Increasing just the height to 80 gives 40. Saving the width or height edit preserves the authored radius of 100. This proportional rule keeps the corner radii in the same ratios when constraints overlap. [CSS overlapping curves](https://www.w3.org/TR/css-backgrounds-3/#corner-overlap) Fills, strokes, trim, mask coverage and boolean operands use this contour. Image paints still fit to the rectangle's full width and height before clipping to its rounded outline. Stroke distance starts on the top edge at `(left + usedTopLeft, top)` of the resolved box and increases clockwise. [Contour trim](https://nothing.graphics/docs/format/spec/contour-trim) ### Boolean geometry [#boolean-geometry] A `boolean` occupies the geometry slot of a `shape`. It owns two or more ordered `shape` children as operands. Here the word cuts its letter shapes out of the rectangle. The enclosing shape supplies the blue paint. ```xml BOOK ``` | Required `type` | Region of the result | | --------------- | ------------------------------------------------------------- | | `union` | Inside at least one operand | | `intersection` | Inside every operand | | `subtraction` | Inside the first operand and outside every subsequent operand | | `exclusion` | Inside an odd number of operands | Only direct `shape` children are operands. Reordering them preserves the region for union, intersection, and exclusion. For subtraction, the first shape is the region to cut. The remaining shapes can be reordered freely. In the example, reversing the two operands gives an empty result because the rectangle contains all of the glyph ink. Preserve the authored order on save, including for operations whose resulting region is invariant under reordering. An operand contributes its geometry in the enclosing shape's coordinate space. Apply the operand shape's sampled local-to-parent transform to its contour before the boolean operation. Transforming the enclosing shape moves the entire result. Each operand retains its identity and any authored appearance. Resolving an operand requests only its geometry and local transform. Only the enclosing shape paints the result, so a stroke on that shape follows the boundary of the result, including holes. Changing `type` preserves the operand shapes and their order. A child shape can itself have boolean geometry for a nested operation. A shape whose geometry is `text` is a valid operand in **every position** of `union`, `intersection`, `subtraction`, and `exclusion`. At the requested sample, lay out its current text and spans using the bound fonts. Use the union of the positioned glyphs’ filled outlines as one operand. Spaces contribute advance only. Overlapping glyphs contribute their shared area once, including when the enclosing operation is exclusion. An empty string contributes an empty region. Apply the operand shape’s transform once. Its fill, stroke, shadows, filter, mask and opacity have no effect on this geometry. Preserve the editable text, spans and font properties when saving the boolean. [Glyph geometry](https://nothing.graphics/docs/format/spec/text#glyph-geometry) The [cutout example](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) subtracts `BOOK` from a blue card. Each O’s ink cuts through the card, leaving its enclosed center blue. Changing the word to `INK` recomputes the holes. The white line drawn later crosses them continuously. With the text as the first operand instead, subtraction would retain only the glyph ink outside the rectangle. The same operand model admits simple closed contours and nested boolean results. How an open contour or the expanded outline of an operand's stroke could supply a boolean region remains open. Closed compound paths supply the interior defined by their sampled `fill-rule`. ## Paint [#paint] A shape may own at most one fill and any number of sibling `stroke` elements. Draw the fill first, then the strokes in document order, bottom to top. Each stroke expands the same shape geometry with its own width, alignment, caps and joins. Sampling a width track changes only the stroke that owns it. Sampling the geometry supplies the contour for every stroke. An optional `trim` owned by a stroke selects a local arc-length interval for that stroke and all its paints. Its siblings retain their own coverage. [Stroke trimming](https://nothing.graphics/docs/format/spec/contour-trim) The fill and each stroke own one or more ordered `paint` children. The first paint is the bottom layer. Every paint owns exactly one typed value. Reordering two paints changes their stacking order while preserving their editable values. An omitted operation contributes nothing. Text can have independent fills on authored spans even when the enclosing shape has no fill. [Text appearance](https://nothing.graphics/docs/format/spec/text#appearance-and-editing) A paint's `blend-mode` defaults to `normal` (source over). This draft also defines `multiply` and `screen` with their usual separable blend functions `s × d` and `s + d − s × d` on normalized channels. Within a stack, combine each upper paint with the accumulated lower paints. Apply coverage once to the assembled stack and use the bottom paint's mode to composite the stack onto its destination. Apply this rule separately to each stroke's paint stack using that stroke's expanded outline. Solid alpha comes from `color` once. Use encoded sRGB channels for these blend functions and source-over alpha for compositing. Reference values precede output-device conversion and quantization. [Compositing and blending](https://www.w3.org/TR/compositing-1/) · [Paint stack precedent](https://github.com/gridaco/nothing/blob/main/ncf/docs/renderer-precedents.md) A stroke owns its explicit nonnegative `stroke-width`. Zero width contributes no coverage. For uniform strokes on a single contour, `stroke-linecap` accepts butt (default), round or square, `stroke-linejoin` accepts miter (default), round or bevel, and `stroke-miterlimit` defaults to 4. A miter beyond the limit becomes a bevel. `stroke-align` accepts center (default), inside or outside. For a simple closed contour an inside or outside stroke occupies its full width on that side. An open contour uses center alignment. Per-side and variable widths and multi-contour alignment require further rules. A `solid` carries a `color`. An `image` carries an `href` relative to the document that declares the paint. Report a missing image at that paint. The reference form uses `preserveAspectRatio="xMidYMid slice"`. Scale the intrinsic image uniformly until it covers the local geometry bounds on both axes, center it in those bounds, and paint through the operation's coverage. A referenced still SVG uses the same image paint as a raster asset. The shape owns the placement and the asset owns its artwork. Resolve SVG intrinsic proportions from its intrinsic dimensions or `viewBox` according to SVG image sizing. With no intrinsic aspect ratio, use the paint bounds as the SVG viewport. Apply the image fit once and clip through the shape. Treat the asset as an independent image document. Internal IDs, styles and fragment references resolve within that document. Use ordinary SVG image processing for still artwork, with scripting, interaction and external resource loading disabled. Embedded data and same-document references can supply its pixels. Preserve painted alpha, including for an image-painted mask source. A source-preserving edit retains the authored `href`. Replacing the asset affects each use on the next render. This case covers still images. [SVG image placement](https://www.w3.org/TR/SVG2/embedded.html#ImageElement) · [SVG image processing modes](https://www.w3.org/TR/SVG2/conform.html#referencing-modes) A `gradient` carries ordered stops and a required `type` that determines how the stops map onto the shape. Changing the type can reuse the same stops in the same order. | Gradient `type` | Geometry | Meaning | | --------------- | ---------------------- | ----------------------------------------------------------------------------------------- | | `linear` | `x1`, `y1`, `x2`, `y2` | A ramp from the first endpoint to the second | | `radial` | `cx`, `cy`, `r` | Offset zero at the center and one at the radius | | `sweep` | `cx`, `cy` | One clockwise revolution around the center, starting on the positive x axis | | `diamond` | `cx`, `cy`, `rx`, `ry` | Offset zero at the center and one on the diamond whose vertices lie at the two axis radii | For a nondegenerate linear gradient with start `a` and end `b`, the ramp coordinate at point `p` is the dot product of `p - a` and `b - a` divided by the squared length of `b - a`. For a radial gradient, divide distance from the center by `r`. For a sweep, a quarter-turn clockwise from the positive x axis gives 0.25. For a diamond with positive radii, the ramp coordinate is `abs(x - cx) / rx + abs(y - cy) / ry`. These coordinates locate a point on the ramp before evaluating its stops. [SVG gradient geometry](https://www.w3.org/TR/SVG2/pservers.html) · [Sweep and diamond renderer precedent](https://github.com/gridaco/nothing/blob/main/n2/crates/grida/src/painter/gradient.rs) The linear and radial gradients explicitly select local coordinates with `gradientUnits="userSpaceOnUse"`. The sweep origin uses ramp position zero. Coincident linear endpoints and zero or negative gradient radii lie outside this review profile and require a diagnostic on the gradient. Gradients carry ordered `stop` children, each with an `offset` from zero to one and a `stop-color`. Solid and stop colors use `#RRGGBBAA`, with encoded sRGB red, green and blue, followed by linear alpha. Each byte represents its unsigned value divided by 255. At a given time, sample each stop's properties. Compute its effective position as the greater of its sampled offset and the preceding effective position. The first position is the first sampled offset. This preserves document order and every authored value when animated stops cross. * Zero stops contribute transparent paint. One stop colors the whole ramp. * Before the first effective position, use the first color. Beyond the last, use the last color. At coincident positions use the last color there. * Between distinct positions, interpolate the four **straight** channels independently, using the fraction of the interval traversed. Approach a group of coincident stops using its first color and leave it using its last. Apply alpha when compositing the sampled color. These spatial rules adopt SVG's stop ordering, endpoint padding, and straight-color interpolation. Between color keys the same four channels use the interval fraction supplied by temporal easing. [Property interpolation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) · [SVG gradient stops](https://www.w3.org/TR/SVG2/pservers.html#GradientStops) · [Gradient animation cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#gradient-animation) ## Mask on a shape [#mask-on-a-shape] A `mask` is an optional direct child of a `shape`, `group`, or `sequence`. Its parent supplies the content. Its one nested `shape` supplies coverage in the parent's local coordinates. The declaration occupies no drawing slot. Moving it among the same parent's children preserves the result. Moving it to a different eligible parent changes which content receives its coverage. Apply the mask once to the assembled picture. On a shape this includes the fill, every stroke and all attached pictures. Outside the source, coverage is zero. * `type="geometry"` takes the filled interior of the source geometry with its local transform. It admits simple closed contours, closed compound paths with their sampled `fill-rule`, the glyph region of text, and closed regions produced by the admitted boolean operations. Skip the source’s attachments, paint, strokes, box shadows, source and backdrop filters, opacity and own mask. Its own locator and transform still place the geometry. [Letter matte and cutout](https://nothing.graphics/docs/format/spec/text#a-letter-as-a-matte-or-cutout) * `type="alpha"` uses the rendered source alpha. Opaque black and opaque white both reveal the owner. * `type="luminance"` samples the composited source in encoded sRGB. For straight components in \[0, 1], coverage is `A × (0.2126 R + 0.7152 G + 0.0722 B)`. At zero alpha coverage is zero. Opaque black hides and opaque white reveals. This fixes the color space for the CSS Masking procedure and takes the channel weights from Filter Effects Level 1. [Mask processing](https://www.w3.org/TR/css-masking-1/#MaskValues) · [Luminance to alpha](https://www.w3.org/TR/filter-effects-1/#feColorMatrixElement) The mask source owns its geometry, paint and animation in the usual way. Groups and placements use the same coverage operations in their own local coordinates. The spatial chapter specifies their coordinate spaces and how the assembled layer enters its parent. SVG mask regions and bounding-box units remain open. [Spatial composition](https://nothing.graphics/docs/format/spec/spatial) · [Renderer precedents and remaining decisions](https://github.com/gridaco/nothing/blob/main/ncf/docs/renderer-precedents.md) · [CSS mask processing](https://www.w3.org/TR/css-masking-1/) ## Evaluating a shape [#evaluating-a-shape] 1. Sample the shape, its geometry, paint, and mask properties at the owning composition's time. Base evaluation uses their authored values. 2. Resolve the host geometry once. Paint attached drawables that precede its geometry element. Draw the host’s outer box shadows, fill, inset shadows and strokes, then the remaining attachments. Run its [source filter](https://nothing.graphics/docs/format/spec/filters) on the assembled image. [Attachment order](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) 3. Apply the sampled mask coverage and the shape's `opacity` to the completed appearance. Opacity ranges from 0 to 1 and defaults to 1. Where opaque fill and stroke overlap on a transparent destination, a shape opacity of 0.5 produces alpha 0.5 even in the overlap. 4. Apply the shape's local-to-parent transform. Its geometry, paints and mask travel together. Groups and placements follow the same spatial contract. [Spatial composition](https://nothing.graphics/docs/format/spec/spatial) These rules determine source ownership, order, and coverage. A paint's blend mode works within the owner's appearance. Group compositing follows the spatial contract. Sampling at antialiased edges and output device color management require further rendering rules. [Property defaults and sampling](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) # Perspective camera optics [Canonical page](https://nothing.graphics/docs/format/spec/perspective-camera-optics) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/perspective-camera-optics.md) Ratified optical behavior for perspective cameras, including focus and defocus. **Ratified 2026-12-02.** This decision specifies the optical behavior of an NCF perspective camera. The spatial camera's source syntax, units and defaults remain under review. The NCF preview and N4 implement a perspective trial alongside the Level 1 2D camera. [Camera RFC](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) · [Level 1 cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) A perspective camera uses focal length, sensor width, f-number and focus distance. When depth of field is enabled, its reference model has an ideal circular aperture. The focus plane is perpendicular to the optical axis at the focus distance. Changing only focus distance moves that plane while preserving framing. Lens settings and a point's axial depth relative to the focus plane determine its defocus. Two points on the focus plane are equally sharp, even when one is at the edge of the frame. For an isolated point away from the focus plane, doubling the f-number halves the aperture diameter and hence the diameter of its defocus circle, with all other settings fixed. A renderer may choose its method for reproducing these optical results. ## Acceptance case [#acceptance-case] Hold the camera and a tilted route stationary. Place its endpoints at axial depths of 1 m and 1.3 m. At a focus distance of 1 m the near endpoint is sharp and the far endpoint is defocused. At 1.3 m the far endpoint is sharp and the near endpoint is defocused. At 1.15 m the point halfway along the straight route is sharp. The projected centers of all three points stay fixed throughout the pull. [Worked route and numerical checks](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-camera-focus.md#checks-for-this-example) ## Implementation evidence [#implementation-evidence] The N4 and standalone preview trials use 32 deterministic aperture samples per pixel. A small highlight with a large defocus diameter can resolve into separate copies of the highlight. The optical tests measure the center and size of the footprint. Smooth bokeh at large blur diameters is still an open quality target. [Optical measurements](https://github.com/gridaco/nothing/blob/main/n4/format/tests/perspective_optics.rs) UI Assembly applies these optics to editable paths and labels in three shots linked by two cuts. In the final shot the view holds steady as the sharp region moves along a tilted plane. [Open the demo](https://github.com/gridaco/nothing/blob/main/n4/examples/ui-assembly/README.md) # Level 1 audio, video, and nested sequences [Canonical page](https://nothing.graphics/docs/format/spec/sequences) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/sequences.md) Placement timing, nested scene clocks and audio mixing. A `sequence` positions a source in time. Picture and sound play at unit speed. Each placement maps parent time into its source and maps the source picture's local coordinates into its parent. Those maps are independent. [Document contract](https://nothing.graphics/docs/format/spec) · [Spatial composition](https://nothing.graphics/docs/format/spec/spatial) ## Sequence [#sequence] A `sequence` places content on its parent's timeline. It is a timed child of a scene, shape, group, or inline sequence. Each placement has exactly one source. | Form | Source | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Referenced | `href` identifies an audio file, movie footage, or a complete `.nothing` scene. A placement filter, mask and placement-property tracks may accompany the reference. | | Inline | The element owns its content, which may include shapes, groups, and further sequences. The element omits `href`. | Placing a composition inside another composition creates a **compound clip**. Either form admits property animations, one optional source filter, one optional backdrop filter and one optional mask on the placement. A placement with a backdrop filter requires that mask. The placement's properties, filter operations, and the shape inside its mask use the enclosing composition's time and frame rate. Inline drawable children and a referenced scene’s contents use mapped source time. An inline sequence passes the enclosing geometry host through to its children. Those children read the host geometry at the host’s own sample. A referenced scene establishes a fresh host at its resolved viewport. [Attached drawables](https://nothing.graphics/docs/format/spec/attached-drawables#hosts) Slipping the source leaves an aperture keyed on the placement at its original key times. The parent positions and trims it as one item. The child retains its editable contents and local timeline. Each placement of the same source has independent timing. An element supplying both a reference and inline source content requires a diagnostic on the placement. | Required attribute | Meaning | | ------------------ | -------------------------------------------------------------------- | | `begin` | Start of the placement in parent time | | `dur` | Positive duration in parent time | | `source-start` | Instant on the source's local timeline at the start of the placement | All three attributes accept exact seconds with an `s` suffix, including `0s`, `0.5s`, and integer fractions such as `1/48000s` with a positive denominator. `begin` and `dur` also accept an integer frame count followed by `f`. Each attribute chooses its unit independently. A frame count `n` resolves to `n / R` seconds at the authored rate `R` of the scene containing that sequence. Inline sequences inherit this rate. Placements inside a referenced scene use that scene’s rate. Preserve exact instants through nesting. For example, `begin="48f" dur="12f"` places a clip on parent frames 48 through 59. At 24 fps this is the interval \[2s, 2.5s). Editing the scene to 30 fps gives \[1.6s, 2s). A clip authored with `begin="2s" dur="0.5s"` stays at \[2s, 2.5s) through that edit. Writers preserve each authored unit. Changing only the export rate changes the sample grid and preserves the cut. `source-start` always uses seconds so an in-point can address the same source picture or audio sample across parent rate edits. ## Resolving a composition at time t [#resolving-a-composition-at-time-t] A placement needs an instant to select its source. Base evaluation exposes the placement's authored properties and its source for inspection. A picture or mix request that encounters a placement at Base requires a diagnostic requesting a sample time. A consumer can request `0s` explicitly to render the opening frame. A still without placements can render at Base. A composition resolves at an explicit sample time `t`. For a fixed document and resources, direct seeking, forward playback, and backward scrubbing to the same instant must produce the same visual state. Sampling preserves the authored values. 1. Evaluate each placement in its parent's time. It contributes during `begin <= t < begin + dur`. Outside that interval it contributes transparent pixels and silence. 2. For an active placement, compute `source-time = source-start + (t - begin)`. For footage, select the frame whose presentation interval contains `source-time`, measured from the start of the movie's presentation timeline. 3. For a referenced scene or an inline source, evaluate its drawable children with `source-time` as their parent time. Spatial groups pass this time to every child. Nested placements perform their own time mapping. 4. Start each scene with its own viewport background, transparent by default. Inline compositions start transparent. Composite active children in document order, later children over earlier ones. The child composition contributes one composited visual result to the placement. Apply the placement's source filter, then its mask and opacity (using the [backdrop replacement rule](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) when present) in its local coordinates, then place the picture using its sampled transform and layer blend mode. A placement can multiply or screen its completed source against its parent. A shape or group can contribute throughout its enclosing interval. Resolve relative references from the file that declares them. Repeated uses of the same source are valid. For a placement with finite source media, the requested source interval is `[source-start, source-start + dur)`. An interval extending beyond the available media, a reference cycle, or a missing source produces a diagnostic identifying the placement and source. The exclusive end may coincide with the exclusive end of the media. ## Source coordinates [#source-coordinates] A movie's local image starts at (0, 0) in its display orientation. Use the decoded picture's natural display dimensions as its extent, with one display unit per local unit. For an upright square-pixel frame these dimensions equal its decoded width and height. Resolve clean aperture, orientation, and pixel aspect information as part of the media input. A reader unable to establish its display geometry reports the placement and source. The placement paints transparent pixels outside the source image. A referenced scene paints within its own fixed canvas or, when its dimensions are absent, the viewport supplied by its enclosing scene. A group's transform and mask leave this supplied viewport unchanged. In both cases, place the source scene's origin at local (0, 0) and use one source unit per local unit before applying the placement transform. For inline content, children draw directly in placement-local coordinates. The enclosing scene supplies the viewport for references. Inline content gains a clipping boundary from an explicit mask or an enclosing finite scene. A smaller source at identity occupies its native dimensions in the parent's top-left corner. A larger source can extend beyond the parent canvas. The parent's visible extent clips the result. Scale and translate a placement to fit a shot, and put a geometry mask on its parent for a stationary window. The same mappings apply to a still, moving picture, and a referenced composition. [Worked pan and resize](https://nothing.graphics/docs/format/spec/spatial#footage-behind-a-stationary-window) ## Audio sampling and mixing [#audio-sampling-and-mixing] An audio file, a movie soundtrack, and the audio mix of a nested scene all use the same active interval and source-time mapping. A movie's picture and sound share its presentation timeline, preserving their relative timing when the placement moves or its source is trimmed. For an output interval `[a, b)`, evaluate each instant on the output audio sample grid that falls within the interval. At output rate `R`, root sample `n` has time `n / R` from the shot's time origin. Splitting an export into intervals preserves that grid. For matching source and output channel layouts and aligned sample grids, sum the contributions per channel. Each active placement contributes its source sample at mapped source time multiplied by its gain at parent time. A child with only visual content contributes zero. A compound clip's source sample is the sum for its child composition. Apply the compound clip's own gain once to that sum. A nested mix can exceed unit amplitude. Output encoding and resampling are separate from this sum. [Web Audio gain](https://www.w3.org/TR/webaudio-1.0/#GainNode) For example, two overlapping mono sources with sample values 0.75 and 0.75 and gains of 1 yield 1.5. Placing their inline composition at gain 0.5 gives a contribution of 0.75 to its parent. The same values apply when seeking directly to that sample. ```xml ``` This placement maps parent time 2s to source time 10s and 3s to 11s. At 5s its contribution is silence. If its enclosing compound clip begins at shot time 4s with `source-start="0s"` and lasts 6s, the voice is active on `[6s, 9s)` in the shot. ## Example and expected samples [#example-and-expected-samples] In this illustrative `shot.nothing`, all sources share the shot's dimensions and origin. The movie starts ten seconds into its footage. The graphic appears two seconds into the shot. ```xml ``` The referenced `graphic.nothing` can itself contain a sequence. Here its first half-second is transparent. The rectangle stays editable in its own file. [Graphic source](https://github.com/gridaco/nothing/blob/main/ncf/examples/graphic.nothing) ```xml ``` | Shot time | Sample from the movie | Sample from the graphic | Visible result | | --------- | --------------------- | ----------------------- | ---------------------- | | 2s | 12s | 0s | Footage alone | | 2.5s | 12.5s | 0.5s | Rectangle over footage | | 3s | 13s | 1s | Rectangle over footage | | 5s | 15s | Placement ended | Footage alone | | 8s | Placement ended | Placement ended | Transparent | At shot time 3s, the graphic receives 1s and its inner sequence receives 0.5s. An animation on the rectangle would therefore be sampled at 0.5s. Resolving that single shot instant exercises both levels of time mapping. Changing the graphic placement's `begin` moves it in the shot. Changing its `source-start` slips the content inside the same placement. A change to the rectangle is visible wherever `graphic.nothing` is referenced. A patch to `begin` alone keeps any keys authored directly on the placement at their original addresses in parent time. A fade authored on a shape inside the graphic travels with the graphic's local timeline. For a placement beginning at 2s with `source-start="10s"`, suppose the opacity of its alpha-mask source rises linearly from 0 at parent time 2s to 1 at 3s. At shot time 2.5s the mask opacity is 0.5 and the footage sample is 10.5s. Patching `source-start` to `10.25s` advances the footage sample to 10.75s and keeps the mask opacity at 0.5. ## Open questions [#open-questions] Persistent fitting constraints on resize or source replacement, export defaults, and declared scene duration remain open. Other open topics include audio stream selection, channel routing, resampling, clip time remapping, clip looping, and media color management. [Property animation](https://nothing.graphics/docs/format/spec/animation) ## What the precedents establish [#what-the-precedents-establish] | System | How it handles the shot | | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | OpenTimelineIO | A `Track` arranges items in succession. A `Stack` layers them. Both can nest, and a parent can select a range of a nested composition just as it can trim a clip. The source range and the item's range in its parent describe different coordinates. [Timeline structure](https://opentimelineio.readthedocs.io/en/latest/tutorials/otio-timeline-structure.html) · [Time ranges](https://opentimelineio.readthedocs.io/en/latest/tutorials/time-ranges.html) | | After Effects | A composition can serve as the source of a layer alongside footage. Editing the source updates its uses. Each layer can have its own transforms and timing. Preserving the nested composition's frame rate is a separate setting. [Precomposing and nesting](https://helpx.adobe.com/after-effects/using/precomposing-nesting-pre-rendering.html) | | Blender | A Movie Strip brings in footage. A Scene Strip can take another scene's camera output or Sequencer edit as input. A Meta Strip groups strips locally and can itself be nested. This distinguishes editing a local group from editing a source shared by several placements. [Movie strips](https://docs.blender.org/manual/en/5.2/video_editing/edit/montage/strips/movie.html) · [Scene strips](https://docs.blender.org/manual/en/latest/video_editing/edit/montage/strips/scene.html) · [Meta strips](https://docs.blender.org/manual/en/latest/video_editing/edit/montage/meta.html) | | SVG | An `image` can reference an entire SVG document by `href` and place its output in a rectangle. Later siblings normally paint above earlier ones. SVG animation uses `begin` and `dur` for timing and `from` for a starting value. These supply precedents for references, painter order, and timing vocabulary. [Embedded content](https://www.w3.org/TR/SVG2/embedded.html) · [Rendering order](https://www.w3.org/TR/SVG2/render.html) · [Animation](https://www.w3.org/TR/SVG11/animate.html) | # Level 1 spatial composition [Canonical page](https://nothing.graphics/docs/format/spec/spatial) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/spatial.md) Local coordinates, cameras, group isolation and compositing. A `shape`, `group`, or `sequence` can place its visual result in the coordinates of its parent. A single drawable owns its own transform. When several children move together, a group can own the shared transform and leave the children's coordinates editable. ## Cameras [#cameras] A `scene` can declare one or more named `camera` children. Cameras consume no paint slot. Each `id` is nonempty, case-sensitive, and uses only ASCII letters, digits, underscores or hyphens. IDs are unique within the scene. With cameras present, the scene supplies a `camera` attribute naming its base view. A scene without cameras uses the identity view. Diagnose a missing base selector, a duplicate ID or a selector value that names no camera in the same scene. [Scene vocabulary](https://github.com/gridaco/nothing/blob/main/ncf/docs/vocabulary.md) | Camera attribute | Default | Meaning | | ---------------------- | ------------------------------------------- | ------------------------------------------------------------------- | | `center-x`, `center-y` | Corresponding coordinate of viewport center | Point in scene coordinates framed at viewport center. | | `zoom` | `1` | Strictly positive magnification from scene units to viewport units. | | `roll` | `0` | Clockwise rotation of the camera axes in degrees. | The camera's numeric attributes take scalar property tracks on the scene's clock. Changing `scene.camera` takes held key segments with camera IDs as values. At an exact cut instant use the new camera. A track that releases its value returns to the next contributing track or the base selector. Moving the cut changes the selected view without retiming the scene's artwork or the cameras' own tracks. [Track evaluation](https://nothing.graphics/docs/format/spec/animation#evaluation) If `m` is the resolved viewport center, `c` is the sampled camera center, `z` is its zoom, and `R` is the clockwise y-down rotation defined below, a point `p` in scene coordinates is shown at `m + z × R(−roll) × (p − c)`. At +90 degrees of camera roll, a point right of the camera center appears above viewport center. Apply this map after local drawable transforms. The viewport clips the resulting artwork. An object beyond the untransformed viewport may come into view. The scene background fills the fixed viewport beneath the transformed artwork. Audio and scene time follow their existing rules. [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) A referenced scene resolves its own viewport and camera at its mapped source time. Its placement transforms and masks that projected picture in the enclosing scene, which may have a camera of its own. Groups and inline sequences share the enclosing scene's view. This camera model covers 2D framing, pan, zoom and roll. Perspective and depth use the projection proposed in the scene camera RFC and the separately ratified optical behavior. [Scene camera RFC](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) · [Perspective camera optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics) · [Source coordinates](https://nothing.graphics/docs/format/spec/sequences#source-coordinates) ## Groups [#groups] A `group` is a drawable with zero or more ordered `shape`, `group`, or `sequence` children. It can occur directly under a scene, another group, a host shape, or an inline sequence. Later drawable children paint over earlier ones. A group also admits its own property animations, at most one source filter, one backdrop filter and one mask. A backdrop filter on a group requires that mask. Those children describe the group and occupy no drawing slots. Grouping introduces local coordinates. By default, wrapping adjacent siblings in a group preserves their composite. A group's coordinate plane extends beyond its children's bounds. Its visible extent follows the content and any explicit mask. A group uses its enclosing composition's time, frame rate, and viewport. A key at frame 12 keeps the same frame address when its owner is put in a group on that timeline. A sequence placement introduces the mapping from parent time to source time. [Sequence sampling](https://nothing.graphics/docs/format/spec/sequences#resolving-a-composition-at-time-t) ## Local to parent [#local-to-parent] A boxed primitive establishes its contour in these local coordinates before its drawable applies the transform. Its registration defaults to its center on each axis. The drawable owns the rotation pivot in local units. [Boxed geometry](https://nothing.graphics/docs/format/spec/boxed-geometry) The following attributes apply to `shape`, `group`, and `sequence`. Each is an independently keyable finite scalar. Missing attributes take their defaults. | Attributes | Default | Meaning | | ---------------------------- | ------- | ---------------------------------------------------------------------------------------- | | `translate-x`, `translate-y` | 0 each | Move the result along the parent's x and y axes, in parent units. | | `pivot-x`, `pivot-y` | 0 each | Center for scaling, skew and rotation, in the owner's local units. | | `scale-x`, `scale-y` | 1 each | Dimensionless factors along the owner's local axes. A negative factor reflects its axis. | | `skew-x` | 0 | Horizontal shear angle in degrees, strictly between −90 and 90. | | `rotate` | 0 | Angle in degrees, positive clockwise in the default y-down coordinate system. | | `opacity` | 1 | Multiplier in \[0, 1] on the completed visual result. | A locator places this local map at the sampled point of the nearest host. With `orient="auto"` the host tangent turns the entire map, including its translation. [Attached drawable placement](https://nothing.graphics/docs/format/spec/attached-drawables#placing-an-attached-drawable) For an ordinary local transform with local point `v`, pivot `p`, translation `d`, diagonal scale `S`, horizontal shear `K`, and rotation `R`, the point in the parent is `d + p + R × K × S × (v − p)`. For angle θ, K maps (x, y) to (x + tan(θ) × y, y), with θ converted from degrees. Apply scale, then shear, then rotation about the local pivot. Omitted skew is the identity. For example, with pivot (2, 3), scale (2, 3), skew 45°, rotation 90° and translation (10, 20), local (3, 4) maps to parent (9, 28). At +90 degrees, `R` maps (1, 0) to (0, 1). Apply the child's map first, then each ancestor's map out to the scene. A zero on either scale axis collapses the visual result to zero area and contributes transparent pixels. Angle keys interpolate as ordinary numbers: a linear segment from 350 to 370 passes through 360. An edit to geometry, a mask, or a group's child list preserves the authored pivot coordinates. For example, with pivot (4, 6), scale (2, 3), rotation 90, and translation (10, 20), the local pivot lands at (14, 26). A local point (5, 6) lands at (14, 28). If the parent then translates by (3, −2), the latter point lands at (17, 26) in the grandparent's coordinates. Stroke outlines, paint and coverage move with their owners, including under nonuniform scaling. A rotated child under a nonuniformly scaled parent can have nonperpendicular axes in the scene. When ungrouping, a single local shear lets a writer keep the child's geometry and all four corners for any invertible 2D affine pose. Rotation and signed scale can give several equivalent decompositions. Preserve the existing authored components when the operation permits it. The zero-scale rule also permits collapsed artwork. Some singular matrices cannot be expressed on one drawable with a finite shear. ## Compositing and coverage [#compositing-and-coverage] The `blend-mode` of a drawable selects how it paints into its parent at its position in document order. Sample a mode change as a held enumerated property on the owner's clock. | Owner | Default | Accepted modes | | -------- | -------------- | -------------------------------------- | | Shape | `normal` | normal, multiply, screen, pass-through | | Group | `pass-through` | normal, multiply, screen, pass-through | | Sequence | `normal` | normal, multiply, screen | | Paint | `normal` | normal, multiply, screen | Let **D** be the premultiplied encoded-sRGB destination before the drawable. Its own backdrop filter, when present, produces **A** by the [backdrop blur rule](https://nothing.graphics/docs/format/spec/filters#backdrop-blur). Otherwise **A = D**. Apply the owner's transform to locate all samples. Resolve the parent's earlier pixels only as far as the nearest enclosing paint scope. * With **normal, multiply or screen**, first assemble the contents on transparent black in local coordinates. Run the owner's source filter on that image. Blend the resulting source onto A using the selected mode to produce **C**. For straight encoded-sRGB channels s and d with alphas u and v, the premultiplied output channel is `u(1−v)s + v(1−u)d + uv B(s,d)`. Output alpha is `u + v − uv`. B is s for normal, sd for multiply and s+d−sd for screen. Transparent pixels contribute zero premultiplied color. * With **pass-through**, begin with A. Paint the group's children, or the shape's attachments and appearance, in their ordinary order into that destination to obtain C. Each fill or stroke keeps its own paint stack. Its bottom paint's mode places the assembled stack into this destination. [Paint stacks](https://nothing.graphics/docs/format/spec/graphics#paint) * A **nonempty source filter** on a pass-through owner establishes an isolated source for the entire lifetime of the declaration. Assemble the contents on transparency, filter them, then use normal source-over onto A. This structural boundary applies at every sampled sigma, including zero. An absent or empty filter preserves pass-through. Inserting the first operation can therefore change a child's Multiply result before any blur is visible. Animating that operation through zero preserves the child's blend destination. This lets artists filter the group as a unit while keeping earlier artwork sharp. [Animated filter case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/blending/source-filter.nothing) * For every mode, return **mix(D, C, w)** on all four premultiplied encoded channels. **w** is the owner's mask coverage times opacity, with each defaulting to one. The parent backdrop therefore contributes once. Fractional opacity and masks preserve the child's chosen blend destination. A visual mask source starts on transparency. Referenced scenes retain their own initial background and inline sequences start on transparency. Two overlapping opaque children in a group at opacity 0.5 yield alpha 0.5 throughout their union on a transparent destination. At a point admitted at half coverage by an alpha mask on that group, the resulting alpha is 0.25, including in the overlap. Moving the group moves both children and the mask. Moving one child leaves the group's mask in place. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) To mask several drawables together, place them in a group and attach the mask directly to that group. Moving a drawable across the mask declaration within the group keeps it masked. Moving it outside the group removes that group's coverage from it. Reordering drawables can still change which one is visible in an overlap. Two independently masked drawables each own their source shape in Level 1. Spatial attributes and masks act on the visual contribution. Sound from children passes through the group at the same time and amplitude. A placement's `gain` scales its audio mix. Setting visual opacity to zero or moving an object outside the viewport preserves its audible contribution. ## Footage behind a stationary window [#footage-behind-a-stationary-window] This example assumes a square-pixel 1920 × 1080 movie with at least 13 seconds available. The mask's rectangle is local to the group. The movie plays behind it, and the horizontal pan belongs to that placement. ```xml ``` At frame 0 the 512 × 288 window shows a 1280 × 720 source region starting at (240, 180). At frame 48 its source origin is (300, 180). In both cases the window starts at scene point (64, 36). Changing the mask width to 480 keeps the source origin and narrows the visible source region to 1200 units. Moving the group shifts the entire framed picture. A second shot placed later in the same group uses the same window with its own source in-point and pan. No fit to the new bounds occurs on resize. An ordinary still can use image paint on a rectangular shape. To position the still at native size inside the same window, use a rectangle matching the image's dimensions, then transform its shape. The image-paint fitting rule continues to apply inside the painted rectangle. [Image paint](https://nothing.graphics/docs/format/spec/graphics#paint) ## Design evidence [#design-evidence] SVG groups and nested coordinate transformations establish the group as a spatial scope. CSS Transforms defines applying a transform relative to an origin by translating to the origin and translating back. Explicit components on the owner give an editor a separate patch target for a pan, scale axis, angle, or pivot coordinate. [SVG coordinate systems](https://www.w3.org/TR/SVG2/coords.html) · [CSS transform rendering model](https://www.w3.org/TR/css-transforms-1/#transform-rendering) Lottie specifies group-scoped transforms and opacity on the composited group. W3C Compositing defines an isolated group's initial transparent backdrop, and CSS Masking applies coverage to a composed image. These precedents give a single opacity and mask rule for an individual drawable or several children assembled into one result. [Lottie shape groups](https://lottie.github.io/lottie-spec/latest/specs/shapes/) · [Isolated groups](https://www.w3.org/TR/compositing-1/#isolatedgroups) · [CSS Masking](https://www.w3.org/TR/css-masking-1/) # Editable text [Canonical page](https://nothing.graphics/docs/format/spec/text) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/text.md) Editable copy, styled spans, line layout and held replacement keys. A shape can use `text` as its geometry. The text owns the copy, baseline and paragraph settings. A `span` marks a range of that copy for a local type style, fill, or property track. The same range stays selected when a word moves to another line. ## Content and ownership [#content-and-ownership] * `text` and `span` accept literal Unicode character data and nested spans in document order. Joining the runs inserts no separator. Plain copy needs no wrapper. Empty copy is valid. * Read XML character data after XML line-ending and entity processing. Preserve spaces, tabs, newlines and surrounding whitespace, including whitespace between spans. Comments, an `animate` subtree and a span's `fill` subtree contribute zero characters. Indentation **beside** those children is copy. Whitespace inside their element-only subtrees is available for formatting. [XML character data and normalization](https://www.w3.org/TR/xml/) * A `text` or `span` with no child spans owns a logical string property named `value`. Its base is the concatenation of its direct character data. An inline `animate attributeName="value"` replaces that string using hold keys. Each key contains literal copy in its XML `value` attribute. Use ` ` for LF or ` ` for tab there so XML attribute normalization preserves it. A `value` attribute on the text or span itself is invalid. * A `value` track on an owner with child spans requires a diagnostic. Put the track on the span containing the copy to replace. This gives each key one string to edit and preserves all neighboring ranges. [Track evaluation](https://nothing.graphics/docs/format/spec/animation) ## Typeface and paragraph [#typeface-and-paragraph] All distances are finite local units before applying the enclosing shape's transform. This profile sets horizontal text on alphabetic baselines. | Attribute | Owner | Meaning | | ------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `x`, `y` | `text` | Horizontal anchor of each line and y coordinate of the first baseline. Each defaults to zero. | | `font-family` | `text`, `span` | Required on text. One nonempty requested family name. A span may override it. | | `font-size` | `text`, `span` | Required on text. Positive em size in local units. A span may override it. | | `font-weight` | `text`, `span` | Integer 1–1000 identifying a face weight. Defaults to 400 on text. A span may override it. | | `direction` | `text` | Paragraph base direction, `ltr` (default) or `rtl`. Use Unicode bidirectional ordering within the paragraph. | | `text-anchor` | `text` | Align each line's shaped advance at `x`. For `start` (default), anchor its left edge in LTR and its right edge in RTL. `end` anchors the opposite edge. `middle` anchors the midpoint. | | `inline-size` | `text` | Positive maximum line advance for soft wrapping. Omission allows each line to take its natural width. An animated width requires a finite authored base. | | `line-height` | `text` | Positive distance between consecutive baselines. Defaults to 1.2 times the sampled text element's font size. A taller inline span can extend across that interval. | For each span, take the nearest specified value of each font field independently. An active track on a span counts as a local value. When a track releases a field with no local base, the sampled enclosing value applies. Family, weight, direction, anchor and copy use hold segments. Coordinates, size, width and baseline distance use ordinary scalar segments. [Property types](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) Resolve the sampled family and weight under the [font resolution contract](https://nothing.graphics/docs/format/spec/fonts). Preserve the source request through fallback and reflow. ## Attachment bounds [#attachment-bounds] Measure the sampled lines using the same advances and line breaks as for painting. The box width is the authored `inline-size` when present, otherwise the widest line advance. Place a line of that width at `x` with the resolved direction and `text-anchor`. The top is the first baseline minus `hhea.ascender × font-size / unitsPerEm`. The bottom is the last baseline minus the signed `hhea.descender × font-size / unitsPerEm`. Read both fields from the text element’s resolved primary face. For a variable font, shape advances at the declared instance and use the bound font’s horizontal header fields for these two vertical edges. Span styles can change advances and line count. A blank line still has a baseline. The authored baseline step sets spacing between lines. Glyph ink remains the geometry for a mask or boolean. [Attached drawables](https://nothing.graphics/docs/format/spec/attached-drawables) · [OpenType horizontal header](https://learn.microsoft.com/en-us/typography/opentype/spec/hhea) ## Layout at a sample [#layout-at-a-sample] 1. Resolve current copy, font fields and paragraph settings. Keep their source ranges. Treat LF as a hard break. For layout a tab contributes four U+0020 spaces mapped to the original tab. 2. Resolve paragraph directionality and script runs. Shape compatible adjacent copy together, even across an authored span boundary. A change of face or size inside one extended grapheme cluster requires a diagnostic at the span. Preserve cluster-to-source associations. Use the same fonts, shaping context and advances for measurement and placement. [Unicode bidirectional algorithm](https://www.unicode.org/reports/tr9/) · [Unicode grapheme boundaries](https://www.unicode.org/reports/tr29/) · [SVG text layout](https://www.w3.org/TR/SVG2/text.html) 3. Honor mandatory breaks. With a finite `inline-size`, use the default Unicode line break opportunities. Choose the furthest permitted break whose line, shaped for its final boundaries, fits the width. If none fits, place the first unbreakable segment on the line and let it overflow. Do not insert an emergency break or an automatic hyphen. At a soft break discard the advance and ink of the separating trailing U+0020 spaces for measurement and placement. Retain their source ranges. At hard breaks and at end of text preserve authored spaces. [Unicode line breaking](https://www.unicode.org/reports/tr14/) 4. Place each line in visual order with its resolved anchor. Baseline number `i`, starting at zero, has coordinate `y + i × line-height`. Empty lines consume one baseline step. Line membership, glyph indices and glyph positions are derived results. ## Glyph geometry [#glyph-geometry] Fill each positioned glyph outline according to its font's contour convention, preserving counters such as the hole in `O`. The text's closed region is the union of those filled regions. Where two glyphs overlap, their shared interior belongs to the union once. Space glyphs with no ink contribute their layout advance and an empty region. Text can supply this region to a geometry mask or a closed-region boolean operation. Resolve copy, font, layout and the source shape's transform for that request. Skip paint assignment, paint-conflict checks, strokes, the source shape's mask and its opacity. Source markup must still be valid. An alpha or luminance mask consumes the source's rendered appearance, including fill, strokes, its own mask and opacity. [Mask evaluation](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) · [Boolean operands](https://nothing.graphics/docs/format/spec/graphics#boolean-geometry) The profile paints scalable monochrome glyph outlines using authored paint. When an ink-bearing glyph supplies only a bitmap or color artwork without a usable monochrome outline, diagnose the geometry or appearance request at its source range. Its advance alone cannot establish ink coverage. A centered stroke follows all boundaries of the text region, including counters. Inside or outside alignment requires one simple closed contour. A trim on text requires a diagnostic even when the current glyph happens to have one contour. [Stroke alignment](https://nothing.graphics/docs/format/spec/graphics#paint) · [Directed trim contours](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance) ## Appearance and editing [#appearance-and-editing] An optional `fill` directly under a span supplies the entire paint stack for that range. Nested spans use the nearest enclosing span fill, falling back to the shape fill. Glyphs with no applicable fill receive no fill paint. Apply the shape fill to its assigned glyphs, followed by local fills in preorder of their **owning spans**. Moving a span's `fill` declaration past a nested span leaves that order unchanged. Take the union of a stack's assigned glyph coverage before applying it. All stacks use shape-local coordinates and the full text geometry bounds for bounds-relative paint. Draw the shape's strokes after all fills. [Paint stacks](https://nothing.graphics/docs/format/spec/graphics#paint) A paint boundary supplies no shaping break. When assigning fills, report a shaped cluster that crosses between different fill owners, including between painted and unpainted ranges. For example, a base letter and its combining mark can share one glyph even when the mark alone is in a colored span. A redundant span with the same effective shaping inputs and fill owner preserves the glyphs, their placement and their appearance. An editor must map a glyph back to all contributing source ranges, through bidi reordering, shaping, reflow and key sampling. Editing base copy patches its character-data range, preserving unrelated escapes, comments and markup. Editing sampled copy supplied by a key patches that key's value. Editing a span fill locates its paint even if another span uses the same color. Reflow never converts the current set of glyphs on a line into an authored selection. [Source-preserving editing](https://nothing.graphics/docs/format/spec#source-preserving-editing) ## A two-beat title [#a-two-beat-title] The sample font environment binds PT Serif 400 and 700 to the repository's regular and bold faces. The indentation inside the track formats declarations. The literal prefix contains a space, and the suffix starts with a period. [Regular font](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Regular.ttf) · [Bold font](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Bold.ttf) ```xml Status GO . ``` | Sample or edit | Expected result | | ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Base or frame 17 | `Status GO.` appears on the first baseline at y = 52. Only `GO` is bold and yellow. | | Frame 18 through frame 23 | `GO` turns cyan without moving. Its color key belongs to the solid paint. | | Seek directly to frame 24 | Copy is `Status WAIT.` and the same span paints `WAIT` cyan. The period remains in the regular white face and follows the new word's advance. | | Set `inline-size="100"` and seek to frame 24 | `Status` occupies the first line and `WAIT.` the second, with baselines at 52 and 92. The span keeps the same key and paint. | | Change the frame-24 key to `GO` | Only that attribute value changes. The two other occurrences of `GO` in the source retain their bytes. | | Nest an unstyled span around `GO` in the base while retaining the outer string track | The string track now targets an owner with a child span. Diagnose it at the animation. Moving the track into the new leaf restores the original copy behavior. | | Remove the font environment's weight 700 binding | Apply host weight matching. Preserve the span’s request for 700 when saving. | ## A letter as a matte or cutout [#a-letter-as-a-matte-or-cutout] Use the same regular PT Serif face for this mask. At y = 45 the letter's left stem covers x = 10 and the counter contains x = 37. ```xml O ``` | Change | Sample at (10, 45) | Sample at (37, 45) | | -------------------------------------------------------------------------------------------------------------------------- | ------------------ | ------------------ | | Use the geometry mask as written | Opaque white | Transparent | | Change only the mask type to `alpha` | Transparent | Transparent | | On the alpha mask, set the source fill to `#FFFFFFFF` | Opaque white | Transparent | | Instead subtract the original text source from the rectangle using `boolean type="subtraction"` and paint the result white | Transparent | Opaque white | Try the [editable word cutout](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing). Change `BOOK` to `INK`, or move the operand shape to slide the letters within the card. Inline graphics, text on a path, vertical writing, font fallback lists, and selectors over generated words, lines, or graphemes remain subjects for further profiles. The author of a fixed two-line title can insert a line feed to preserve that break or mark the words with spans to preserve their styling through a different break. [Design studies](https://github.com/gridaco/nothing/blob/main/ncf/docs/text.md) # Scene format type model [Canonical page](https://nothing.graphics/docs/format/spec/type-model) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/spec/type-model.md) Structural declarations for XML elements, properties, inheritance and child slots. The [WebIDL model](https://github.com/gridaco/nothing/blob/main/ncf/spec/scene.webidl) describes the structure of all 32 Level 1 elements and the separate perspective trial. The generated [reference](https://nothing.graphics/docs/format/reference) shows legal owners, child slots, exact spellings, defaults, and keyability. The specification chapters define evaluation, including timing and rendering. The [vocabulary inventory](https://github.com/gridaco/nothing/blob/main/ncf/spec/vocabulary.tsv) remains the input to existing format validators. The standalone preview and N4 exercise the proposed perspective syntax alongside Level 1's 2D cameras. The trial includes the `plane` element, the camera's perspective fields and the scene's metric scale. The [perspective optics decision](https://nothing.graphics/docs/format/spec/perspective-camera-optics) defines ratified focus behavior. The [spatial camera proposal](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) describes source syntax under review and discusses further projections. ## Find the governing rule [#find-the-governing-rule] | Authoring question | Reference | Governing rule | Evidence | | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | How does a document resolve its viewport, clock and sources? | [Scene](https://nothing.graphics/docs/format/reference/scene) | [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock), [source-preserving editing](https://nothing.graphics/docs/format/spec#source-preserving-editing), [diagnostics](https://nothing.graphics/docs/format/spec#diagnostics-and-evidence) | [Document and patch cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#ownership-and-source-edits) | | What can paint inside a shape and how does it stack? | [Shape](https://nothing.graphics/docs/format/reference/shape), [Fill](https://nothing.graphics/docs/format/reference/fill), [Paint](https://nothing.graphics/docs/format/reference/paint), [Mask](https://nothing.graphics/docs/format/reference/mask) | [Graphics and coverage](https://nothing.graphics/docs/format/spec/graphics) | [Paint stacks, strokes and masks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#paint-stacks-strokes-and-mask-coverage) | | Which point stays fixed while geometry resizes? | [Registration](https://nothing.graphics/docs/format/reference/registration) | [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) | [Boxed geometry cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md) | | Does blur read the drawable or earlier paint? | [Filter](https://nothing.graphics/docs/format/reference/filter), [Backdrop filter](https://nothing.graphics/docs/format/reference/backdrop-filter) | [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) | [Layer effects](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) | | Which element owns a track, and how do its addresses resolve? | [Animate](https://nothing.graphics/docs/format/reference/animate), [Key](https://nothing.graphics/docs/format/reference/key) | [Property animation](https://nothing.graphics/docs/format/spec/animation) | [Property animation cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#property-animation-cases) | | Which clock controls a sequence and which clock controls its source? | [Sequence](https://nothing.graphics/docs/format/reference/sequence) | [Resolving a composition](https://nothing.graphics/docs/format/spec/sequences#resolving-a-composition-at-time-t) | [Moving card](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) | | How does a child stay attached to a changing contour? | [Locator](https://nothing.graphics/docs/format/reference/locator) | [Attachment hosts and locators](https://nothing.graphics/docs/format/spec/attached-drawables#hosts) | [Attachment conformance](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#running-the-wider-conformance-cases) | | How do groups, transform pivots and cameras affect coordinates? | [Group](https://nothing.graphics/docs/format/reference/group), [Transform](https://nothing.graphics/docs/format/reference/transform), [Camera](https://nothing.graphics/docs/format/reference/camera) | [Spatial composition](https://nothing.graphics/docs/format/spec/spatial) | [Camera cuts](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#camera-cuts), [drawable blending](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#drawable-blending) | | Which fonts and resources do I bind to reproduce the layout? | [Text font fields](https://nothing.graphics/docs/format/reference/text#font-family) | [Font matching and resources](https://nothing.graphics/docs/format/spec/fonts#reproducing-a-layout) | [Font resolution cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/README.md) | | How do I replace a word and preserve its style through reflow? | [Text](https://nothing.graphics/docs/format/reference/text), [Span](https://nothing.graphics/docs/format/reference/span), [Text copy](https://nothing.graphics/docs/format/reference/text-copy) | [Text content and ownership](https://nothing.graphics/docs/format/spec/text#content-and-ownership) | [Editable caption and moving card](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) | | How do I reveal just one stroke along its contour? | [Trim](https://nothing.graphics/docs/format/reference/trim) | [Contour distance and coverage](https://nothing.graphics/docs/format/spec/contour-trim) | [Trim acceptance checks](https://nothing.graphics/docs/format/spec/contour-trim#checks-for-implementation-and-review) | | Which perspective rules are ratified and which authoring fields are in trial? | [Camera](https://nothing.graphics/docs/format/reference/camera), [Plane](https://nothing.graphics/docs/format/reference/plane) | [Perspective optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics), [spatial camera proposal](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) | [Perspective focus pull](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#perspective-focus-pull) | Use the [standalone preview coverage](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md#preview-coverage) and the [authoring readiness record](https://nothing.graphics/docs/format/implementation-support) to distinguish recognized source, sampled results, and verified editing operations. ## XML annotations [#xml-annotations] Each concrete interface declares its case-sensitive XML tag with `[Xml="…"]`. An `[Abstract]` interface names shared structure or an element family. WebIDL inheritance and `includes` carry members to each concrete owner. Abstract interfaces and mixins have their own reference pages. * Writable members describe XML attributes. The member name gives the spelling unless it has an `[Xml="…"]` annotation. `double` uses the finite decimal grammar. Enums supply exact legal named values. `DOMString` represents a lexical form described by `[Grammar="…"]`. `[Unit="…"]` records units. * `[Required]` means the concrete owner needs an authored attribute. `[Default="…"]` records an omitted value or resolution rule. `sampled ` refers to another field's sampled value. `[DefaultOverride="member=value"]` changes an inherited default. `[ValuesOverride="member=a,b"]` narrows an inherited enum for one owner. Both use the WebIDL member name. `[Constraint="…"]` records conditional requirements such as paired fields, type-specific geometry and leaf copy. * `[Keys=Scalar]`, `[Keys=Color]`, `[Keys=PointList]`, and `[Keys=Path]` use the corresponding continuous interpolation rules. `[Keys=Hold]` permits held changes. The trial's `[Keys=Focus]` uses scalar interpolation between positive f-numbers and holds when crossing between zero and a positive value. Attributes without a key annotation are static. `[Target]` gives an animation-only property its own heading and removes it from the XML attribute set. An owner with a keyable attribute or logical target admits `animate` children. [Property animation](https://nothing.graphics/docs/format/spec/animation) * Readonly members denote child slots. An interface type gives one child, a nullable type gives zero or one, and `FrozenArray` gives zero or more. `[Min="1"]` or `[Min="2"]` raises the minimum for a repeated slot. A union or abstract type supplies alternatives in the same slot. `[Order="…"]` records how source order affects evaluation. * `[Parents="…"]` lists allowed XML parents, or `document` for the root and `property` for an animation. An animation's actual parents follow from the keyable properties. `[TrialParents="…"]` records additional parents in the spatial trial. `[Status=Trial]` marks trial elements, members and child slots. Members declared on a trial element inherit that status. * `[Title="…"]` names an entry. Concrete reference headings use the XML tag. `[Summary="…"]` supplies a short page description. `[Meaning="…"]` and `[Constraint="…"]` explain the role and restrictions. `[Spec="chapter.md#section"]` links to the governing rule. When a member gives no rule of its own, it uses its declaring interface or mixin's link. ## Keeping the reference current [#keeping-the-reference-current] The generated reference keeps existing element and owner heading links stable. A page's ID is the XML spelling for an element and the kebab-case type or mixin name for a shared definition. From [the format reference tool](https://github.com/gridaco/nothing/tree/main/ncf/tools/reference/), run `npm ci`, `npm run generate`, `npm run check`, and `npm test`. Parity compares every expanded element context, attribute owner and enum value set, and animation-only target with the vocabulary. It requires matching incoming and outgoing child slots. The freshness check reports missing, stale, and orphan pages. Cardinality, conditional rules, and interpolation live in the type model and the linked chapters. # Implementation support [Canonical page](https://nothing.graphics/docs/format/implementation-support) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/AGENT_READINESS.md) Evidence for authoring, rendering and editing .nothing scenes. The specification defines the 0.9.0 Level 1 rehearsal. This page records what has been exercised in the standalone preview and N4. A successful vocabulary check establishes recognized spelling and ownership. Pixel and round-trip checks establish behavior for their specific samples and edits. [Level 1 specification](https://nothing.graphics/docs/format/spec) · [Conformance cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md) | Task | Evidence | | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Author a scene from a compact guide | The [compact guide](https://nothing.graphics/docs/format/llms.txt), [runnable first scene](https://nothing.graphics/docs/format/guides/first-scene) and [worked guides](https://nothing.graphics/docs/format/guides) cover authoring and predicted results. | | Find a property to patch | The [fixed-viewport rectangle](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.md) identifies the exact source bytes for a width edit. The [gradient and stroke cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md) identify a key and expected samples after its edit. | | Check example spellings | Run `python3 ncf/tools/vocabulary.py --check` from the repository root. It checks example vocabulary and table freshness. Run `npm --prefix ncf/tools/reference run check` after installing the reference tool’s pinned dependencies to check the generated reference and model coverage. | | Check expected meaning | Start with the [element and attribute reference](https://nothing.graphics/docs/format/reference) and the owning contract. The [graphics and timing cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md) and [SVG exchange pair](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.md) supply acceptance criteria. | ## What the hosts exercise [#what-the-hosts-exercise] | Operation | Standalone preview | N4 | | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Recognize or diagnose source | The CLI reports XML source locations for unsupported sampled operations. Best-effort attachment checks exercise documented degradations. [Preview profile](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md#preview-coverage) | The native validator accepted the complete canonical specimen. The validator and Metal sample are distinct checks. [Review set](https://github.com/gridaco/nothing/blob/main/ncf/examples/README.md) | | Sample pictures and animation | The CLI samples 2D scenes and nested local picture placements. Its coverage includes the checked examples below. Decoded audio and video, bidirectional text, sweep gradients, and diamond gradients are outside its current preview profile. [Preview profile](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md#preview-coverage) | The native CLI rendered checked font, mask and nested-clock cases on Apple M2 Pro Metal. The complete specimen's diamond gradient produced a diagnostic at frame 0. [Moving card](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) | | Edit and reopen source | Edit the XML and resample. The CLI writes one picture as SVG. [Preview CLI](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md) | Native tests exercise single-key edits and save/reopen, including a missing font and the perspective focus trial. [Editor checks](https://github.com/gridaco/nothing/blob/main/n4/engine/tests/ncf_properties.rs) · [Font tests](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/README.md) | | Trial perspective optics | The perspective-only trial is sampled into a raster picture embedded in SVG. [Focus trial](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#perspective-focus-pull) | Native tests measure defocus and exercise selection, picking and focus-key edits. [Optical measurements](https://github.com/gridaco/nothing/blob/main/n4/format/tests/perspective_optics.rs) | The [perspective optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics) are ratified. Spatial authoring syntax, units and defaults remain under review, including the trial `plane` element. [Spatial camera RFC](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) ## Reproducible observations [#reproducible-observations] For a rectangle, circle or ellipse, the compact guide shows how to register and offset its geometry within the drawable. The centered-rectangle case isolates rotation, a width change and each omitted registration axis. The clearance and rotated-ellipse cases give hand-calculated edge and center positions for checking animation, attachment and a single-key edit. Both readers implement the geometry contract. The vocabulary check covers spellings and ownership. [Boxed geometry](https://nothing.graphics/docs/format/spec/boxed-geometry) · [Scenes and expected samples](https://github.com/gridaco/nothing/tree/main/ncf/conformance/boxed-geometry/) The [compound-trim case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-trim.nothing) checks a pen lift, round caps and the completed join of a closed loop. The [compound-path case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-path.nothing) exercises a discrete `fill-rule` edit across painted geometry, a mask and a boolean operand in both renderers. The [font resolution cases](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/README.md) compare a mixed-script caption to explicitly styled copy. The SVG preview and native N4 CLI exercise family substitution and coverage fallback. The native editor also checks byte-preserving save and reopen with a missing family, followed by exact pixel recovery when its binding returns. Four independent authors used the compact attachment rules to build a progress bar, route, price label and dial. Across the four trials they answered 36 placement questions. Reproduce the 22 executable checks on their four scenes alongside the 235 assertions on the original 21 cases with `python3 ncf/conformance/check_attached_drawables.py ncf/target/debug/ncf-preview` after building the preview. The trials exercised the original guide entry. Future revisions can repeat the same briefs against the current guide. [Briefs, questions and authored scenes](https://github.com/gridaco/nothing/tree/main/ncf/rfcs/attached-drawables/authors/) · [Original trial record](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/attached-drawables/README.md) · [Current guide](https://nothing.graphics/docs/format/llms.txt) Run `python3 ncf/conformance/check_composition.py` to check both XML files in the [moving-card case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md), including frame-addressed placements, the independent source slip and held copy edit. The script samples the fixture's values and checks the expected arithmetic. The [camera fixtures](https://github.com/gridaco/nothing/tree/main/ncf/conformance/cameras/) give interior pixel witnesses for named cuts, pan, zoom, roll, and a referenced scene with its own camera. The standalone preview tests the perspective trial at frames 0, 12, and 24. Each frame sharpens a different mark, with all three projected centers held in place. N4 also tests focus-key insertion, save and reopen, projected picking, and the change in defocus diameter at a different f-number. [Editor checks](https://github.com/gridaco/nothing/blob/main/n4/engine/tests/ncf_properties.rs) · [Optical measurements](https://github.com/gridaco/nothing/blob/main/n4/format/tests/perspective_optics.rs) · [Focus trial and checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#perspective-focus-pull) The [backdrop panel](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) pairs a geometry-bounded blur with a source shadow and independently editable tint. The [layer filters case](https://github.com/gridaco/nothing/blob/main/ncf/examples/layer-filters.nothing) exercises changing a single blur key and reordering source-image operations. The [inner shadows example](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) distinguishes rectangle geometry from an image’s painted alpha. [Filter contract](https://nothing.graphics/docs/format/spec/filters) The [boolean cutout](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) keeps the word editable. Change its copy and compare the glyph holes, enclosed counters and overlaid line in the [pixel checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/check_preview.py). The [preview CLI](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md) renders the moving card, rectangle and subtraction case to standalone SVG. The [pixel probes](https://github.com/gridaco/nothing/blob/main/ncf/conformance/check_preview.py) exercise edits through the actual command and an external SVG rasterizer, including sampling and editing one animated mask corner in the moving card. The [linked artwork case](https://github.com/gridaco/nothing/blob/main/ncf/examples/linked-artwork/scene.nothing) checks that replacing one external SVG updates both an animated placement and its use as an alpha mask. The [path syntax example](https://github.com/gridaco/nothing/blob/main/ncf/examples/path-syntax.nothing) exercises compact SVG 2 commands in a geometry mask and an elliptical arc revealed by stroke trim. The cubic trim probe checks the endpoint at half the contour length and the change in coverage when an author switches from a butt cap to a round cap. The closed-rail probe checks the join where a translucent band crosses the seam and the butt caps at its two tips. On 2026-12-04 the standalone preview produced SVGs for 14 of the 15 scenes in the [Level 1 review set](https://github.com/gridaco/nothing/blob/main/ncf/examples/README.md). The smoke test used frame 0 for scenes with an authored frame rate, base values otherwise, and a 320 × 224 caller viewport for the nested graphic. It used the default font environment and checked successful SVG export. The canonical specimen stopped at its sweep gradient. The native N4 validator accepted the same scene, and the Metal render stopped at its diamond gradient on frame 0. Full-specimen publication needs a renderer that supports both gradient types and independent observations for the chosen samples. The same day's moving-card preflight bound PT Serif Regular 400 and Bold 700 to the same fixture files in both renderers. Preview and N4 on Apple M2 Pro Metal matched the two expected panel colors at frame 24 and alpha 128 in the panel at frame 60. N4's seek from frame 60 back to frame 12 reproduced its first frame-12 RGBA buffer. [Moving-card sample contract](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) The [published reference manifest](https://github.com/gridaco/nothing/blob/main/ncf/conformance/reference-examples.json) records exact sample times, viewports, bound resources, and independent observations for the manual's ten rendered examples. It includes the centered rectangle at frames 0, 4 and 8. The checker verifies the expected geometry and compares the decoded WebPs to fresh rasters. [Reference checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) Editor save/reopen of the full canonical specimen and round-trip SVG conversion still need implementation evidence. The [layer blend fixtures](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#drawable-blending) distinguish isolated and pass-through artwork, once-only coverage and a source blur animated from zero. # Changelog [Canonical page](https://nothing.graphics/docs/format/changelog) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/CHANGELOG.md) Contract and tooling changes during the Level 1 rehearsal. Records changes to the format and its public tooling. Version 0.9.0 names the ratified internal Level 1 rehearsal. Unreleased collects decisions since the first review draft. The rehearsal and its manual have no format release tag, XML version attribute, or file migration. [Level 1 specification](https://nothing.graphics/docs/format/spec) ## \[Unreleased] [#unreleased] * 2026-12-03 14:30 UTC. Ratified center registration on both axes for rectangles. Set either registration axis to zero to grow from that edge. [Decision](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/centered-rectangles.md) · [Source migration](https://github.com/gridaco/nothing/blob/main/ncf/migrations/README.md) * 2026-12-03. Ratified box-relative registration and geometry-local offsets for rectangles, circles and ellipses. Drawable translation and absolute pivot keep their existing meanings. N4 and the standalone preview implement the contract. The canonical corpus uses the new spellings. [Source migration](https://github.com/gridaco/nothing/blob/main/ncf/migrations/README.md) [Contract](https://nothing.graphics/docs/format/spec/boxed-geometry) · [Cases](https://github.com/gridaco/nothing/tree/main/ncf/conformance/boxed-geometry/) * 2026-12-02. Ratified the lens settings and circular-aperture depth-of-field model for perspective cameras. Spatial camera syntax remains under review. [Optical contract](https://nothing.graphics/docs/format/spec/perspective-camera-optics) * 2026-12-02. Added a runnable perspective focus trial with tilted planes and animated focus. The standalone preview embeds the resolved spatial picture in its SVG output. The native N4 editor can select the perspective camera and edit its optics. The trial gives new unqualified spellings such as `projection` and `focus-distance` format meaning. Hosts using these names as metadata can namespace those attributes. [Focus trial and checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#perspective-focus-pull) * 2026-12-02. A stroke can reveal a compound path in authored order with one pair of trim keys. [Contour trim](https://nothing.graphics/docs/format/spec/contour-trim#paths-with-several-subpaths) * 2026-12-02. Level 1 paths accept the SVG winding rules for paints, geometry masks and boolean operands. Unqualified `fill-rule` now has a core meaning on paths. [Path contract](https://nothing.graphics/docs/format/spec/graphics#path-data) * 2026-12-02. Promoted host font resolution and cluster fallback for Level 1. Existing family and weight requests retain their spelling. [Fonts](https://nothing.graphics/docs/format/spec/fonts) * 2026-12-02. Promoted drawable multiply, screen and pass-through scopes with stable isolation during source-filter animation. [Compositing](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) * 2026-12-02. A shape, group, or sequence can own a [backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) alongside its source filter. * Sequence starts and durations accept integer frames such as `48f` and `12f` at the enclosing scene’s authored rate. Existing seconds values keep their meaning. Source in-points continue to use exact seconds. [Sequence timing](https://nothing.graphics/docs/format/spec/sequences#sequence) * Adopted `.nothing` as the canonical text extension. The preview tool is now `ncf-preview`. The [legacy XML corpus](https://github.com/gridaco/nothing/blob/main/ncf/docs/n0-xml-migration.md#fixture-provenance) retains the originals of the duplicate migration examples. * Promoted [attached drawables](https://nothing.graphics/docs/format/spec/attached-drawables) to the Level 1 draft. `u`, `v`, `along`, `vertex` and `orient` now have core meanings on `shape`, `group` and `sequence`. Hosts that used these unqualified spellings for render-neutral metadata can move their fields into their own XML namespace. Rectangles, circles, ellipses and text can omit their origin coordinates, which default to zero per axis. The chapter binds text bounds to horizontal font metrics and resolves point-list and path-data animation before locating children. [Animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) * Clarified text as an editable geometry operand in all four boolean operations. The preview uses the bound font outlines and preserves glyph counters. [Boolean cutouts](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) * Added `inner-shadow` to source filters and `inset="true"` to rectangle box shadows. Previously unqualified `inset` metadata was render-neutral. It is now a core boolean on `box-shadow`; hosts can namespace unrelated metadata. [Inner shadows example](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) * Shapes, groups and placements accept ordered source filters. Rectangles can cast independent outer box shadows. All Gaussian blur amounts use `sigma` in local units. The new core attribute names `sigma`, `dx`, `dy` and `spread` are reserved on their defined owners. Existing host metadata using these spellings elsewhere can be namespaced. [Effects](https://nothing.graphics/docs/format/spec/filters) * Paths accept SVG 2 XML path data, including relative commands, shorthand curves, implicit repeats and elliptical arcs. Invalid data produces a diagnostic for the entire value. [Path contract](https://nothing.graphics/docs/format/spec/graphics#path-data) · [Runnable example](https://github.com/gridaco/nothing/blob/main/ncf/examples/path-syntax.nothing) * Image paint now accepts a linked still SVG with the same centered crop and painted alpha as a PNG. Existing image references keep their spelling and fit. [Linked artwork](https://github.com/gridaco/nothing/blob/main/ncf/examples/linked-artwork/scene.nothing) * Adopted the optional, animatable `scene.background` color. Scenes that omit it retain transparency. This spelling is now a core attribute. Hosts that previously used an unqualified `background` for metadata can move it into their own XML namespace. * Allowed render-neutral host attributes. The vocabulary checker accepts an optional host spelling list. [Runnable example](https://github.com/gridaco/nothing/blob/main/ncf/examples/host-labels/README.md) * Rectangles accept a shared circular radius and independently keyable corner radii. The [moving-card aperture](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) animates one corner of a mask. * Added optional [horizontal skew](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) to shapes, groups, and sequence placements. Existing scenes default to zero skew. * Closed [stroke trims](https://nothing.graphics/docs/format/spec/contour-trim#coverage) accept unwrapped endpoints. A single stroke can now travel across the seam. * Added the [Rust SVG preview CLI](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md) and [rendered edit checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/check_preview.py) for the Level 1 draft. * Added editable text and span keys, spatial groups, masks on composed visuals, a common transform for artwork and media, continuous RGBA keys, and stroke-local contour trim. The [moving card](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) exercises these contracts together. * First [Level 1 review draft](https://nothing.graphics/docs/format/spec), with a fixed-canvas SVG exchange case and source-preserving edit expectations. [Rectangle case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.md) ## Documentation [#documentation] * 2026-12-04. Added authoring guides, a structural reference, exact XML lookup, and checked visual examples for the rehearsal. This changes the authoring documentation. Format behavior follows the decisions above and the specification. [Guides](https://nothing.graphics/docs/format/guides) · [Reference](https://nothing.graphics/docs/format/reference) # Animate a property [Canonical page](https://nothing.graphics/docs/format/guides/animate-a-property) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/animate-a-property.md) Place keys on the property owner and predict the sampled value between keys. Put `animate` directly inside the element that owns the property. Key a shape’s `translate-x` to move its whole picture, a rectangle’s `width` to resize its contour, or a child shape’s `along` to move it on its host’s contour. For each track, declare an authored scene `frame-rate` and at least two strictly increasing keys. Keep a valid base value on the owner when the property requires one. [Track authoring and key ownership](https://nothing.graphics/docs/format/spec/animation#authoring) ## Match a moving marker to a stroke reveal [#match-a-moving-marker-to-a-stroke-reveal] In the [runnable road scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing), the marker starts with `along="0"`. Its track advances the locator from 0 on frame 0 to 1 on frame 24. The stripe uses the same keys for the `end` on its `trim`. The road travels 60 units right, then 40 units down, with its origin translated to (16, 16). | Sample | Locator and trim end | Marker origin in the scene | | -------- | -------------------- | -------------------------- | | Frame 0 | 0 | (16, 16) | | Frame 12 | 0.5 | (66, 16), facing right | | Frame 18 | 0.75 | (76, 31), facing down | | Frame 24 | 1 | (76, 56), facing down | The ease on the first key applies to the segment leaving it. `linear` gives the halfway value at frame 12. Try `ease="hold"` on both tracks’ first keys. At frame 12 the marker stays at the start and the stripe remains empty. Frame 24 still reaches the end because both tracks use `fill="freeze"`. Change both tracks to `fill="remove"` and frame 24 instead returns to the authored base values of zero. [Track evaluation and repeat boundaries](https://nothing.graphics/docs/format/spec/animation#evaluation) A frame address follows the authored rate. At 24 fps, `frame="12"` and `time="0.5s"` denote the same instant, so they would be duplicate addresses in the same track. At 30 fps, frame 12 moves to 0.4 seconds and the seconds address stays at 0.5. For a track inside another composition, resolve the [owning clock](https://nothing.graphics/docs/format/guides/sequences-and-audio) first. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/moving-locator/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing) Rendered with ncf-preview at 128 × 96. - [Frame 0 · Start](https://nothing.graphics/format/moving-locator/0.webp). An amber marker sits at the start of a dark road. The white stripe has zero length. - [Frame 12 · Halfway](https://nothing.graphics/format/moving-locator/12.webp). The stripe has painted 50 of the road’s 100 local units. The marker points right from (66, 16). - [Frame 18 · Around the corner](https://nothing.graphics/format/moving-locator/18.webp). The stripe runs 15 units down the vertical leg. The marker points down from (76, 31). - [Frame 24 · End](https://nothing.graphics/format/moving-locator/24.webp). The stripe covers both legs. The marker points off the end of the vertical leg at (76, 56). ```xml ``` # Attach a drawable to geometry [Canonical page](https://nothing.graphics/docs/format/guides/attach-geometry) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/attach-geometry.md) Place an object on bounds, along a contour, or at a vertex and keep it there through edits. Put the attached `shape`, `group`, or `sequence` inside the shape that owns the geometry. That nearest enclosing shape is its host. A top-level drawable uses the scene viewport as its host. Groups and inline sequences pass through the nearest host to their children and can transform those children in the ordinary way. A referenced scene starts with its own viewport and hosts. [Host rules](https://nothing.graphics/docs/format/spec/attached-drawables#hosts) | To attach at… | Use | Example | | ------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | A point in the host’s bounds | `u` and/or `v` | `u="1" v="0.5"` places the attachment at the midpoint of the right edge. Use this for a card badge or a marker at the edge of a caption box. | | A share of one directed contour | `along` | `along="0.5"` goes halfway by distance. Add `orient="auto"` to face the outgoing tangent. | | A particular authored point | `vertex` | `vertex="1"` follows the second point, counting from zero. `vertex="1.5"` is halfway along the next stretch. An automatically oriented interior vertex faces the bisector of the incoming and outgoing directions. | Use one locator kind for each drawable. A path with separate subpaths supplies bounds, but has no single contour for `along`. Text supplies layout bounds. Its glyph outlines have separate uses in masks and booleans. [Available locators by geometry](https://nothing.graphics/docs/format/spec/attached-drawables#what-a-geometry-offers) ## Keep a badge mounted during resize [#keep-a-badge-mounted-during-resize] In the [card case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/04-card.nothing), inspect the drawable with both `u` and `v` set. Edit the host rectangle’s width and sample again. A bounds locator follows the new extent while the badge keeps its own size. Scaling the enclosing shape instead scales both the host and the attached content. Place the badge after the geometry element to paint it above the host’s paint. The same child placed before the geometry paints below it. [Placement and paint order](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) For a timed example, [animate an arrowhead that follows a route](https://nothing.graphics/docs/format/guides/animate-a-property). Its keyed locator and stroke trim use the same distance. Ordinary drawable translation adds a relative offset at the attached point. If automatic facing is on, the offset turns with the contour. [Attachment transforms](https://nothing.graphics/docs/format/spec/attached-drawables#placing-an-attached-drawable) # Frame a scene with cameras [Canonical page](https://nothing.graphics/docs/format/guides/cameras) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/cameras.md) Reframe the whole scene and cut between named views without editing the artwork. Declare a 2D `camera` at the scene root and select its `id` with the scene’s `camera` attribute. Put your point of interest at `center-x` and `center-y` to bring it to the viewport center. Set `zoom` greater than 1 for a tighter view. `roll` rotates the camera axes clockwise, so artwork to the right of the center moves up at +90°. Camera framing follows the drawable transforms. The background still fills the fixed viewport. [Camera defaults and projection](https://nothing.graphics/docs/format/spec/spatial#cameras) ## Cut between named views [#cut-between-named-views] Put a held `camera` track on the scene to choose the view. Put continuous numeric tracks on the individual camera to pan or zoom within that view. In the [runnable camera scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/index.nothing), a red marker centered at scene coordinates (32, 22) appears at the following picture coordinates. | Frame at 24 fps | Selected view | Marker position | | --------------- | ------------------------------------------- | --------------- | | 11 | Wide, the default view | (32, 22) | | 12 | Tracking, center (35, 20) and zoom 2 | (44, 44) | | 24 | Rolled +90° around viewport center (50, 40) | (32, 58) | | 36 | Wide again | (32, 22) | The tracking view has already sampled half of its center-X track by frame 12. Move the selector’s frame-12 cut to frame 18 and the camera’s center at the new cut becomes (37.5, 20). The marker then appears at (39, 44). The camera’s numeric track remains on the scene clock, independent of when it is selected. [Camera-cut observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#camera-cuts) A referenced scene frames and clips its own picture before the parent places it. This sample also places a [child scene with a close camera](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/child.nothing). A parent view can reframe the result of that placement, including the child’s background. The 2D framing above is Level 1. Perspective optics are specified separately, and spatial authoring with planes is a trial. [Perspective optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics) · [Spatial camera trial](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) ## Examples [Download the complete .nothing source](https://nothing.graphics/format/camera-cuts/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/index.nothing) Rendered with ncf-preview at 100 × 80. Bound resources - [ncf/conformance/cameras/child.nothing](https://nothing.graphics/format/camera-cuts/child.nothing) - [Frame 11 · Wide](https://nothing.graphics/format/camera-cuts/11.webp). The red marker sits near (32, 22). The red square inside the referenced child scene is already framed before placement. - [Frame 12 · Tracking](https://nothing.graphics/format/camera-cuts/12.webp). A held key cuts to the 2× zoom of the tracking camera. The red marker moves to (44, 44). - [Frame 24 · Rolled](https://nothing.graphics/format/camera-cuts/24.webp). The next held key cuts to a rolled view. The red marker appears at (32, 58). ```xml ``` # Choose a paint scope, mask, or filter [Canonical page](https://nothing.graphics/docs/format/guides/compositing) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/compositing.md) Control which pixels an operation reads and where its result can appear. Read siblings in drawing order, with later drawables painting over earlier ones. A group collects its children so a single transform, mask or opacity can affect their combined picture. A shape assembles its own fill and strokes with any attached drawables. Use a mask for coverage, a source filter for the drawable’s picture, and a backdrop filter for earlier painting behind it. [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) | To control… | Put this on the drawable | | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | The silhouette of a window | A `mask type="geometry"` with one source shape. The source’s geometry defines coverage, including holes. | | A soft or brightness-dependent matte | An `alpha` mask for the source picture’s alpha, or a `luminance` mask for its alpha-weighted brightness. An opaque black source gives full coverage in an alpha mask and zero in a luminance mask. | | The pixels made by the drawable itself | A `filter`. Its operations read in order, so a blur after a drop shadow sees the source and the shadow. | | The picture already painted behind the drawable | A `backdrop-filter` containing one `blur`. A shape supplies its geometry as the effect’s aperture. A group or sequence needs an explicit mask. | To keep a window fixed while its picture pans, mask the enclosing group and translate the child sequence. A mask refers to its owner regardless of its position among the owner’s children. Moving a drawable into the masked group changes its membership, so that drawable now passes through the same window. The [moving-card walkthrough](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) shows the exact pixels that change when the progress line joins the masked group. [Mask source rules](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) ## Blur the background and cast a separate shadow [#blur-the-background-and-cast-a-separate-shadow] In the [frosted panel](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing), the vertical white stripe is painted first. The panel’s backdrop blur spreads light from that stripe under the panel, including into the formerly black pixel at (25, 14). The source drop shadow extends beyond the panel to (51, 16). The yellow stripe at (28, 14) stays sharp because it paints after the panel. Set only the backdrop `sigma` from 3 to 0. The stripe edge under the tint becomes sharp and the red shadow at (51, 16) keeps the same value. Edit only the shadow’s `dx` to move it while the backdrop blur stays in place. [Backdrop replacement rule](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) · [Layer effect observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Find the backdrop for a blend [#find-the-backdrop-for-a-blend] A normal shape assembles its own source on transparency. An unfiltered pass-through group can expose the enclosing backdrop to its children, so Multiply can see earlier layers. A nonempty source filter creates an isolated source, even when its `blur` has sigma zero. The [source-filter case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/blending/source-filter.nothing) puts a yellow Multiply mark over a blue plate in both scopes. On frame 0 the passing mark turns black at (20, 4), while the isolated mark is still yellow at (20, 20). Removing the isolated group’s blur operation gives it access to the enclosing plate again. [Drawable blending observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#drawable-blending) ## Examples [Download the complete .nothing source](https://nothing.graphics/format/source-and-backdrop/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) Rendered with ncf-preview at 64 × 32. - [Frame 0 · Frosted panel](https://nothing.graphics/format/source-and-backdrop/0.webp). A sharp white stripe diffuses under the tinted panel. A thin red shadow extends to the panel’s right, and a yellow stripe paints sharply above the result. ```xml ``` # Cut geometry with booleans [Canonical page](https://nothing.graphics/docs/format/guides/cutouts) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/cutouts.md) Keep subtraction operands and text editable while cutting holes in a filled shape. Use `boolean type="subtraction"` as a shape’s geometry. Put the base region first and each cutter after it. The enclosing shape supplies the paint for the resulting region. The operands contribute their transformed closed geometry, so edits to their positions or contours update the hole. [Boolean operands and evaluation](https://nothing.graphics/docs/format/spec/graphics#boolean-geometry) In the [cutout scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing), the left block subtracts a circle from a blue rectangle. Pixel (48, 32) is empty and pixel (8, 32) is blue. Edit the cutter’s `offset-x` from 48 to 64 to move the hole. Alternatively, swap the original operands. The result becomes empty because the rectangle removes the entire circle. The right block uses the shaped outlines of `BOOK` as its cutter. The O counters stay blue while their strokes leave transparent holes. Change the text operand’s copy to `INK` to move the holes with the new outlines. In the supplied PT Serif Bold environment, (148, 30) changes from transparent to blue. The white horizontal rule at (148, 36) remains visible because it paints as a later shape. [Glyph geometry](https://nothing.graphics/docs/format/spec/text#glyph-geometry) · [Cutout observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#reorder-or-reparent) Use a [geometry mask](https://nothing.graphics/docs/format/guides/compositing) when the same outline should control the visibility of a drawable’s complete picture, including multiple children, strokes or filters. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/editable-cutout/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) Rendered with ncf-preview at 304 × 64. Bound resources - [fixtures/fonts/PT_Serif/PTSerif-Bold.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Bold.ttf) for `PT Serif@700` - [Still · Circle and letter cutouts](https://nothing.graphics/format/editable-cutout/0.webp) at 0s. A blue block has a circular hole. An adjacent blue card has holes in the shape of BOOK, crossed by a white rule painted later. ```xml BOOK ``` # Edit and diagnose source [Canonical page](https://nothing.graphics/docs/format/guides/edit-source) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/edit-source.md) Locate a source field, preserve neighboring markup, and distinguish invalid input from a renderer limit. Start with the file and the element that owns the edit. A key’s value belongs to that key, even if the same number appears in the base attribute or another track. A sequence’s cut belongs to the file declaring the placement. The artwork in a referenced scene belongs to that scene’s file, and editing it can change every placement that uses the reference. [Source-preserving editing](https://nothing.graphics/docs/format/spec#source-preserving-editing) ## Verify the smallest edit [#verify-the-smallest-edit] Open the [rectangle fixture](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.nothing) and select the rectangle’s single-quoted width value. Save once without making a change and compare the file bytes. Then change only the selected value from 40 to 44 and compare again. The diff should contain one changed value. At (50, 20) the sample changes from transparent to terracotta. The height and position stay fixed. The [rectangle exchange case](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.md) records the full input and expected edit behavior. Preserve unrelated comments, quote choice, line endings, sibling order, and attributes that a host uses for metadata. In the [host labels example](https://github.com/gridaco/nothing/blob/main/ncf/examples/host-labels/README.md), those extra attributes stay in the source and have no effect on the sample. Adding a new attribute or child changes the document structure at its owner. When editing copy, preserve unrelated text ranges and entity spellings. [Source names and extension attributes](https://nothing.graphics/docs/format/spec#source-and-names) ## Follow a diagnostic to its owner [#follow-a-diagnostic-to-its-owner] | Example change | Where to look | | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Delete the opening scene’s `height` while leaving `width`. | The scene owns the canvas pair. Either supply both dimensions or omit both and provide a viewport at render time. | | Give one shape both a `rect` and an `ellipse`. | The second child exceeds the shape’s geometry slot. Give each geometry its own shape. | | Change the rate so two keys resolve to the same instant. | The track requires strictly increasing resolved addresses. Check the frame numbers against exact-time keys at the new rate. | | Misspell the local file in a sequence’s `href`. | Check the placement and resolve its path from the file that declares it. | | Render valid footage with the SVG preview. | This preview’s renderer reports unsupported media. Use the host’s coverage and the requested operation to distinguish a renderer limitation from a syntax error. | The strict preview reports a source location for invalid attachments and refuses that sample. For example, `along` on a child of a compound path requires a diagnostic because the host lacks a single contour. To see the host’s specified fallback while retaining the warning, use the preview’s `--best-effort` mode. [Attachment diagnostics](https://nothing.graphics/docs/format/spec/attached-drawables#what-is-reported) · [Preview behavior](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md) # Keep text editable [Canonical page](https://nothing.graphics/docs/format/guides/editable-text) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/editable-text.md) Style literal copy, replace a word at a key, or reproduce wrapped layout with a fixed font environment. Use `text` as a shape’s geometry to keep the copy and paragraph settings editable. The text owns its first baseline `y`, its horizontal anchor `x`, and its base font family and size. Use the shape’s fill for the base ink. Put a `span` around a range that needs its own style or fill. Whitespace between spans is literal copy, so indent mixed content only when the added spaces and line breaks belong in the text. [Text content and paragraph fields](https://nothing.graphics/docs/format/spec/text#content-and-ownership) ## Replace one word at a key [#replace-one-word-at-a-key] In the [moving-card scene](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing), the line starts with the literal copy `Status READY.` and the status word belongs to a bold span. That span has a held `animate attributeName="value"` track. The period and preceding text remain part of the surrounding text. At frame 24 the span reads `WAIT` and its separate color track gives it a green fill. Change the frame-24 key’s `value` to `DONE` to edit that sampled word. Change the span’s character data to edit its base copy. Each edit targets a different source location. Place replacement keys on a text or span without nested spans. The string target is spelled `value` inside `attributeName`; the key’s `value` attribute holds the replacement copy. For a literal newline in a key value, use ` `. [Copy ownership and replacement](https://nothing.graphics/docs/format/spec/text#content-and-ownership) · [Source edits](https://nothing.graphics/docs/format/guides/edit-source) ## Wrap and reproduce a layout [#wrap-and-reproduce-a-layout] The [caption scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/caption.nothing) requests NCF Arithmetic at size 20. Its two A glyphs advance 24 units. The face lacks Cyrillic, so the two Ж glyphs use PT Serif and advance about 37.88 units. With `inline-size="44"` the words fall on separate lines at baselines 24 and 50. With `inline-size="74"` both words fit on the first line: 24 units for the first word, 12 for the space, and about 37.88 for the second word. Bind both exact faces and hide installed fonts to reproduce that result. The name in the scene expresses a family request. The command supplies the actual font files. Run from the repository root after [setting up the shared fixtures](https://nothing.graphics/docs/format/guides/first-scene#render-and-edit-the-still). ```sh (cd ncf && cargo run --locked -p ncf-preview -- \ conformance/fonts/caption.nothing --fonts-only \ --font 'NCF Arithmetic@400=conformance/attached-drawables/arithmetic.ttf' \ --font 'PT Serif@400=../fixtures/fonts/PT_Serif/PTSerif-Regular.ttf' -o ../caption.svg) ``` When a family is missing, a host can report the request and substitute an available face. The original request stays in the file. The available faces, fallback order and shaping environment can change wrapping and ink. Share those inputs with the scene when the layout must repeat. [Font resolution](https://nothing.graphics/docs/format/spec/fonts#reproducing-a-layout) · [Independent glyph and baseline observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/README.md) ## Examples [Download the complete .nothing source](https://nothing.graphics/format/editable-caption/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/caption.nothing) Rendered with ncf-preview at 120 × 80. Bound resources - [fixtures/fonts/PT_Serif/PTSerif-Regular.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Regular.ttf) for `PT Serif@400` - [ncf/conformance/attached-drawables/arithmetic.ttf](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/arithmetic.ttf) for `NCF Arithmetic@400` - [Still · Wrapped caption](https://nothing.graphics/format/editable-caption/0.webp) at 0s. The two square primary glyphs share the first baseline. The two Cyrillic characters use the fallback face and wrap to the second baseline. ```xml AA ЖЖ ``` # Make your first scene [Canonical page](https://nothing.graphics/docs/format/guides/first-scene) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/first-scene.md) Save a complete .nothing still, render it, and predict where it paints. Save the complete example below as `first-scene.nothing` in the repository root as UTF-8. Its only drawable is a 40 × 40 rectangle painted opaque terracotta. You can also start with the [runnable file](https://github.com/gridaco/nothing/blob/main/ncf/conformance/first-scene.nothing). ```xml ``` 1. The `scene` establishes a transparent 64 × 64 canvas. The origin is the top left. X increases right and Y increases down. 2. The `rect` gives the `shape` a contour. By default its center is the shape’s local origin. The shape’s translation places that center at (28, 28). 3. The `fill` paints the interior. Its `paint` contains one `solid` value in `#RRGGBBAA` notation. The final `FF` gives full opacity. ## Render and edit the still [#render-and-edit-the-still] The Rust preview includes fonts from the pinned shared fixture checkout. With Git and Rustup available, initialize that checkout once from the repository root. ```sh git submodule update --init --checkout third_party/externals/fixtures bin/check-fixtures ``` Then pass the file you just saved to the Rust preview CLI. Run Cargo from `ncf` to use the project’s pinned Rust toolchain. ```sh (cd ncf && cargo run --locked -p ncf-preview -- \ ../first-scene.nothing -o ../first-scene.svg) ``` Open `first-scene.svg` in a browser. The rectangle starts at (8, 8) and its right and bottom boundaries are both 48. At one pixel per scene unit, pixel (8, 8) is terracotta and pixel (48, 48) is transparent. The scene can render with authored base values because it has neither timed placements nor animation tracks. [Preview CLI](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md) · [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) Edit the shape’s `translate-x` from 28 to 36 and render again. The X boundaries become 16 and 56. Then change only the rectangle’s `width` from 40 to 24. The X boundaries become 24 and 48, centered at 36. Both edits leave the 64 × 64 canvas and the Y boundaries fixed. Use the `.nothing` source for edits. The exported SVG describes the rendered sample. Next, [rotate and resize around a chosen point](https://nothing.graphics/docs/format/guides/rotate-and-resize) or [add paint and stroke detail](https://nothing.graphics/docs/format/guides/paints-and-strokes). ## Examples [Download the complete .nothing source](https://nothing.graphics/format/first-scene/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/first-scene.nothing) Rendered with ncf-preview at 64 × 64. - [Still · Centered rectangle](https://nothing.graphics/format/first-scene/0.webp) at 0s. A terracotta rectangle occupies x from 8 to 48 and y from 8 to 48 on a transparent 64 × 64 canvas. # Guides and concepts [Canonical page](https://nothing.graphics/docs/format/guides) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/index.md) Work through common scene authoring questions. [Make your first scene](https://nothing.graphics/docs/format/guides/first-scene) to save and render a complete still. Then choose an edit or a behavior to follow. | I want to… | Guide | | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | Move, rotate, or resize a shape around a chosen point | [Rotate and resize](https://nothing.graphics/docs/format/guides/rotate-and-resize) | | Draw paths, build a paint stack, or reveal a stroke over distance | [Draw with paints and strokes](https://nothing.graphics/docs/format/guides/paints-and-strokes) | | Layer translucent paint or author a controlled color ramp | [Build paint stacks and gradients](https://nothing.graphics/docs/format/guides/paint-stacks) | | Cut a hole with an editable shape or text range | [Cut geometry with booleans](https://nothing.graphics/docs/format/guides/cutouts) | | Keep a badge, arrowhead, or label attached to geometry | [Attach a drawable to geometry](https://nothing.graphics/docs/format/guides/attach-geometry) | | Clip several drawables together, soften the background, or control blending | [Choose a paint scope, mask, or filter](https://nothing.graphics/docs/format/guides/compositing) | | Animate an authored value and predict an intermediate frame | [Animate a property](https://nothing.graphics/docs/format/guides/animate-a-property) | | Move or slip a clip and find its nested picture and audio samples | [Place and time nested sequences](https://nothing.graphics/docs/format/guides/sequences-and-audio) | | Reframe artwork and cut between views | [Frame a scene with cameras](https://nothing.graphics/docs/format/guides/cameras) | | Edit a title, wrap a paragraph, or reproduce a font layout | [Keep text editable](https://nothing.graphics/docs/format/guides/editable-text) | | Find the owning source field and interpret a diagnostic | [Edit and diagnose source](https://nothing.graphics/docs/format/guides/edit-source) | Look up an XML spelling in the [element index](https://nothing.graphics/docs/format/reference/elements) or [attribute index](https://nothing.graphics/docs/format/reference/attributes). Use the [Level 1 specification](https://nothing.graphics/docs/format/spec) for evaluation rules and [the type model](https://nothing.graphics/docs/format/spec/type-model) for structural details. ## Follow a behavior to its rule and example [#follow-a-behavior-to-its-rule-and-example] Some rules govern the whole picture or source file and have no attribute of their own. Start with the guide for the edit, then use the rule and the observation to check the result. | Behavior | Edit or field | Rule | Check a sample | | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Document extent, source ownership and diagnostics | [First scene](https://nothing.graphics/docs/format/guides/first-scene) · [Source edits](https://nothing.graphics/docs/format/guides/edit-source) · [Scene](https://nothing.graphics/docs/format/reference/scene) | [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) · [Source preservation](https://nothing.graphics/docs/format/spec#source-preserving-editing) · [Diagnostics](https://nothing.graphics/docs/format/spec#diagnostics-and-evidence) | [Viewport exchange and one-value source patch](https://github.com/gridaco/nothing/blob/main/ncf/conformance/rectangle.md) | | Geometry, paint order and operand coverage | [Paint stacks](https://nothing.graphics/docs/format/guides/paint-stacks) · [Cutouts](https://nothing.graphics/docs/format/guides/cutouts) · [Mask](https://nothing.graphics/docs/format/reference/mask) | [Shape evaluation](https://nothing.graphics/docs/format/spec/graphics#evaluating-a-shape) | [Paint and mask probes](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#paint-stacks-strokes-and-mask-coverage) | | Resize around a fixed local point | [Rotate and resize](https://nothing.graphics/docs/format/guides/rotate-and-resize) · [Registration](https://nothing.graphics/docs/format/reference/registration) | [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) | [Centered poses and mounted edges](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md) | | Source and backdrop scope | [Compositing](https://nothing.graphics/docs/format/guides/compositing) · [Filter](https://nothing.graphics/docs/format/reference/filter) · [Backdrop filter](https://nothing.graphics/docs/format/reference/backdrop-filter) | [Source operation order and backdrop replacement](https://nothing.graphics/docs/format/spec/filters) | [Frosted panel and isolated read scopes](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) | | Base values and key addresses | [Animate a property](https://nothing.graphics/docs/format/guides/animate-a-property) · [Key](https://nothing.graphics/docs/format/reference/key) | [Key addresses](https://nothing.graphics/docs/format/spec/animation#key-addresses) · [Track evaluation](https://nothing.graphics/docs/format/spec/animation#evaluation) | [Seek, repeat and rate changes](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#property-animation-cases) | | Nested picture and sound clocks | [Place and time sequences](https://nothing.graphics/docs/format/guides/sequences-and-audio) · [Sequence](https://nothing.graphics/docs/format/reference/sequence) | [Composition sampling](https://nothing.graphics/docs/format/spec/sequences#resolving-a-composition-at-time-t) · [Audio mixing](https://nothing.graphics/docs/format/spec/sequences#audio-sampling-and-mixing) | [Moving card offsets](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) · [N4 nested audio probe](https://github.com/gridaco/nothing/blob/main/n4/engine/tests/ncf_cutover.rs) | | Geometry hosts and locator order | [Attach to geometry](https://nothing.graphics/docs/format/guides/attach-geometry) · [Locator](https://nothing.graphics/docs/format/reference/locator) | [Hosts](https://nothing.graphics/docs/format/spec/attached-drawables#hosts) · [Attachment paint order](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) | [Attachment positions, transforms and reports](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#running-the-wider-conformance-cases) | | Local transforms and scene framing | [Frame with cameras](https://nothing.graphics/docs/format/guides/cameras) · [Transform](https://nothing.graphics/docs/format/reference/transform) | [Local to parent](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) · [Cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) | [Camera cuts](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#camera-cuts) | | Font matching and fallback | [Reproduce a caption](https://nothing.graphics/docs/format/guides/editable-text#wrap-and-reproduce-a-layout) · [Text fields](https://nothing.graphics/docs/format/reference/text) | [Font selection and layout inputs](https://nothing.graphics/docs/format/spec/fonts) | [Missing family, fallback and reflow](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/README.md) | | Literal copy, spans and layout | [Replace a word at a key](https://nothing.graphics/docs/format/guides/editable-text#replace-one-word-at-a-key) · [Span](https://nothing.graphics/docs/format/reference/span) | [Copy ownership](https://nothing.graphics/docs/format/spec/text#content-and-ownership) · [Layout at a sample](https://nothing.graphics/docs/format/spec/text#layout-at-a-sample) | [Caption and key edits](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) | | Stroke travel and pen lifts | [Reveal a signature](https://nothing.graphics/docs/format/guides/paints-and-strokes#reveal-a-signature-across-a-pen-lift) · [Trim](https://nothing.graphics/docs/format/reference/trim) | [Directed contour and distance](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance) | [Compound trim and signature probes](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) | # Build paint stacks and gradients [Canonical page](https://nothing.graphics/docs/format/guides/paint-stacks) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/paint-stacks.md) Control a contour's color spatially with a ramp or uniformly with layered paints. Use a gradient when position within a geometry should determine the color. Use ordered paints when multiple color contributions should cover the same region. A `fill` has one ordered list of `paint` elements, each containing one paint value. Sibling strokes follow the same geometry after the fill. [Paint and stroke rules](https://nothing.graphics/docs/format/spec/graphics#paint) In the [runnable two-swatch scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/gradient-paint-stack.nothing), the outlined left swatch has a linear gradient in `userSpaceOnUse` units. Its ramp runs from navy at (24, 32) to teal at (80, 32), with endpoint colors covering the rest of the shape. The middle of the ramp is at x = 52. Change `x2` to 96 to move that midpoint to x = 60. The contour and dark outline keep their positions. The right swatch layers translucent teal (`#4ABCC080`) over solid navy (`#193661FF`). At (144, 32) the combined color is approximately `#327991FF`. Reverse those two paints and that pixel becomes the opaque navy, since the navy now covers the teal. For a ramp tied to the geometry’s size, use bounds-relative coordinates. Use a `stop` track to animate the color or position of one point on the ramp, or key drawable opacity to fade the entire assembled swatch. The preview used for these samples supports solid stacks and a single user-space linear or radial gradient. [Gradient units and stops](https://nothing.graphics/docs/format/spec/graphics#paint) · [Stop animation](https://nothing.graphics/docs/format/spec/animation#decision-on-animating-a-gradient-stop) · [Preview support](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md#preview-coverage) ## Examples [Download the complete .nothing source](https://nothing.graphics/format/paint-stack/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/gradient-paint-stack.nothing) Rendered with ncf-preview at 208 × 64. - [Still · Ramp and paint stack](https://nothing.graphics/format/paint-stack/0.webp) at 0s. The outlined swatch at the left transitions from navy to teal. The swatch at the right uses a translucent teal paint over solid navy. ```xml ``` # Draw with paints and strokes [Canonical page](https://nothing.graphics/docs/format/guides/paints-and-strokes) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/paints-and-strokes.md) Choose geometry, paint its interior and contour, then reveal a stroke by distance. A `shape` holds one geometry. Its contour can give a filled region, a stroke centerline, or both. Start with a rectangle, circle, or ellipse for a boxed primitive, a polyline for an open series of edges, or a `path` for SVG path commands and multiple subpaths. Use a `polygon` to close a point list. Put editable operand shapes inside `boolean` when the result should follow a union, intersection, subtraction, or exclusion. [Shapes and path data](https://nothing.graphics/docs/format/spec/graphics#shapes) · [Boolean geometry](https://nothing.graphics/docs/format/spec/graphics#boolean-geometry) ## Paint the interior or the edge [#paint-the-interior-or-the-edge] * Give the shape one `fill` with paints in the order you want them applied. Each `paint` contains one value, such as a solid color or a gradient. Put an opaque base first and translucent paint after it. A paint’s blend mode combines it with the existing paint stack or enclosing scope as applicable. * Give the shape sibling `stroke` elements to trace the same contour at different widths. A wide stroke before a narrow stroke makes a casing with a center stripe. Set caps for the ends and joins for corners. Use centered alignment for open contours. * Use a local image as a rectangle’s paint for still artwork. For example, `preserveAspectRatio="xMidYMid slice"` centers and covers the rectangle. Resolve `href` relative to the scene that declares it. [Paint and stroke rules](https://nothing.graphics/docs/format/spec/graphics#paint) · [Runnable linked-artwork scene](https://github.com/gridaco/nothing/blob/main/ncf/examples/linked-artwork/scene.nothing) ## Reveal a signature across a pen lift [#reveal-a-signature-across-a-pen-lift] The [signature scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/signature-write-on.nothing) is a hand-authored Bézier path. One subpath forms the lettering and a second forms its underline. The stroke has round tips and turns. With its `trim` end animated from 0 to 1 over 96 frames at 24 fps, the path writes on over four seconds. Around frame 74 the first subpath is complete. The pen lifts to the underline’s start and the next visible ink appears there. Shorten the reveal by changing the last key’s frame from 96 to 48. The shape and traversal order stay the same. ### Predict the distance across disconnected subpaths [#predict-the-distance-across-disconnected-subpaths] The [compound trim fixture](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-trim.nothing) starts with a path `M8 10h48 M72 10h16`. The two drawn pieces measure 48 and 16 units, totaling 64. Each `M` positions the pen, with zero drawn distance. An animated `trim` on the stroke reveals a fraction of the total, using just the length of the drawn segments. | Sample at 24 fps | Stroke end fraction | What paints | | ---------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | Frame 4 | 0.5 | The first 32 units. The top stroke centerline reaches x = 40, before its round cap. | | Frame 6 | 0.75 | All 48 units of the first line. The second line is still clear. On the middle row, the closing command finishes the fourth edge of the square. | | Frame 8 | 1 | Both lines. The second line reaches x = 88, before its round cap. | The bottom stroke uses a fixed trim window from 0.625 to 0.875. It paints eight units on either side of the pen lift as two separate pieces. To add a guide behind the reveal, add a wide untrimmed stroke before the animated stroke. Both keep reading the same path when you edit a segment. [Contour trim and distance](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance) · [Conformance observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md) For a still, [build a solid paint stack or gradient](https://nothing.graphics/docs/format/guides/paint-stacks). To remove a region while keeping its source geometry editable, [cut a hole with a boolean](https://nothing.graphics/docs/format/guides/cutouts). ## Examples [Download the complete .nothing source](https://nothing.graphics/format/signature-trim/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/signature-write-on.nothing) Rendered with ncf-preview at 260 × 160. - [Frame 24 · Opening loop](https://nothing.graphics/format/signature-trim/24.webp). Dark blue ink forms the opening loop. The later letter strokes and the underline are still blank. - [Frame 72 · Final letter](https://nothing.graphics/format/signature-trim/72.webp). The stroke reaches the final letter and the underline is still absent. The pen lift adds zero length. - [Frame 84 · Underline in progress](https://nothing.graphics/format/signature-trim/84.webp). The lettering is complete. A separate ink stroke grows from left to right beneath it. - [Frame 96 · Complete signature](https://nothing.graphics/format/signature-trim/96.webp). The blue underline reaches its rounded final cap beneath the completed lettering. ```xml ``` # What stays fixed when I rotate or resize? [Canonical page](https://nothing.graphics/docs/format/guides/rotate-and-resize) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/rotate-and-resize.md) Rotate a drawable or change its dimensions around a chosen point. Set [`rotate` on the shape](https://nothing.graphics/docs/format/reference/transform#rotate) to turn its picture about the drawable’s pivot. Set [`width` on the rectangle](https://nothing.graphics/docs/format/reference/rect#width) to change its local geometry about the registration point. Both points start at the shape’s local origin in the [sampled rectangle scene](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing). ## Keep the center fixed [#keep-the-center-fixed] The first shape’s translation places its local origin at (32, 24). Its rectangle uses the default center registration. The shape owns the rotation track and the rectangle owns a separate width track. | Frame | Shape rotation | Local rectangle size | Painted footprint in scene coordinates | | ----- | -------------- | -------------------- | -------------------------------------- | | 0 | 0° | 12 × 8 | 12 × 8 | | 4 | 90° clockwise | 12 × 8 | 8 × 12 | | 8 | 90° clockwise | 20 × 8 | 8 × 20 | The footprint stays centered at (32, 24). At frame 8 the 20-unit local X dimension appears vertical because the shape’s rotation applies after computing its local geometry. ## Keep the left edge mounted [#keep-the-left-edge-mounted] Set [`anchor-u="0"`](https://nothing.graphics/docs/format/reference/registration#anchor-u) on the first rectangle and leave `anchor-v` at its default of 0.5. Its local left-edge midpoint now sits at the shape pivot, (32, 24) in the scene. At frame 8 the rotated rectangle extends downward from y = 24 to 44. Set a [geometry offset](https://nothing.graphics/docs/format/reference/registration#offset-x) to move the registration point within the drawable. Set a [drawable pivot](https://nothing.graphics/docs/format/reference/transform#pivot-x) to move the rotation point. Use a group to transform several drawables together, or a locator to [keep a child mounted on the geometry](https://nothing.graphics/docs/format/guides/attach-geometry). [Registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) · [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) ## Examples The shape owns the rotation. The rectangle owns its local width. The shape’s translation and the rectangle’s default center registration keep the painted rectangle centered at (32, 24). [Download the complete .nothing source](https://nothing.graphics/format/centered-rectangle/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) Rendered with ncf-preview at 80 × 56. - [Frame 0 · Initial pose](https://nothing.graphics/format/centered-rectangle/0.webp). A 12 × 8 white rectangle centered at (32, 24). Three smaller registration examples sit to its right. - [Frame 4 · Quarter turn](https://nothing.graphics/format/centered-rectangle/4.webp). The rectangle turns 90° clockwise. Its painted extent is 8 × 12 and its center stays at (32, 24). - [Frame 8 · Wider rectangle](https://nothing.graphics/format/centered-rectangle/8.webp). The local width increases to 20 while the quarter turn holds. The painted extent is 8 × 20 and its center stays at (32, 24). ```xml ``` # Place and time nested sequences [Canonical page](https://nothing.graphics/docs/format/guides/sequences-and-audio) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/guides/sequences-and-audio.md) Move or slip a clip and calculate its picture and sound sample across nested clocks. A `sequence` places one source on a parent timeline. Use `href` for audio, video, or a separate scene. Omit `href` and author drawable children for a local compound clip. A placement has `begin`, positive `dur`, and `source-start`. Place it in the parent with `begin`, trim its visible interval with `dur`, and slip its content with `source-start`. Resolve relative paths from the file containing that placement. [Sequence syntax and clocks](https://nothing.graphics/docs/format/spec/sequences#sequence) ## Compute the source address [#compute-the-source-address] At parent time `t`, check that `begin ≤ t < begin + dur`. If active, compute: ```text source-time = source-start + (t - begin) ``` Apply the same calculation again at the next nesting level. A property on the placement itself, such as its transform or gain, samples the parent clock. Its filter and mask also sample that clock. The picture and audio inside the clip sample the mapped source clock. Convert `f` addresses using the authored rate of the scene that declares them. A referenced scene uses its own rate, and an inline sequence inherits the containing scene’s rate. Use seconds for `source-start`. In the [moving-card scene](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing), two placements start together at frame 0 and show the same [child scene](https://github.com/gridaco/nothing/blob/main/ncf/examples/card-picture.nothing). At frame 24 in the 24 fps parent, the left placement reads child time 1s and the right reads child time 2s. Changing only the right `source-start` from `1s` to `1.25s` advances its stripe six child units. The right placement’s own translation and its window remain at the values sampled for parent frame 24. Both placements become inactive at frame 72. [Moving-card observations](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) ## Predict a nested mix [#predict-a-nested-mix] Consider a compound clip beginning at shot time 4s with `dur="6s"` and `source-start="0s"`. Inside it, a voice starts at child time 2s with `dur="3s"` and `source-start="10s"`. | Shot sample | Compound clip source time | Voice source sample | | ----------- | ------------------------- | -------------------------- | | 6s | 2s | 10s, the inclusive start | | 7s | 3s | 11s | | 9s | 5s | Silence, the exclusive end | On aligned sample grids with matching channel layouts, sum active source samples per channel after applying each placement’s gain. Two coincident samples of 0.75 at gain 1 yield 1.5 inside a compound clip. The clip’s own gain of 0.5 then contributes 0.75 to its parent. Picture transforms, masks and opacity leave audio unchanged. [Audio sampling and mixing](https://nothing.graphics/docs/format/spec/sequences#audio-sampling-and-mixing) A picture request with a placement needs an explicit time, including at the opening. The SVG preview can sample inline and linked `.nothing` pictures. Use a media-capable host such as N4 for footage and audio. [Preview coverage](https://github.com/gridaco/nothing/blob/main/ncf/tools/ncf-preview/README.md#preview-coverage) · [N4 CLI](https://github.com/gridaco/nothing/blob/main/n4/cli/README.md) ## Examples [Download the complete .nothing source](https://nothing.graphics/format/moving-card/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) Rendered with ncf-preview at 320 × 200. Bound resources - [fixtures/fonts/PT_Serif/PTSerif-Bold.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Bold.ttf) for `PT Serif@700` - [fixtures/fonts/PT_Serif/PTSerif-Regular.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Regular.ttf) for `PT Serif@400` - [ncf/examples/card-picture.nothing](https://nothing.graphics/format/moving-card/card-picture.nothing) - [Frame 12 · Distinct in-points](https://nothing.graphics/format/moving-card/12.webp). Two masked windows show different times of the same picture. A progress line is halfway revealed beneath the caption Status READY. - [Frame 24 · Full progress stripe](https://nothing.graphics/format/moving-card/24.webp). The left and right panels show source frames 24 and 48. The word WAIT appears in green and the progress stripe reaches the bend’s upper tip. ```xml ``` # `` [Canonical page](https://nothing.graphics/docs/format/reference/animate) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/animate.md) Key one property on the enclosing XML element. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/moving-locator/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing) Rendered with ncf-preview at 128 × 96. - [Frame 0 · Start](https://nothing.graphics/format/moving-locator/0.webp). An amber marker sits at the start of a dark road. The white stripe has zero length. - [Frame 12 · Halfway](https://nothing.graphics/format/moving-locator/12.webp). The stripe has painted 50 of the road’s 100 local units. The marker points right from (66, 16). - [Frame 18 · Around the corner](https://nothing.graphics/format/moving-locator/18.webp). The stripe runs 15 units down the vertical leg. The marker points down from (76, 31). - [Frame 24 · End](https://nothing.graphics/format/moving-locator/24.webp). The stripe covers both legs. The marker points off the end of the vertical leg at (76, 56). ```xml ``` A property track is a direct child of the element that owns the value. Tracks add no paint or mixing slot. Base evaluation uses the authored value or its defined default. ## Syntax [#syntax] ### Turn a shape and hold its final angle [#turn-a-shape-and-hold-its-final-angle] Key rotation on the owning shape. The turn reaches 45° at frame 2 and 90° at frame 4. Freeze retains the final angle while the rectangle’s separate width track runs through frame 8. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md#a-centered-rectangle-rotates-and-widens) ## Usage context [#usage-context] Use directly under a keyable property owner. The selected property must support keys in that context. Level 1 owners are [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/rect), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/scene), [``](https://nothing.graphics/docs/format/reference/camera), [``](https://nothing.graphics/docs/format/reference/circle), [``](https://nothing.graphics/docs/format/reference/ellipse), [``](https://nothing.graphics/docs/format/reference/line), [``](https://nothing.graphics/docs/format/reference/polyline), [``](https://nothing.graphics/docs/format/reference/polygon), [``](https://nothing.graphics/docs/format/reference/path), [``](https://nothing.graphics/docs/format/reference/boolean), [``](https://nothing.graphics/docs/format/reference/stroke), [``](https://nothing.graphics/docs/format/reference/trim), [``](https://nothing.graphics/docs/format/reference/paint), [``](https://nothing.graphics/docs/format/reference/solid), [``](https://nothing.graphics/docs/format/reference/image), [``](https://nothing.graphics/docs/format/reference/gradient), [``](https://nothing.graphics/docs/format/reference/stop), [``](https://nothing.graphics/docs/format/reference/mask), [``](https://nothing.graphics/docs/format/reference/blur), [``](https://nothing.graphics/docs/format/reference/drop-shadow), [``](https://nothing.graphics/docs/format/reference/inner-shadow), [``](https://nothing.graphics/docs/format/reference/box-shadow), [``](https://nothing.graphics/docs/format/reference/text), [``](https://nothing.graphics/docs/format/reference/span), [``](https://nothing.graphics/docs/format/reference/sequence). The spatial trial also allows [``](https://nothing.graphics/docs/format/reference/plane) as a property owner. The selected property needs a valid base. Some bases are mandatory even when the property can be omitted without a track. At a sample, the latest contributing first-key time wins, with ties resolved by later declaration order. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `attributeName` [#attributename] **Value** `Case-sensitive keyable property name on the enclosing owner` · **Required** · **Keys** Static Select the XML attribute or an animation-only target such as the literal copy value on leaf text. ### `fill` [#fill] **Value** `remove`, `freeze` · **If omitted** `remove` · **Keys** Static Remove releases the property when the final iteration finishes. Freeze retains the last value. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) ### `repeatCount` [#repeatcount] **Value** `Positive integer` · **If omitted** `1` · **Keys** Static Number of iterations. An interior repeat boundary uses the first key again. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------- | ----------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/key) | Two or more | `` | The first key starts the track and the last defines the iteration endpoint. Strictly increasing resolved instants. Equal times are invalid even with different address forms. [Frame and exact-time addresses](https://nothing.graphics/docs/format/spec/animation#key-addresses) | ## Specifications [#specifications] * [Owning and authoring tracks](https://nothing.graphics/docs/format/spec/animation#authoring) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) * [Frame and exact-time addresses](https://nothing.graphics/docs/format/spec/animation#key-addresses) # Attributes [Canonical page](https://nothing.graphics/docs/format/reference/attributes) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/attributes.md) Find XML attribute spellings by element owner and look up animation-only targets. Attribute names are case-sensitive. Each entry names the elements on which the spelling is valid. [Animation-only targets](https://nothing.graphics/docs/format/reference/attributes#animation-only-targets) are listed separately. ## `along` [#along] * [``](https://nothing.graphics/docs/format/reference/shape#along), [``](https://nothing.graphics/docs/format/reference/group#along), [``](https://nothing.graphics/docs/format/reference/sequence#along) · Declared by [Locator](https://nothing.graphics/docs/format/reference/locator#along). Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base. Independently keyable with scalar keys. ## `anchor-u` [#anchor-u] * [``](https://nothing.graphics/docs/format/reference/rect#anchor-u), [``](https://nothing.graphics/docs/format/reference/circle#anchor-u), [``](https://nothing.graphics/docs/format/reference/ellipse#anchor-u) · Declared by [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-u). Horizontal registration. Zero selects the left edge and one the right edge. Values outside that interval extrapolate. Defaults to `0.5`. Independently keyable with scalar keys. ## `anchor-v` [#anchor-v] * [``](https://nothing.graphics/docs/format/reference/rect#anchor-v), [``](https://nothing.graphics/docs/format/reference/circle#anchor-v), [``](https://nothing.graphics/docs/format/reference/ellipse#anchor-v) · Declared by [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-v). Vertical registration. Zero selects the top edge and one the bottom edge. Values outside that interval extrapolate. Defaults to `0.5`. Independently keyable with scalar keys. ## `attributeName` [#attributename] * [``](https://nothing.graphics/docs/format/reference/animate#attributename) · Select the XML attribute or an animation-only target such as the literal copy value on leaf text. `Case-sensitive keyable property name on the enclosing owner`. Required. Static. ## `background` [#background] * [``](https://nothing.graphics/docs/format/reference/scene#background) · Fill the resolved viewport once beneath the artwork, using eight hexadecimal digits in RGBA order. `#RRGGBBAA`. Defaults to `#00000000`. Keys use color channels interpolation. ## `begin` [#begin] * [``](https://nothing.graphics/docs/format/reference/sequence#begin) · Start on the placement's parent clock. Resolve frame counts at the enclosing scene's authored rate. `Integer frames with f, or exact seconds with s`. Required. Static. ## `blend-mode` [#blend-mode] * [Blending](https://nothing.graphics/docs/format/reference/blending#blend-mode) · Blend the assembled drawable into its enclosing paint scope. See the owner definitions for exceptions. * [``](https://nothing.graphics/docs/format/reference/shape#blend-mode). Defaults to `normal`. Keyable with held keys. Values are `normal`, `multiply`, `screen`, `pass-through`. * [``](https://nothing.graphics/docs/format/reference/group#blend-mode). Defaults to `pass-through`. Keyable with held keys. Values are `normal`, `multiply`, `screen`, `pass-through`. * [``](https://nothing.graphics/docs/format/reference/sequence#blend-mode). Defaults to `normal`. Keyable with held keys. Values are `normal`, `multiply`, `screen`. * [``](https://nothing.graphics/docs/format/reference/paint#blend-mode) · Blend this layer into the paint below. The bottom paint's mode composites the assembled stack into its destination. Defaults to `normal`. Keyable with held keys. Values are `normal`, `multiply`, `screen`. ## `camera` [#camera] * [``](https://nothing.graphics/docs/format/reference/scene#camera) · Choose the scene's base view. Required when the scene has camera declarations. With no cameras use the identity view. `Case-sensitive camera ID`. Keyable with held keys. ## `center-x` [#center-x] * [``](https://nothing.graphics/docs/format/reference/camera#center-x) · Scene x coordinate framed at viewport center by a 2D camera. Defaults to `viewport center x`. Independently keyable with scalar keys. ## `center-y` [#center-y] * [``](https://nothing.graphics/docs/format/reference/camera#center-y) · Scene y coordinate framed at viewport center by a 2D camera. Defaults to `viewport center y`. Independently keyable with scalar keys. ## `clip-far` [#clip-far] * [``](https://nothing.graphics/docs/format/reference/camera#clip-far) · Spatial trial. Positive inclusive maximum axial depth. It must exceed clip-near. Defaults to `100000`. Independently keyable with scalar keys. ## `clip-near` [#clip-near] * [``](https://nothing.graphics/docs/format/reference/camera#clip-near) · Spatial trial. Positive inclusive minimum axial depth. It must be below clip-far. Defaults to `0.1`. Independently keyable with scalar keys. ## `color` [#color] * [``](https://nothing.graphics/docs/format/reference/solid#color) · Eight hexadecimal digits giving encoded sRGB followed by linear alpha. `#RRGGBBAA`. Required. Keys use color channels interpolation. * [``](https://nothing.graphics/docs/format/reference/drop-shadow#color), [``](https://nothing.graphics/docs/format/reference/inner-shadow#color), [``](https://nothing.graphics/docs/format/reference/box-shadow#color) · Declared by [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#color). Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space. `#RRGGBBAA`. Required. Keys use color channels interpolation. ## `corner-bottom-left-radius` [#corner-bottom-left-radius] * [``](https://nothing.graphics/docs/format/reference/rect#corner-bottom-left-radius) · Nonnegative radius of the local bottom-left corner. Defaults to the sampled `corner-radius`. Independently keyable with scalar keys. ## `corner-bottom-right-radius` [#corner-bottom-right-radius] * [``](https://nothing.graphics/docs/format/reference/rect#corner-bottom-right-radius) · Nonnegative radius of the local bottom-right corner. Defaults to the sampled `corner-radius`. Independently keyable with scalar keys. ## `corner-radius` [#corner-radius] * [``](https://nothing.graphics/docs/format/reference/rect#corner-radius) · Shared nonnegative circular corner radius. Defaults to `0`. Independently keyable with scalar keys. ## `corner-top-left-radius` [#corner-top-left-radius] * [``](https://nothing.graphics/docs/format/reference/rect#corner-top-left-radius) · Nonnegative radius of the local top-left corner. Defaults to the sampled `corner-radius`. Independently keyable with scalar keys. ## `corner-top-right-radius` [#corner-top-right-radius] * [``](https://nothing.graphics/docs/format/reference/rect#corner-top-right-radius) · Nonnegative radius of the local top-right corner. Defaults to the sampled `corner-radius`. Independently keyable with scalar keys. ## `cx` [#cx] * [``](https://nothing.graphics/docs/format/reference/gradient#cx) · Center x coordinate, required for radial, sweep and diamond gradients. Independently keyable with scalar keys. ## `cy` [#cy] * [``](https://nothing.graphics/docs/format/reference/gradient#cy) · Center y coordinate, required for radial, sweep and diamond gradients. Independently keyable with scalar keys. ## `d` [#d] * [``](https://nothing.graphics/docs/format/reference/path#d) · Absolute or relative commands, with implicit repetition admitted. `SVG 2 XML path data`. Continuous key segments require matching expanded commands and coordinate modes. For arc flags, any nonzero interpolated value is true. Required. Keys use path commands interpolation. ## `direction` [#direction] * [``](https://nothing.graphics/docs/format/reference/text#direction) · Paragraph base direction for bidirectional layout. Defaults to `ltr`. Keyable with held keys. Values are `ltr`, `rtl`. ## `dur` [#dur] * [``](https://nothing.graphics/docs/format/reference/sequence#dur) · Positive duration on the parent clock. The sequence is inactive at its end boundary. `Integer frames with f, or exact seconds with s`. Required. Static. ## `dx` [#dx] * [``](https://nothing.graphics/docs/format/reference/drop-shadow#dx), [``](https://nothing.graphics/docs/format/reference/inner-shadow#dx), [``](https://nothing.graphics/docs/format/reference/box-shadow#dx) · Declared by [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dx). Horizontal displacement, positive to the right. Defaults to `0`. Independently keyable with scalar keys. ## `dy` [#dy] * [``](https://nothing.graphics/docs/format/reference/drop-shadow#dy), [``](https://nothing.graphics/docs/format/reference/inner-shadow#dy), [``](https://nothing.graphics/docs/format/reference/box-shadow#dy) · Declared by [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dy). Vertical displacement, positive down. Defaults to `0`. Independently keyable with scalar keys. ## `ease` [#ease] * [``](https://nothing.graphics/docs/format/reference/key#ease) · Required on each nonfinal key. Hold keeps the left value, linear uses the raw interval fraction, and spline uses a cubic Bézier for that fraction. Static. Values are `hold`, `linear`, `spline`. ## `end` [#end] * [``](https://nothing.graphics/docs/format/reference/trim#end) · End of the selected interval. Required. Independently keyable with scalar keys. ## `f-stop` [#f-stop] * [``](https://nothing.graphics/docs/format/reference/camera#f-stop) · Spatial trial. Positive lens f-number or zero for pinhole rendering. A segment between zero and a positive value requires hold. Defaults to `0`. Keys use scalar with held transitions at zero interpolation. ## `fill` [#fill] * [``](https://nothing.graphics/docs/format/reference/animate#fill) · Remove releases the property when the final iteration finishes. Freeze retains the last value. Defaults to `remove`. Static. Values are `remove`, `freeze`. ## `fill-rule` [#fill-rule] * [``](https://nothing.graphics/docs/format/reference/path#fill-rule) · Winding rule for the path interior. The rule also applies when this path supplies a filled mask or boolean region. Defaults to `nonzero`. Keyable with held keys. Values are `nonzero`, `evenodd`. ## `focal-length-mm` [#focal-length-mm] * [``](https://nothing.graphics/docs/format/reference/camera#focal-length-mm) · Spatial trial. Positive effective focal length for the rectilinear perspective lens. Defaults to `50`. Independently keyable with scalar keys. ## `focus-distance` [#focus-distance] * [``](https://nothing.graphics/docs/format/reference/camera#focus-distance) · Spatial trial. Positive axial distance from the optical center to the focus plane. Defaults to `1000`. Independently keyable with scalar keys. ## `font-family` [#font-family] * [``](https://nothing.graphics/docs/format/reference/text#font-family) · Requested family resolved in the sample's font environment. `One nonempty family name`. Required. Keyable with held keys. * [``](https://nothing.graphics/docs/format/reference/span#font-family) · Override the requested family on this range. `One nonempty family name`. Defaults to `inherit sampled family`. Keyable with held keys. ## `font-size` [#font-size] * [``](https://nothing.graphics/docs/format/reference/text#font-size) · Positive em size. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/span#font-size) · Override this range's positive em size. Defaults to `inherit sampled size`. Independently keyable with scalar keys. ## `font-weight` [#font-weight] * [``](https://nothing.graphics/docs/format/reference/text#font-weight) · Requested face weight. `Exact integer from 1 to 1000`. Defaults to `400`. Keyable with held keys. * [``](https://nothing.graphics/docs/format/reference/span#font-weight) · Override the requested face weight on this range. `Exact integer from 1 to 1000`. Defaults to `inherit sampled weight`. Keyable with held keys. ## `frame` [#frame] * [``](https://nothing.graphics/docs/format/reference/key#frame) · Frame number on the owning composition's clock, whose zero is the first frame. `Integer frame index`. Static. ## `frame-rate` [#frame-rate] * [``](https://nothing.graphics/docs/format/reference/scene#frame-rate) · Authored clock rate. Required if there is a placement or property track anywhere in the document. `Positive integer or ratio of two positive integers in frames per second, such as 24 or 30000/1001`. Static. ## `gain` [#gain] * [``](https://nothing.graphics/docs/format/reference/sequence#gain) · Nonnegative per-channel gain before mixing into the parent. One leaves amplitude unchanged. Defaults to `1`. Independently keyable with scalar keys. ## `gradientUnits` [#gradientunits] * [``](https://nothing.graphics/docs/format/reference/gradient#gradientunits) · Local coordinates. Required for linear and radial gradients. Keyable with held keys. Values are `userSpaceOnUse`. ## `height` [#height] * [``](https://nothing.graphics/docs/format/reference/scene#height) · Positive finite canvas height. Canvas dimensions are supplied together. With both omitted, use the caller's viewport. Static. * [``](https://nothing.graphics/docs/format/reference/rect#height) · Nonnegative rectangle height. Required. Independently keyable with scalar keys. ## `href` [#href] * [``](https://nothing.graphics/docs/format/reference/image#href) · Path to the still image. `Asset reference relative to the declaring document`. Required. Static. * [``](https://nothing.graphics/docs/format/reference/sequence#href) · Optional referenced audio, footage or scene. Omit for inline content. `Asset reference relative to the declaring document`. Static. ## `id` [#id] * [``](https://nothing.graphics/docs/format/reference/camera#id) · Case-sensitive name unique among the scene's cameras. `Nonempty ASCII letters, digits, underscores, or hyphens`. Required. Static. ## `inline-size` [#inline-size] * [``](https://nothing.graphics/docs/format/reference/text#inline-size) · Positive available width for soft wrapping. A track requires an authored finite width. Defaults to `natural line width`. Independently keyable with scalar keys. ## `inset` [#inset] * [``](https://nothing.graphics/docs/format/reference/box-shadow#inset) · True shades inside the rectangle. False casts outside the rectangle. Defaults to `false`. Keyable with held keys. Values are `false`, `true`. ## `keySplines` [#keysplines] * [``](https://nothing.graphics/docs/format/reference/key#keysplines) · Required with spline ease and used only for that outgoing segment. `Four space-separated Bézier coordinates x1 y1 x2 y2, each in [0, 1]`. Static. ## `line-height` [#line-height] * [``](https://nothing.graphics/docs/format/reference/text#line-height) · Positive distance between successive baselines. Defaults to `1.2 times the sampled text font size`. Independently keyable with scalar keys. ## `meters-per-unit` [#meters-per-unit] * [``](https://nothing.graphics/docs/format/reference/scene#meters-per-unit) · Spatial trial. Positive metric scale for the spatial trial. Defaults to `0.001`. Static. ## `offset` [#offset] * [``](https://nothing.graphics/docs/format/reference/stop#offset) · Authored position from zero to one. The effective value is at least the previous effective position. Required. Independently keyable with scalar keys. ## `offset-x` [#offset-x] * [``](https://nothing.graphics/docs/format/reference/rect#offset-x), [``](https://nothing.graphics/docs/format/reference/circle#offset-x), [``](https://nothing.graphics/docs/format/reference/ellipse#offset-x) · Declared by [Registration](https://nothing.graphics/docs/format/reference/registration#offset-x). Horizontal coordinate of the registered point. Defaults to `0`. Independently keyable with scalar keys. ## `offset-y` [#offset-y] * [``](https://nothing.graphics/docs/format/reference/rect#offset-y), [``](https://nothing.graphics/docs/format/reference/circle#offset-y), [``](https://nothing.graphics/docs/format/reference/ellipse#offset-y) · Declared by [Registration](https://nothing.graphics/docs/format/reference/registration#offset-y). Vertical coordinate of the registered point. Defaults to `0`. Independently keyable with scalar keys. ## `opacity` [#opacity] * [``](https://nothing.graphics/docs/format/reference/shape#opacity), [``](https://nothing.graphics/docs/format/reference/group#opacity), [``](https://nothing.graphics/docs/format/reference/sequence#opacity) · Declared by [Blending](https://nothing.graphics/docs/format/reference/blending#opacity). Opacity from 0 to 1, applied once to the completed visual result. Defaults to `1`. Independently keyable with scalar keys. ## `orient` [#orient] * [``](https://nothing.graphics/docs/format/reference/shape#orient), [``](https://nothing.graphics/docs/format/reference/group#orient), [``](https://nothing.graphics/docs/format/reference/sequence#orient) · Declared by [Locator](https://nothing.graphics/docs/format/reference/locator#orient). Facing relative to the host contour. Auto facing requires along or vertex. Defaults to `none`. Keyable with held keys. Values are `none`, `auto`. ## `pivot-x` [#pivot-x] * [``](https://nothing.graphics/docs/format/reference/shape#pivot-x), [``](https://nothing.graphics/docs/format/reference/group#pivot-x), [``](https://nothing.graphics/docs/format/reference/sequence#pivot-x) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-x). Horizontal coordinate of the transform pivot. Defaults to `0`. Independently keyable with scalar keys. ## `pivot-y` [#pivot-y] * [``](https://nothing.graphics/docs/format/reference/shape#pivot-y), [``](https://nothing.graphics/docs/format/reference/group#pivot-y), [``](https://nothing.graphics/docs/format/reference/sequence#pivot-y) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-y). Vertical coordinate of the transform pivot. Defaults to `0`. Independently keyable with scalar keys. ## `points` [#points] * [``](https://nothing.graphics/docs/format/reference/polyline#points), [``](https://nothing.graphics/docs/format/reference/polygon#points) · Declared by [Points](https://nothing.graphics/docs/format/reference/points#points). Authored vertices. An empty list gives no bounds or contour. `Whitespace-separated x,y pairs of finite local coordinates`. Continuous segments require the same number of pairs. A held key may change the number of vertices. Required. Keys use point list interpolation. ## `position-x` [#position-x] * [``](https://nothing.graphics/docs/format/reference/camera#position-x) · Spatial trial. Horizontal coordinate of the perspective optical center. Defaults to `half the viewport width`. Independently keyable with scalar keys. ## `position-y` [#position-y] * [``](https://nothing.graphics/docs/format/reference/camera#position-y) · Spatial trial. Vertical coordinate of the perspective optical center. Defaults to `half the viewport height`. Independently keyable with scalar keys. ## `position-z` [#position-z] * [``](https://nothing.graphics/docs/format/reference/camera#position-z) · Spatial trial. Depth coordinate of the perspective optical center. Defaults to `1000`. Independently keyable with scalar keys. ## `preserveAspectRatio` [#preserveaspectratio] * [``](https://nothing.graphics/docs/format/reference/image#preserveaspectratio) · The defined fit centers the asset and scales it uniformly to cover both axes of the geometry bounds before applying coverage. `xMidYMid slice`. Other fit values are outside this profile. The linked still image examples also use this fit when the attribute is omitted. Keyable with held keys. ## `projection` [#projection] * [``](https://nothing.graphics/docs/format/reference/camera#projection) · Spatial trial. Select the trial projection profile. Cut between named cameras with held scene selector keys. Defaults to `2d`. Static. Values are `2d`, `perspective`. ## `r` [#r] * [``](https://nothing.graphics/docs/format/reference/circle#r) · Nonnegative circle radius. Zero produces no filled area. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#r) · Positive radius, required for a radial gradient. Independently keyable with scalar keys. ## `repeatCount` [#repeatcount] * [``](https://nothing.graphics/docs/format/reference/animate#repeatcount) · Number of iterations. An interior repeat boundary uses the first key again. `Positive integer`. Defaults to `1`. Static. ## `roll` [#roll] * [``](https://nothing.graphics/docs/format/reference/camera#roll) · Clockwise rotation of the camera axes. At positive 90 degrees in 2D, a point right of the camera center appears above viewport center. Defaults to `0`. Independently keyable with scalar keys. ## `rotate` [#rotate] * [``](https://nothing.graphics/docs/format/reference/shape#rotate), [``](https://nothing.graphics/docs/format/reference/group#rotate), [``](https://nothing.graphics/docs/format/reference/sequence#rotate) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#rotate). Rotation about the drawable pivot, clockwise in default scene coordinates. Defaults to `0`. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/plane#rotate) · Spatial trial. In-plane angle, clockwise in default scene coordinates. Defaults to `0`. Independently keyable with scalar keys. ## `rotate-x` [#rotate-x] * [``](https://nothing.graphics/docs/format/reference/camera#rotate-x) · Spatial trial. Perspective camera orientation about the x axis. Defaults to `0`. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/plane#rotate-x) · Spatial trial. Signed angle about the x axis. Defaults to `0`. Independently keyable with scalar keys. ## `rotate-y` [#rotate-y] * [``](https://nothing.graphics/docs/format/reference/camera#rotate-y) · Spatial trial. Perspective camera orientation about the y axis. Defaults to `0`. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/plane#rotate-y) · Spatial trial. Signed angle about the y axis. Defaults to `0`. Independently keyable with scalar keys. ## `rx` [#rx] * [``](https://nothing.graphics/docs/format/reference/ellipse#rx) · Nonnegative horizontal radius. Zero produces no filled area. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#rx) · Positive horizontal radius, required for a diamond gradient. Independently keyable with scalar keys. ## `ry` [#ry] * [``](https://nothing.graphics/docs/format/reference/ellipse#ry) · Nonnegative vertical radius. Zero produces no filled area. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#ry) · Positive vertical radius, required for a diamond gradient. Independently keyable with scalar keys. ## `scale-x` [#scale-x] * [``](https://nothing.graphics/docs/format/reference/shape#scale-x), [``](https://nothing.graphics/docs/format/reference/group#scale-x), [``](https://nothing.graphics/docs/format/reference/sequence#scale-x) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#scale-x). Local horizontal scale. Negative values reflect the axis. Defaults to `1`. Independently keyable with scalar keys. ## `scale-y` [#scale-y] * [``](https://nothing.graphics/docs/format/reference/shape#scale-y), [``](https://nothing.graphics/docs/format/reference/group#scale-y), [``](https://nothing.graphics/docs/format/reference/sequence#scale-y) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#scale-y). Local vertical scale. Negative values reflect the axis. Defaults to `1`. Independently keyable with scalar keys. ## `sensor-width-mm` [#sensor-width-mm] * [``](https://nothing.graphics/docs/format/reference/camera#sensor-width-mm) · Spatial trial. Positive active width of the perspective sensor. Defaults to `36`. Independently keyable with scalar keys. ## `sigma` [#sigma] * [``](https://nothing.graphics/docs/format/reference/blur#sigma), [``](https://nothing.graphics/docs/format/reference/drop-shadow#sigma), [``](https://nothing.graphics/docs/format/reference/inner-shadow#sigma), [``](https://nothing.graphics/docs/format/reference/box-shadow#sigma) · Declared by [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur#sigma). Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage. Defaults to `0`. Independently keyable with scalar keys. ## `skew-x` [#skew-x] * [``](https://nothing.graphics/docs/format/reference/shape#skew-x), [``](https://nothing.graphics/docs/format/reference/group#skew-x), [``](https://nothing.graphics/docs/format/reference/sequence#skew-x) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#skew-x). Horizontal shear angle, strictly between −90 and 90. Defaults to `0`. Independently keyable with scalar keys. ## `source-start` [#source-start] * [``](https://nothing.graphics/docs/format/reference/sequence#source-start) · Source instant at the placement's beginning. Seconds can be an integer, decimal, or integer fraction. `Exact seconds with s`. Required. Static. ## `spread` [#spread] * [``](https://nothing.graphics/docs/format/reference/box-shadow#spread) · Positive spread grows an outer caster or shrinks an inset opening. Negative spread reverses the adjustment. Defaults to `0`. Independently keyable with scalar keys. ## `start` [#start] * [``](https://nothing.graphics/docs/format/reference/trim#start) · Start of the selected interval. Required. Independently keyable with scalar keys. ## `stop-color` [#stop-color] * [``](https://nothing.graphics/docs/format/reference/stop#stop-color) · Eight hexadecimal digits giving encoded sRGB followed by linear alpha. `#RRGGBBAA`. Required. Keys use color channels interpolation. ## `stroke-align` [#stroke-align] * [``](https://nothing.graphics/docs/format/reference/stroke#stroke-align) · Place the band across, inside or outside the contour. Defaults to `center`. Keyable with held keys. Values are `center`, `inside`, `outside`. ## `stroke-linecap` [#stroke-linecap] * [``](https://nothing.graphics/docs/format/reference/stroke#stroke-linecap) · Shape of the endpoint at an open end, including an end created by trim. Defaults to `butt`. Keyable with held keys. Values are `butt`, `round`, `square`. ## `stroke-linejoin` [#stroke-linejoin] * [``](https://nothing.graphics/docs/format/reference/stroke#stroke-linejoin) · Shape of a join between segments. Defaults to `miter`. Keyable with held keys. Values are `miter`, `round`, `bevel`. ## `stroke-miterlimit` [#stroke-miterlimit] * [``](https://nothing.graphics/docs/format/reference/stroke#stroke-miterlimit) · Maximum miter ratio. A miter beyond this limit becomes a bevel. Defaults to `4`. Independently keyable with scalar keys. ## `stroke-width` [#stroke-width] * [``](https://nothing.graphics/docs/format/reference/stroke#stroke-width) · Nonnegative width. Zero gives no coverage. Required. Independently keyable with scalar keys. ## `text-anchor` [#text-anchor] * [``](https://nothing.graphics/docs/format/reference/text#text-anchor) · Align each line's advance at x. Start anchors the left edge in LTR and the right edge in RTL. End anchors the opposite edge. Middle anchors the midpoint. Defaults to `start`. Keyable with held keys. Values are `start`, `middle`, `end`. ## `time` [#time] * [``](https://nothing.graphics/docs/format/reference/key#time) · Exact address in seconds, such as 1/24s or 0.5s. `Exact integer, decimal, or integer fraction with positive denominator and s suffix`. Static. ## `translate-x` [#translate-x] * [``](https://nothing.graphics/docs/format/reference/shape#translate-x), [``](https://nothing.graphics/docs/format/reference/group#translate-x), [``](https://nothing.graphics/docs/format/reference/sequence#translate-x) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#translate-x). Horizontal translation. Defaults to `0`. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/plane#translate-x) · Spatial trial. Horizontal translation of the plane origin. Defaults to `0`. Independently keyable with scalar keys. ## `translate-y` [#translate-y] * [``](https://nothing.graphics/docs/format/reference/shape#translate-y), [``](https://nothing.graphics/docs/format/reference/group#translate-y), [``](https://nothing.graphics/docs/format/reference/sequence#translate-y) · Declared by [Transform](https://nothing.graphics/docs/format/reference/transform#translate-y). Vertical translation. Defaults to `0`. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/plane#translate-y) · Spatial trial. Vertical translation of the plane origin. Defaults to `0`. Independently keyable with scalar keys. ## `translate-z` [#translate-z] * [``](https://nothing.graphics/docs/format/reference/plane#translate-z) · Spatial trial. Depth translation of the plane origin. Defaults to `0`. Independently keyable with scalar keys. ## `type` [#type] * [``](https://nothing.graphics/docs/format/reference/boolean#type) · Choose union, intersection, ordered subtraction or odd-parity exclusion. Required. Keyable with held keys. Values are `union`, `intersection`, `subtraction`, `exclusion`. * [``](https://nothing.graphics/docs/format/reference/gradient#type) · Choose the geometry that maps local positions onto the ramp. Required. Keyable with held keys. Values are `linear`, `radial`, `sweep`, `diamond`. * [``](https://nothing.graphics/docs/format/reference/mask#type) · Geometry uses the transformed filled region. Alpha uses rendered opacity. Luminance multiplies rendered alpha by weighted straight sRGB brightness. Required. Keyable with held keys. Values are `geometry`, `alpha`, `luminance`. ## `u` [#u] * [``](https://nothing.graphics/docs/format/reference/shape#u), [``](https://nothing.graphics/docs/format/reference/group#u), [``](https://nothing.graphics/docs/format/reference/sequence#u) · Declared by [Locator](https://nothing.graphics/docs/format/reference/locator#u). 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. Independently keyable with scalar keys. ## `v` [#v] * [``](https://nothing.graphics/docs/format/reference/shape#v), [``](https://nothing.graphics/docs/format/reference/group#v), [``](https://nothing.graphics/docs/format/reference/sequence#v) · Declared by [Locator](https://nothing.graphics/docs/format/reference/locator#v). 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. Independently keyable with scalar keys. ## `value` [#value] * [``](https://nothing.graphics/docs/format/reference/key#value) · Value at the addressed instant. `Target property's grammar, units and range`. Required. Static. ## `vertex` [#vertex] * [``](https://nothing.graphics/docs/format/reference/shape#vertex), [``](https://nothing.graphics/docs/format/reference/group#vertex), [``](https://nothing.graphics/docs/format/reference/sequence#vertex) · Declared by [Locator](https://nothing.graphics/docs/format/reference/locator#vertex). 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. Independently keyable with scalar keys. ## `width` [#width] * [``](https://nothing.graphics/docs/format/reference/scene#width) · Positive finite canvas width. Canvas dimensions are supplied together. With both omitted, use the caller's viewport. Static. * [``](https://nothing.graphics/docs/format/reference/rect#width) · Nonnegative rectangle width. Required. Independently keyable with scalar keys. ## `x` [#x] * [``](https://nothing.graphics/docs/format/reference/text#x) · Horizontal anchor for each line. Defaults to `0`. Independently keyable with scalar keys. ## `x1` [#x1] * [``](https://nothing.graphics/docs/format/reference/line#x1) · Horizontal coordinate of the first endpoint. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#x1) · Horizontal coordinate of the first endpoint, required for a linear gradient. Independently keyable with scalar keys. ## `x2` [#x2] * [``](https://nothing.graphics/docs/format/reference/line#x2) · Horizontal coordinate of the second endpoint. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#x2) · Horizontal coordinate of the second endpoint, required for a linear gradient. Independently keyable with scalar keys. ## `y` [#y] * [``](https://nothing.graphics/docs/format/reference/text#y) · Vertical position of the first alphabetic baseline. Defaults to `0`. Independently keyable with scalar keys. ## `y1` [#y1] * [``](https://nothing.graphics/docs/format/reference/line#y1) · Vertical coordinate of the first endpoint. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#y1) · Vertical coordinate of the first endpoint, required for a linear gradient. Independently keyable with scalar keys. ## `y2` [#y2] * [``](https://nothing.graphics/docs/format/reference/line#y2) · Vertical coordinate of the second endpoint. Required. Independently keyable with scalar keys. * [``](https://nothing.graphics/docs/format/reference/gradient#y2) · Vertical coordinate of the second endpoint, required for a linear gradient. Independently keyable with scalar keys. ## `zoom` [#zoom] * [``](https://nothing.graphics/docs/format/reference/camera#zoom) · Strictly positive 2D magnification. A value of 2 doubles distances from the framed center. Defaults to `1`. Independently keyable with scalar keys. ## Animation-only targets [#animation-only-targets] Use these spellings in `animate.attributeName` on the listed owners. ### `text.value` [#textvalue] Replace the copy at the key's time. In an XML key value, write LF and tab as character references. A track requires an owner with no child spans. The base is the concatenated direct character data after XML processing. Defaults to `direct character data`. Keyable with held keys. [``](https://nothing.graphics/docs/format/reference/text#value) ### `span.value` [#spanvalue] Replace the copy at the key's time. In an XML key value, write LF and tab as character references. A track requires an owner with no child spans. The base is the concatenated direct character data after XML processing. Defaults to `direct character data`. Keyable with held keys. [``](https://nothing.graphics/docs/format/reference/span#value) # `` [Canonical page](https://nothing.graphics/docs/format/reference/backdrop-filter) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/backdrop-filter.md) Blur accumulated paint at a drawable's position in its parent scope. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/source-and-backdrop/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) Rendered with ncf-preview at 64 × 32. - [Frame 0 · Frosted panel](https://nothing.graphics/format/source-and-backdrop/0.webp). A sharp white stripe diffuses under the tinted panel. A thin red shadow extends to the panel’s right, and a yellow stripe paints sharply above the result. ```xml ``` A backdrop filter samples earlier paint in its parent scope. The owner can paint its own content and carry an independent source filter. ## Syntax [#syntax] ### Blur earlier paint through the panel [#blur-earlier-paint-through-the-panel] The earlier white stripe stays white at (21, 2) outside the panel, darkens at (21, 14) inside it, and spreads light to (25, 14). A separate source filter casts the red shadow. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence). A group or sequence requires an explicit mask. A shape can use its filled geometry as the default aperture. A shape mask further limits the effect within that filled geometry. The declaration's position among the owner's children has no effect on evaluation order. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------- | ----------- | ------------------- | ---------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/blur) | Exactly one | `` | One blur determines the backdrop kernel. Applied to earlier paint before the owner paints its own picture. | ## Specifications [#specifications] * [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) # Blending [Canonical page](https://nothing.graphics/docs/format/reference/blending) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/blending.md) Set the compositing mode and opacity of a drawable. Blend mode determines what the drawable paints into. Opacity applies once to the completed visual result. ## Example [#example] ### Multiply a shape against the scene background [#multiply-a-shape-against-the-scene-background] Place a Multiply shape in a group with the default `pass-through` mode. Its gray paint multiplies with the scene’s gray background, giving approximately 64 in each RGB channel at (8, 4). The next group in the complete scene uses `normal` and starts its contents on transparency, giving gray 128 at (24, 4). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/blending/plate.nothing) ## Usage context [#usage-context] Trait `Blending` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [Drawable](https://nothing.graphics/docs/format/reference/drawable). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `opacity` [#opacity] **Value** fraction · **If omitted** `1` · **Keys** Scalar Opacity from 0 to 1, applied once to the completed visual result. ### `blend-mode` [#blend-mode] **Value** `normal`, `multiply`, `screen`, `pass-through` · **If omitted** See [``](https://nothing.graphics/docs/format/reference/shape#blend-mode), [``](https://nothing.graphics/docs/format/reference/group#blend-mode), [``](https://nothing.graphics/docs/format/reference/sequence#blend-mode) · **Keys** Held Blend the assembled drawable into its enclosing paint scope. See the allowed values on [``](https://nothing.graphics/docs/format/reference/sequence#blend-mode). ## Specifications [#specifications] * [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) # `` [Canonical page](https://nothing.graphics/docs/format/reference/blur) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/blur.md) Apply one isotropic Gaussian convolution. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/source-and-backdrop/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) Rendered with ncf-preview at 64 × 32. - [Frame 0 · Frosted panel](https://nothing.graphics/format/source-and-backdrop/0.webp). A sharp white stripe diffuses under the tinted panel. A thin red shadow extends to the panel’s right, and a yellow stripe paints sharply above the result. ```xml ``` Under a source filter, blur the previous image in premultiplied linear sRGB with transparent black beyond its image. Under a backdrop filter, read accumulated paint using the parent scope's sampling boundary. ## Syntax [#syntax] ### Measure a local blur under camera zoom [#measure-a-local-blur-under-camera-zoom] The camera zoom of two maps local sigma 2 to four picture pixels. At (35, 16), alpha is about 24 in this backdrop example. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/camera.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/filter), [``](https://nothing.graphics/docs/format/reference/backdrop-filter). Includes [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur). A source filter admits repeated blur steps. A backdrop filter requires exactly one. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `sigma` [#sigma] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur#sigma) Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/boolean) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/boolean.md) Combine editable operand shapes into one closed region. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/editable-cutout/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) Rendered with ncf-preview at 304 × 64. Bound resources - [fixtures/fonts/PT_Serif/PTSerif-Bold.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Bold.ttf) for `PT Serif@700` - [Still · Circle and letter cutouts](https://nothing.graphics/format/editable-cutout/0.webp) at 0s. A blue block has a circular hole. An adjacent blue card has holes in the shape of BOOK, crossed by a white rule painted later. ```xml BOOK ``` A boolean uses its operands' transformed geometry. The enclosing shape paints the resulting region. ## Syntax [#syntax] ### Cut editable copy through the card [#cut-editable-copy-through-the-card] Use a rectangle as the first operand and laid-out text as the second. With PT Serif Bold bound, the card is blue at (185, 24), clear inside the letter at (148, 30), and crosses a later white rule at (148, 36). ```xml BOOK ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Use the closed regions admitted by the boolean contract. An operand's paints, appearance effects and attachments do not affect that region. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `type` [#type] **Value** `union`, `intersection`, `subtraction`, `exclusion` · **Required** · **Keys** Held Choose union, intersection, ordered subtraction or odd-parity exclusion. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/shape) | Two or more | `` | Shapes supplying the input regions. Document order. Subtraction removes all later regions from the first operand. | | [``](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] * [Boolean regions and operand order](https://nothing.graphics/docs/format/spec/graphics#boolean-geometry) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/box-shadow) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/box-shadow.md) Cast an independent shadow from sampled rectangle geometry. A box shadow uses the shape's rounded rectangle as its caster. A shape may have multiple box shadows, including on a rectangle with no fill. ## Syntax [#syntax] ### Put an inset shadow on an unfilled panel [#put-an-inset-shadow-on-an-unfilled-panel] The purple band paints at (21, 35) while (35, 35) stays transparent. At (16, 35) the mint stroke paints over the shadow. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Includes [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur), [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style). Requires rectangle geometry. Outer shadows paint behind the fill. Inset shadows paint after the fill and before every stroke. Paint in document order within each kind. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `inset` [#inset] **Value** `false`, `true` · **If omitted** `false` · **Keys** Held True shades inside the rectangle. False casts outside the rectangle. [Inset box shadows](https://nothing.graphics/docs/format/spec/filters#inset-box-shadows) ### `spread` [#spread] **Value** local units · **If omitted** `0` · **Keys** Scalar Positive spread grows an outer caster or shrinks an inset opening. Negative spread reverses the adjustment. ### `sigma` [#sigma] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur#sigma) Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage. ### `dx` [#dx] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dx) Horizontal displacement, positive to the right. ### `dy` [#dy] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dy) Vertical displacement, positive down. ### `color` [#color] **Value** `#RRGGBBAA` · **Required** · **Keys** Color channels · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#color) Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Outer box shadows](https://nothing.graphics/docs/format/spec/filters#outer-box-shadows) * [Inset box shadows](https://nothing.graphics/docs/format/spec/filters#inset-box-shadows) * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/camera) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/camera.md) Define a named view that the scene may select. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/camera-cuts/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/index.nothing) Rendered with ncf-preview at 100 × 80. Bound resources - [ncf/conformance/cameras/child.nothing](https://nothing.graphics/format/camera-cuts/child.nothing) - [Frame 11 · Wide](https://nothing.graphics/format/camera-cuts/11.webp). The red marker sits near (32, 22). The red square inside the referenced child scene is already framed before placement. - [Frame 12 · Tracking](https://nothing.graphics/format/camera-cuts/12.webp). A held key cuts to the 2× zoom of the tracking camera. The red marker moves to (44, 44). - [Frame 24 · Rolled](https://nothing.graphics/format/camera-cuts/24.webp). The next held key cuts to a rolled view. The red marker appears at (32, 58). ```xml ``` A Level 1 camera frames the composition in its viewport. Name it with an ID and select it on the scene. Center, zoom, and roll can be animated independently of the artwork. ## Syntax [#syntax] ### Cut to a tracking view [#cut-to-a-tracking-view] The scene’s held camera track selects tracking at frame 12. By then the horizontal center has reached 35. The red marker covers (44, 44) in the sampled viewport. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/index.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#camera-cuts) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/scene). The perspective trial proposes additional authoring fields separately from Level 1. Its focus behavior has been ratified under the [perspective optics contract](https://nothing.graphics/docs/format/spec/perspective-camera-optics). A trial scene may not mix 2D and spatial cameras. The linked RFC also discusses orthographic projection, which is outside this trial. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `id` [#id] **Value** `Nonempty ASCII letters, digits, underscores, or hyphens` · **Required** · **Keys** Static Case-sensitive name unique among the scene's cameras. ### `center-x` [#center-x] **Value** scene units · **If omitted** `viewport center x` · **Keys** Scalar Scene x coordinate framed at viewport center by a 2D camera. ### `center-y` [#center-y] **Value** scene units · **If omitted** `viewport center y` · **Keys** Scalar Scene y coordinate framed at viewport center by a 2D camera. ### `zoom` [#zoom] **Value** factor · **If omitted** `1` · **Keys** Scalar Strictly positive 2D magnification. A value of 2 doubles distances from the framed center. ### `roll` [#roll] **Value** degrees · **If omitted** `0` · **Keys** Scalar Clockwise rotation of the camera axes. At positive 90 degrees in 2D, a point right of the camera center appears above viewport center. ### `projection` [#projection] **Value** `2d`, `perspective` · **If omitted** `2d` · **Keys** Static Spatial trial. Select the trial projection profile. Cut between named cameras with held scene selector keys. [Proposed projection selection](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#scene-and-camera-selection) ### `position-x` [#position-x] **Value** scene units · **If omitted** `half the viewport width` · **Keys** Scalar Spatial trial. Horizontal coordinate of the perspective optical center. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `position-y` [#position-y] **Value** scene units · **If omitted** `half the viewport height` · **Keys** Scalar Spatial trial. Vertical coordinate of the perspective optical center. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `position-z` [#position-z] **Value** scene units · **If omitted** `1000` · **Keys** Scalar Spatial trial. Depth coordinate of the perspective optical center. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `rotate-x` [#rotate-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar Spatial trial. Perspective camera orientation about the x axis. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `rotate-y` [#rotate-y] **Value** degrees · **If omitted** `0` · **Keys** Scalar Spatial trial. Perspective camera orientation about the y axis. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `clip-near` [#clip-near] **Value** scene units · **If omitted** `0.1` · **Keys** Scalar Spatial trial. Positive inclusive minimum axial depth. It must be below clip-far. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `clip-far` [#clip-far] **Value** scene units · **If omitted** `100000` · **Keys** Scalar Spatial trial. Positive inclusive maximum axial depth. It must exceed clip-near. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `focal-length-mm` [#focal-length-mm] **Value** millimeters · **If omitted** `50` · **Keys** Scalar Spatial trial. Positive effective focal length for the rectilinear perspective lens. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `sensor-width-mm` [#sensor-width-mm] **Value** millimeters · **If omitted** `36` · **Keys** Scalar Spatial trial. Positive active width of the perspective sensor. [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) ### `f-stop` [#f-stop] **Value** dimensionless f-number · **If omitted** `0` · **Keys** Scalar with held transitions at zero Spatial trial. Positive lens f-number or zero for pinhole rendering. A segment between zero and a positive value requires hold. [Proposed focus settings](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-camera-focus.md#proposed-authoring-inputs) ### `focus-distance` [#focus-distance] **Value** scene units · **If omitted** `1000` · **Keys** Scalar Spatial trial. Positive axial distance from the optical center to the focus plane. [Proposed focus settings](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-camera-focus.md#proposed-authoring-inputs) ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [2D cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) * [Proposed projection selection](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#scene-and-camera-selection) * [Proposed spatial camera fields](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#camera-fields) * [Proposed focus settings](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-camera-focus.md#proposed-authoring-inputs) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/circle) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/circle.md) Define a circular contour in a registered local box. A circle's registration box has width and height equal to twice its radius. The default registration places the center at the local origin. ## Syntax [#syntax] ### Mark a drawable’s local origin [#mark-a-drawables-local-origin] A radius of 2 makes the marker four units across. The first marker’s shape has no locator or translation. Its white center is at the enclosing shape’s scene origin (64, 24). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/rotated-ellipse.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md#a-rotated-ellipse-with-two-children) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Includes [Registration](https://nothing.graphics/docs/format/reference/registration). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `r` [#r] **Value** local units · **Required** · **Keys** Scalar Nonnegative circle radius. Zero produces no filled area. ### `anchor-u` [#anchor-u] **Value** fraction of width · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-u) Horizontal registration. Zero selects the left edge and one the right edge. Values outside that interval extrapolate. ### `anchor-v` [#anchor-v] **Value** fraction of height · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-v) Vertical registration. Zero selects the top edge and one the bottom edge. Values outside that interval extrapolate. ### `offset-x` [#offset-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-x) Horizontal coordinate of the registered point. ### `offset-y` [#offset-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-y) Vertical coordinate of the registered point. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Drawable effects [Canonical page](https://nothing.graphics/docs/format/reference/drawable-effects) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/drawable-effects.md) Filter or mask a drawable or blur the picture behind it. 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 [#example] ### Blur a group as a unit [#blur-a-group-as-a-unit] Put a source `` 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). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/blending/source-filter.nothing) ## Usage context [#usage-context] Trait `DrawableEffects` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [Drawable](https://nothing.graphics/docs/format/reference/drawable). ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------- | --------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/filter) | Optional, at most one | Drawable effects | Source-image operations on the assembled drawable. Independent of its position among siblings. | | [``](https://nothing.graphics/docs/format/reference/backdrop-filter) | Optional, at most one | Drawable effects | Blur the accumulated picture at this drawable's paint position. Independent of its position among siblings. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) | | [``](https://nothing.graphics/docs/format/reference/mask) | Optional, at most one | Drawable effects | Coverage from one source shape. Independent of its position among siblings. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) | ## Specifications [#specifications] * [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) * [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) * [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) # Drawable [Canonical page](https://nothing.graphics/docs/format/reference/drawable) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/drawable.md) Shared structure for elements that contribute to a composition. A drawable participates in its parent’s paint order and carries its own transform and appearance controls. ## Example [#example] ### Apply opacity to overlapping shapes together [#apply-opacity-to-overlapping-shapes-together] Shapes, groups, and sequence placements are drawables. Put overlapping shapes in a group to give their assembled result one opacity. This group multiplies its opacity of 0.5 by a half-alpha mask. Along y = 20, sample x = 8, 24, and 40 to see the same gray value of about 96 in the left shape, the overlap, and the right shape. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/blending/plate.nothing) ## Usage context [#usage-context] Type `Drawable` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence). Includes [Transform](https://nothing.graphics/docs/format/reference/transform), [Locator](https://nothing.graphics/docs/format/reference/locator), [Blending](https://nothing.graphics/docs/format/reference/blending), [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `translate-x` [#translate-x] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-x) Horizontal translation. ### `translate-y` [#translate-y] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-y) Vertical translation. ### `pivot-x` [#pivot-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-x) Horizontal coordinate of the transform pivot. ### `pivot-y` [#pivot-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-y) Vertical coordinate of the transform pivot. ### `scale-x` [#scale-x] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-x) Local horizontal scale. Negative values reflect the axis. ### `scale-y` [#scale-y] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-y) Local vertical scale. Negative values reflect the axis. ### `skew-x` [#skew-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#skew-x) Horizontal shear angle, strictly between −90 and 90. ### `rotate` [#rotate] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#rotate) Rotation about the drawable pivot, clockwise in default scene coordinates. ### `u` [#u] **Value** fraction of host width · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#u) 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` [#v] **Value** fraction of host height · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#v) 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` [#along] **Value** fraction of contour length · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#along) Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base. ### `vertex` [#vertex] **Value** vertex index · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#vertex) 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` [#orient] **Value** `none`, `auto` · **If omitted** `none` · **Keys** Held · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#orient) Facing relative to the host contour. Auto facing requires along or vertex. ### `opacity` [#opacity] **Value** fraction · **If omitted** `1` · **Keys** Scalar · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#opacity) Opacity from 0 to 1, applied once to the completed visual result. ### `blend-mode` [#blend-mode] **Value** `normal`, `multiply`, `screen`, `pass-through` · **If omitted** See [``](https://nothing.graphics/docs/format/reference/shape#blend-mode), [``](https://nothing.graphics/docs/format/reference/group#blend-mode), [``](https://nothing.graphics/docs/format/reference/sequence#blend-mode) · **Keys** Held · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#blend-mode) Blend the assembled drawable into its enclosing paint scope. See the allowed values on [``](https://nothing.graphics/docs/format/reference/sequence#blend-mode). ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Source-image operations on the assembled drawable. Independent of its position among siblings. | | [``](https://nothing.graphics/docs/format/reference/backdrop-filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Blur the accumulated picture at this drawable's paint position. Independent of its position among siblings. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) | | [``](https://nothing.graphics/docs/format/reference/mask) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Coverage from one source shape. Independent of its position among siblings. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) | ## Specifications [#specifications] * [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) * [Locators](https://nothing.graphics/docs/format/spec/attached-drawables#locators) * [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) * [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) * [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) * [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) # `` [Canonical page](https://nothing.graphics/docs/format/reference/drop-shadow) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/drop-shadow.md) Composite the input above a tinted, offset blur of its alpha. A drop shadow blurs and offsets the input alpha, tints it, then composites the input above it. The next filter operation receives both. ## Syntax [#syntax] ### Move a sharp cast below the input [#move-a-sharp-cast-below-the-input] With sigma zero, the translucent source at (160, 27) casts a sharp shadow at (160, 71). This source and cast both have alpha 128. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/filter). Includes [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur), [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `sigma` [#sigma] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur#sigma) Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage. ### `dx` [#dx] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dx) Horizontal displacement, positive to the right. ### `dy` [#dy] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dy) Vertical displacement, positive down. ### `color` [#color] **Value** `#RRGGBBAA` · **Required** · **Keys** Color channels · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#color) Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Elements [Canonical page](https://nothing.graphics/docs/format/reference/elements) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/elements.md) Find XML tags in the .nothing scene format and see what each element does. Each tag links to its reference article. Trial entries identify proposed syntax. ## `` [#animate] Key one property on the enclosing XML element. [Reference article](https://nothing.graphics/docs/format/reference/animate) ## `` [#backdrop-filter] Blur accumulated paint at a drawable's position in its parent scope. [Reference article](https://nothing.graphics/docs/format/reference/backdrop-filter) ## `` [#blur] Apply one isotropic Gaussian convolution. [Reference article](https://nothing.graphics/docs/format/reference/blur) ## `` [#boolean] Combine editable operand shapes into one closed region. [Reference article](https://nothing.graphics/docs/format/reference/boolean) ## `` [#box-shadow] Cast an independent shadow from sampled rectangle geometry. [Reference article](https://nothing.graphics/docs/format/reference/box-shadow) ## `` [#camera] Define a named view that the scene may select. [Reference article](https://nothing.graphics/docs/format/reference/camera) ## `` [#circle] Define a circular contour in a registered local box. [Reference article](https://nothing.graphics/docs/format/reference/circle) ## `` [#drop-shadow] Composite the input above a tinted, offset blur of its alpha. [Reference article](https://nothing.graphics/docs/format/reference/drop-shadow) ## `` [#ellipse] Define an oval contour in a registered local box. [Reference article](https://nothing.graphics/docs/format/reference/ellipse) ## `` [#fill] Apply a stack of paints to the interior or to a span's assigned glyphs. [Reference article](https://nothing.graphics/docs/format/reference/fill) ## `` [#filter] Process an assembled drawable through ordered image operations. [Reference article](https://nothing.graphics/docs/format/reference/filter) ## `` [#gradient] Map an ordered color ramp into a shape's local coordinates. [Reference article](https://nothing.graphics/docs/format/reference/gradient) ## `` [#group] Transform an ordered set of drawables together. [Reference article](https://nothing.graphics/docs/format/reference/group) ## `` [#image] Paint a still raster or SVG asset through the owning operation. [Reference article](https://nothing.graphics/docs/format/reference/image) ## `` [#inner-shadow] Tint the previous image inside its alpha silhouette. [Reference article](https://nothing.graphics/docs/format/reference/inner-shadow) ## `` [#key] Assign a typed value at an exact composition instant. [Reference article](https://nothing.graphics/docs/format/reference/key) ## `` [#line] Connect two authored endpoints with a straight open contour. [Reference article](https://nothing.graphics/docs/format/reference/line) ## `` [#mask] Limit a drawable's assembled picture with one local source shape. [Reference article](https://nothing.graphics/docs/format/reference/mask) ## `` [#paint] Add one typed value to a fill or stroke's paint stack. [Reference article](https://nothing.graphics/docs/format/reference/paint) ## `` [#path] Describe editable contours using SVG path commands. [Reference article](https://nothing.graphics/docs/format/reference/path) ## `` [#plane] Spatial trial. Place a 2D paint scope on a surface in the spatial trial. [Reference article](https://nothing.graphics/docs/format/reference/plane) ## `` [#polygon] Connect local vertices into a closed contour. [Reference article](https://nothing.graphics/docs/format/reference/polygon) ## `` [#polyline] Follow successive local vertices with straight segments. [Reference article](https://nothing.graphics/docs/format/reference/polyline) ## `` [#rect] Define a rectangle with optional rounded corners as a shape’s geometry. [Reference article](https://nothing.graphics/docs/format/reference/rect) ## `` [#scene] Declare the canvas, clock, views and root drawing order of a complete document. [Reference article](https://nothing.graphics/docs/format/reference/scene) ## `` [#sequence] Place referenced media or inline artwork on a parent timeline. [Reference article](https://nothing.graphics/docs/format/reference/sequence) ## `` [#shape] Place and paint a single geometry as a drawable. [Reference article](https://nothing.graphics/docs/format/reference/shape) ## `` [#solid] Use one RGBA color throughout a paint's coverage. [Reference article](https://nothing.graphics/docs/format/reference/solid) ## `` [#span] Own a stable text range with optional local style and copy keys. [Reference article](https://nothing.graphics/docs/format/reference/span) ## `` [#stop] Define one color and position on a gradient ramp. [Reference article](https://nothing.graphics/docs/format/reference/stop) ## `` [#stroke] Expand a shape's contour into an independently painted band. [Reference article](https://nothing.graphics/docs/format/reference/stroke) ## `` [#text] Lay out editable Unicode copy as glyph geometry for a shape. [Reference article](https://nothing.graphics/docs/format/reference/text) ## `` [#trim] Select a drawn distance interval for one stroke. [Reference article](https://nothing.graphics/docs/format/reference/trim) # `` [Canonical page](https://nothing.graphics/docs/format/reference/ellipse) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/ellipse.md) Define an oval contour in a registered local box. An ellipse's registration box is twice the horizontal radius wide and twice the vertical radius high. ## Syntax [#syntax] ### Resize an off-center ellipse with an attached marker [#resize-an-off-center-ellipse-with-an-attached-marker] At frame 4 the horizontal radius is 8 and the vertical radius is 4. After the shape’s rotation, the ellipse center is at (60, 44) and the blue marker stays on the sampled box edge at (60, 52). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/rotated-ellipse.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md#a-rotated-ellipse-with-two-children) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Includes [Registration](https://nothing.graphics/docs/format/reference/registration). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `rx` [#rx] **Value** local units · **Required** · **Keys** Scalar Nonnegative horizontal radius. Zero produces no filled area. ### `ry` [#ry] **Value** local units · **Required** · **Keys** Scalar Nonnegative vertical radius. Zero produces no filled area. ### `anchor-u` [#anchor-u] **Value** fraction of width · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-u) Horizontal registration. Zero selects the left edge and one the right edge. Values outside that interval extrapolate. ### `anchor-v` [#anchor-v] **Value** fraction of height · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-v) Vertical registration. Zero selects the top edge and one the bottom edge. Values outside that interval extrapolate. ### `offset-x` [#offset-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-x) Horizontal coordinate of the registered point. ### `offset-y` [#offset-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-y) Vertical coordinate of the registered point. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/fill) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/fill.md) Apply a stack of paints to the interior or to a span's assigned glyphs. A fill paints the shape's interior. Under a span it supplies the local stack for glyphs assigned to that span. ## Syntax [#syntax] ### Place two paints in one fill [#place-two-paints-in-one-fill] The right swatch places translucent teal above opaque navy. Sample around (144, 32) for approximately (50, 121, 145, 255). Move the navy to the top to restore its opaque color. ```xml ``` [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 [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/span). A shape has at most one fill. A span's fill replaces its inherited stack for the span's range. Descendant spans can supply their own. [Span paint order](https://nothing.graphics/docs/format/spec/text#appearance-and-editing) ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ----------------------------------------------------------------- | ----------- | ----------- | ------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/paint) | One or more | `` | Paint layers applied through the operation's coverage. Document order, bottom to top. | ## Specifications [#specifications] * [Paint](https://nothing.graphics/docs/format/spec/graphics#paint) # `` [Canonical page](https://nothing.graphics/docs/format/reference/filter) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/filter.md) Process an assembled drawable through ordered image operations. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/source-and-backdrop/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) Rendered with ncf-preview at 64 × 32. - [Frame 0 · Frosted panel](https://nothing.graphics/format/source-and-backdrop/0.webp). A sharp white stripe diffuses under the tinted panel. A thin red shadow extends to the panel’s right, and a yellow stripe paints sharply above the result. ```xml ``` A source filter processes the owner's assembled local picture, before its mask and opacity. A nonempty filter isolates its input even at a sample that has an identity blur. ## Syntax [#syntax] ### Shade the source, then cast its shadow [#shade-the-source-then-cast-its-shadow] The inner shadow tints the linked image while preserving alpha. The drop shadow then uses that alpha. The cast stays at alpha 128 at (160, 71) throughout the inner-offset animation. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence). ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/blur), [``](https://nothing.graphics/docs/format/reference/drop-shadow), [``](https://nothing.graphics/docs/format/reference/inner-shadow) | Zero or more | `` | Operations may repeat. An empty list returns its input. Document order. Each operation receives the preceding operation's entire result. [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) | ## Specifications [#specifications] * [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) # Gaussian blur [Canonical page](https://nothing.graphics/docs/format/reference/gaussian-blur) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/gaussian-blur.md) Share the Gaussian radius parameter across blur and shadow operations. The Gaussian uses a standard deviation in the owning drawable's local units. ## Example [#example] ### Key the standard deviation [#key-the-standard-deviation] The source blur starts at sigma 0 and reaches 8 at frame 24. At the midpoint frame 12 its standard deviation is 4 local units. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/layer-filters.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Trait `GaussianBlur` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/blur), [``](https://nothing.graphics/docs/format/reference/drop-shadow), [``](https://nothing.graphics/docs/format/reference/inner-shadow), [``](https://nothing.graphics/docs/format/reference/box-shadow). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `sigma` [#sigma] **Value** local units · **If omitted** `0` · **Keys** Scalar Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage. ## Specifications [#specifications] * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) # Geometry [Canonical page](https://nothing.graphics/docs/format/reference/geometry) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/geometry.md) The family of elements that supply a shape’s contour. Each shape has exactly one geometry child, such as a rectangle or path. That contour is evaluated in the shape’s local coordinates. ## Example [#example] ### Widen a rectangle in its own coordinates [#widen-a-rectangle-in-its-own-coordinates] Key `width` inside the `` that defines the shape’s contour. Between frames 4 and 8, the local width grows from 12 to 20 and the local height stays 8. The complete scene holds the containing shape at a quarter turn, so the painted area grows vertically from 8 × 12 to 8 × 20. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) ## Usage context [#usage-context] Type `Geometry` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/rect), [``](https://nothing.graphics/docs/format/reference/circle), [``](https://nothing.graphics/docs/format/reference/ellipse), [``](https://nothing.graphics/docs/format/reference/line), [``](https://nothing.graphics/docs/format/reference/polyline), [``](https://nothing.graphics/docs/format/reference/polygon), [``](https://nothing.graphics/docs/format/reference/path), [``](https://nothing.graphics/docs/format/reference/boolean), [``](https://nothing.graphics/docs/format/reference/text). ## Specifications [#specifications] * [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes) # `` [Canonical page](https://nothing.graphics/docs/format/reference/gradient) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/gradient.md) Map an ordered color ramp into a shape's local coordinates. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/paint-stack/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/gradient-paint-stack.nothing) Rendered with ncf-preview at 208 × 64. - [Still · Ramp and paint stack](https://nothing.graphics/format/paint-stack/0.webp) at 0s. The outlined swatch at the left transitions from navy to teal. The swatch at the right uses a translucent teal paint over solid navy. ```xml ``` A gradient gives each point a ramp position, then evaluates its ordered stops using straight sRGB channels and alpha. ## Syntax [#syntax] ### Run a local ramp from navy to teal [#run-a-local-ramp-from-navy-to-teal] Choose local coordinates and place the endpoints at x = 24 and x = 80. At x = 52 the ramp is halfway between colors. At x = 86 it holds the last color. ```xml ``` [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 [``](https://nothing.graphics/docs/format/reference/paint). Supply the points and positive radii required by the sampled type. A linear gradient requires distinct endpoints. Linear and radial authors explicitly set gradientUnits to userSpaceOnUse. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `type` [#type] **Value** `linear`, `radial`, `sweep`, `diamond` · **Required** · **Keys** Held Choose the geometry that maps local positions onto the ramp. ### `gradientUnits` [#gradientunits] **Value** `userSpaceOnUse` · **Keys** Held Local coordinates. Required for linear and radial gradients. ### `cx` [#cx] **Value** local units · **Keys** Scalar Center x coordinate, required for radial, sweep and diamond gradients. ### `cy` [#cy] **Value** local units · **Keys** Scalar Center y coordinate, required for radial, sweep and diamond gradients. ### `r` [#r] **Value** local units · **Keys** Scalar Positive radius, required for a radial gradient. ### `rx` [#rx] **Value** local units · **Keys** Scalar Positive horizontal radius, required for a diamond gradient. ### `ry` [#ry] **Value** local units · **Keys** Scalar Positive vertical radius, required for a diamond gradient. ### `x1` [#x1] **Value** local units · **Keys** Scalar Horizontal coordinate of the first endpoint, required for a linear gradient. ### `y1` [#y1] **Value** local units · **Keys** Scalar Vertical coordinate of the first endpoint, required for a linear gradient. ### `x2` [#x2] **Value** local units · **Keys** Scalar Horizontal coordinate of the second endpoint, required for a linear gradient. ### `y2` [#y2] **Value** local units · **Keys** Scalar Vertical coordinate of the second endpoint, required for a linear gradient. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/stop) | Zero or more | `` | Zero stops give transparent paint. One stop gives a consistent color across the ramp. Document order. Effective offsets never decrease, and later stops win at a shared position. | | [``](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) # `` [Canonical page](https://nothing.graphics/docs/format/reference/group) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/group.md) Transform an ordered set of drawables together. The `` element gives its child drawables shared local coordinates and uses its enclosing composition’s clock. Later drawable children paint over earlier ones. ## Syntax [#syntax] Turn a group 90° clockwise about its local origin. In the complete scene the child circle uses the host shape’s top-right corner as its locator. The group’s turn carries the circle from (300, 100) to (100, 300). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/09-groups.nothing) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/scene), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence), [``](https://nothing.graphics/docs/format/reference/shape). The [spatial trial](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) also allows [``](https://nothing.graphics/docs/format/reference/plane). Inherits from [Drawable](https://nothing.graphics/docs/format/reference/drawable). A backdrop filter requires an explicit mask. 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 [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `translate-x` [#translate-x] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-x) Horizontal translation. ### `translate-y` [#translate-y] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-y) Vertical translation. ### `pivot-x` [#pivot-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-x) Horizontal coordinate of the transform pivot. ### `pivot-y` [#pivot-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-y) Vertical coordinate of the transform pivot. ### `scale-x` [#scale-x] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-x) Local horizontal scale. Negative values reflect the axis. ### `scale-y` [#scale-y] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-y) Local vertical scale. Negative values reflect the axis. ### `skew-x` [#skew-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#skew-x) Horizontal shear angle, strictly between −90 and 90. ### `rotate` [#rotate] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#rotate) Rotation about the drawable pivot, clockwise in default scene coordinates. ### `u` [#u] **Value** fraction of host width · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#u) 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` [#v] **Value** fraction of host height · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#v) 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` [#along] **Value** fraction of contour length · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#along) Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base. ### `vertex` [#vertex] **Value** vertex index · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#vertex) 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` [#orient] **Value** `none`, `auto` · **If omitted** `none` · **Keys** Held · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#orient) Facing relative to the host contour. Auto facing requires along or vertex. ### `opacity` [#opacity] **Value** fraction · **If omitted** `1` · **Keys** Scalar · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#opacity) Opacity from 0 to 1, applied once to the completed visual result. ### `blend-mode` [#blend-mode] **Value** `normal`, `multiply`, `screen`, `pass-through` · **If omitted** `pass-through` · **Keys** Held · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#blend-mode) Blend the assembled drawable into its enclosing paint scope. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) | Zero or more | `` | Drawables that share the group's transform and clock. Document order, bottom to top. | | [``](https://nothing.graphics/docs/format/reference/filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Source-image operations on the assembled drawable. Independent of its position among siblings. | | [``](https://nothing.graphics/docs/format/reference/backdrop-filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Blur the accumulated picture at this drawable's paint position. Independent of its position among siblings. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) | | [``](https://nothing.graphics/docs/format/reference/mask) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Coverage from one source shape. Independent of its position among siblings. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) | | [``](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] * [Groups](https://nothing.graphics/docs/format/spec/spatial#groups) * [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) * [Locators](https://nothing.graphics/docs/format/spec/attached-drawables#locators) * [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) * [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) * [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) * [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/image) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/image.md) Paint a still raster or SVG asset through the owning operation. An image paint fits source artwork to the local geometry bounds. It uses the asset as an independent still image, with its own intrinsic proportions and alpha. ## Syntax [#syntax] ### Use an editable SVG as paint [#use-an-editable-svg-as-paint] Resolve the SVG beside the declaring scene. At base the first shape fits it into the rectangle at (4, 8) with extent 80 × 40. At frame 12 the shape moves down to y = 20 with the same source image. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/linked-artwork/scene.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#a-linked-svg-with-no-intrinsic-aspect-ratio) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/paint). A strict sample needs the referenced resource. A still SVG uses its own internal IDs and may use embedded data. Scripting, interaction and external asset loading inside the SVG are disabled. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `href` [#href] **Value** `Asset reference relative to the declaring document` · **Required** · **Keys** Static Path to the still image. ### `preserveAspectRatio` [#preserveaspectratio] **Value** `xMidYMid slice` · **Keys** Held The defined fit centers the asset and scales it uniformly to cover both axes of the geometry bounds before applying coverage. Other fit values are outside this profile. The linked still image examples also use this fit when the attribute is omitted. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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) # Reference [Canonical page](https://nothing.graphics/docs/format/reference) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/index.md) Look up XML elements, attributes, abstract types and mixins in the .nothing scene format. Browse by XML spelling or by the shared types that define scene structure. * [Elements](https://nothing.graphics/docs/format/reference/elements) lists XML tags and links to their reference articles. * [Attributes](https://nothing.graphics/docs/format/reference/attributes) lists XML spellings and their element owners, with animation-only targets in their own section. * [Abstract types](https://nothing.graphics/docs/format/reference/types) shows families of elements related by inheritance. * [Mixins](https://nothing.graphics/docs/format/reference/mixins) shows which types share attributes and child slots. ## Elements [#elements] An element article describes where the element is allowed, which children it accepts, and what happens when an attribute is omitted. ## Types and traits [#types-and-traits] Element articles link to the shared types that declare their inherited attributes and child slots. ## See also [#see-also] * [Level 1 specification](https://nothing.graphics/docs/format/spec) * [Scene format type model](https://nothing.graphics/docs/format/spec/type-model) * [Keyword inventory](https://github.com/gridaco/nothing/blob/main/ncf/docs/vocabulary.md) * [Authoring guides](https://nothing.graphics/docs/format/guides) * [Conformance cases and samples](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md) # `` [Canonical page](https://nothing.graphics/docs/format/reference/inner-shadow) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/inner-shadow.md) Tint the previous image inside its alpha silhouette. An inner shadow uses offset blurred alpha to shade the previous image along its inner edges. Every input pixel retains its alpha. ## Syntax [#syntax] ### Slide tint across the image without changing alpha [#slide-tint-across-the-image-without-changing-alpha] At frame 0, (129, 27) is teal. At frame 12 the keyed offset is 6 and that point turns red. The neighboring translucent area at (160, 27) still has alpha 128. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/filter). Includes [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur), [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `sigma` [#sigma] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur#sigma) Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage. ### `dx` [#dx] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dx) Horizontal displacement, positive to the right. ### `dy` [#dy] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dy) Vertical displacement, positive down. ### `color` [#color] **Value** `#RRGGBBAA` · **Required** · **Keys** Color channels · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#color) Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/key) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/key.md) Assign a typed value at an exact composition instant. A key owns a typed value and one address. Editing the frame rate moves frame-addressed keys in seconds and leaves exact-time keys at their authored instants. ## Syntax [#syntax] ### Set the outgoing ease for a turn [#set-the-outgoing-ease-for-a-turn] The first rotation key starts at zero degrees. Linear ease reaches 45° halfway to the 90° key at frame 4. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md#a-centered-rectangle-rotates-and-widens) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/animate). Supply exactly one of frame and time. Each nonfinal key specifies outgoing ease. The final key carries only address and value. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `frame` [#frame] **Value** `Integer frame index` · **Keys** Static Frame number on the owning composition's clock, whose zero is the first frame. ### `time` [#time] **Value** `Exact integer, decimal, or integer fraction with positive denominator and s suffix` · **Keys** Static Exact address in seconds, such as 1/24s or 0.5s. ### `value` [#value] **Value** `Target property's grammar, units and range` · **Required** · **Keys** Static Value at the addressed instant. ### `ease` [#ease] **Value** `hold`, `linear`, `spline` · **Keys** Static Required on each nonfinal key. Hold keeps the left value, linear uses the raw interval fraction, and spline uses a cubic Bézier for that fraction. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) ### `keySplines` [#keysplines] **Value** `Four space-separated Bézier coordinates x1 y1 x2 y2, each in [0, 1]` · **Keys** Static Required with spline ease and used only for that outgoing segment. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) ## Specifications [#specifications] * [Frame and exact-time addresses](https://nothing.graphics/docs/format/spec/animation#key-addresses) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/line) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/line.md) Connect two authored endpoints with a straight open contour. A line starts at (x1, y1) and ends at (x2, y2). Use a stroke to paint the resulting segment. ## Syntax [#syntax] ### Set the endpoints of a rule [#set-the-endpoints-of-a-rule] The sibling stroke paints horizontally at y = 36 from x = 112 to 296. The rule paints over the neighboring card, including its letter-shaped holes. With PT Serif Bold bound, (148, 36) is white. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cutout.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `x1` [#x1] **Value** local units · **Required** · **Keys** Scalar Horizontal coordinate of the first endpoint. ### `y1` [#y1] **Value** local units · **Required** · **Keys** Scalar Vertical coordinate of the first endpoint. ### `x2` [#x2] **Value** local units · **Required** · **Keys** Scalar Horizontal coordinate of the second endpoint. ### `y2` [#y2] **Value** local units · **Required** · **Keys** Scalar Vertical coordinate of the second endpoint. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Locator [Canonical page](https://nothing.graphics/docs/format/reference/locator) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/locator.md) Attach a drawable to host bounds, a contour position, or a vertex. A locator uses the nearest host shape’s sampled geometry. `u` and `v` can be used together. `along` and `vertex` each select a point by themselves. ## Example [#example] ### Attach a marker to a moving box edge [#attach-a-marker-to-a-moving-box-edge] On a child shape, `u="1"` and `v="0.5"` select the right midpoint of the host’s local bounding box. The blue circle marks that point. At frame 4 the ellipse’s sampled bounds place the attachment at local (28, 4). The host’s quarter turn and translation carry it to scene (60, 52). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/rotated-ellipse.nothing) ## Usage context [#usage-context] Trait `Locator` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [Drawable](https://nothing.graphics/docs/format/reference/drawable). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `u` [#u] **Value** fraction of host width · **Keys** Scalar 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` [#v] **Value** fraction of host height · **Keys** Scalar 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` [#along] **Value** fraction of contour length · **Keys** Scalar Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base. ### `vertex` [#vertex] **Value** vertex index · **Keys** Scalar 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` [#orient] **Value** `none`, `auto` · **If omitted** `none` · **Keys** Held Facing relative to the host contour. Auto facing requires along or vertex. ## Specifications [#specifications] * [Locators](https://nothing.graphics/docs/format/spec/attached-drawables#locators) # `` [Canonical page](https://nothing.graphics/docs/format/reference/mask) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/mask.md) Limit a drawable's assembled picture with one local source shape. The nested shape supplies geometry, alpha or luminance coverage. The mask applies once in the owning drawable's coordinates. It occupies no paint slot. ## Syntax [#syntax] ### Limit a backdrop read to a rectangle [#limit-a-backdrop-read-to-a-rectangle] The placement’s geometry mask bounds its effect in placement coordinates. At frame 1, (22, 16) is gray inside the mask and (29, 16) stays black outside it. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/scopes.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `type` [#type] **Value** `geometry`, `alpha`, `luminance` · **Required** · **Keys** Held Geometry uses the transformed filled region. Alpha uses rendered opacity. Luminance multiplies rendered alpha by weighted straight sRGB brightness. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/shape) | Exactly one | `` | A source shape with its own properties and tracks. The source participates only through the selected coverage rule. | | [``](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] * [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Mixins [Canonical page](https://nothing.graphics/docs/format/reference/mixins) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/mixins.md) Browse shared sets of properties and child slots in the .nothing format type model. A mixin adds attributes or child slots to the types that include it. ## Transform [#transform] [Transform](https://nothing.graphics/docs/format/reference/transform). Move, scale, skew, or rotate a drawable in its parent. Directly included by [Drawable](https://nothing.graphics/docs/format/reference/drawable) in the model. Inherited by [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) in the model. ## Locator [#locator] [Locator](https://nothing.graphics/docs/format/reference/locator). Attach a drawable to host bounds, a contour position, or a vertex. Directly included by [Drawable](https://nothing.graphics/docs/format/reference/drawable) in the model. Inherited by [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) in the model. ## Blending [#blending] [Blending](https://nothing.graphics/docs/format/reference/blending). Set the compositing mode and opacity of a drawable. Directly included by [Drawable](https://nothing.graphics/docs/format/reference/drawable) in the model. Inherited by [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) in the model. ## Drawable effects [#drawable-effects] [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects). Filter or mask a drawable or blur the picture behind it. Directly included by [Drawable](https://nothing.graphics/docs/format/reference/drawable) in the model. Inherited by [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) in the model. ## Registration [#registration] [Registration](https://nothing.graphics/docs/format/reference/registration). Choose which point of a rectangle, circle, or ellipse sits at the local offset. Directly included by [``](https://nothing.graphics/docs/format/reference/rect), [``](https://nothing.graphics/docs/format/reference/circle), [``](https://nothing.graphics/docs/format/reference/ellipse) in the model. ## Points [#points] [Points](https://nothing.graphics/docs/format/reference/points). Supply vertices in traversal order. Directly included by [``](https://nothing.graphics/docs/format/reference/polyline), [``](https://nothing.graphics/docs/format/reference/polygon) in the model. ## Gaussian blur [#gaussian-blur] [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur). Share the Gaussian radius parameter across blur and shadow operations. Directly included by [``](https://nothing.graphics/docs/format/reference/blur), [``](https://nothing.graphics/docs/format/reference/drop-shadow), [``](https://nothing.graphics/docs/format/reference/inner-shadow), [``](https://nothing.graphics/docs/format/reference/box-shadow) in the model. ## Shadow style [#shadow-style] [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style). Set local shadow offsets and tint. Directly included by [``](https://nothing.graphics/docs/format/reference/drop-shadow), [``](https://nothing.graphics/docs/format/reference/inner-shadow), [``](https://nothing.graphics/docs/format/reference/box-shadow) in the model. ## Text copy [#text-copy] [Text copy](https://nothing.graphics/docs/format/reference/text-copy). Replace authored literal copy with held keys on a leaf text owner. Directly included by [``](https://nothing.graphics/docs/format/reference/text), [``](https://nothing.graphics/docs/format/reference/span) in the model. # `` [Canonical page](https://nothing.graphics/docs/format/reference/paint) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/paint.md) Add one typed value to a fill or stroke's paint stack. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/paint-stack/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/gradient-paint-stack.nothing) Rendered with ncf-preview at 208 × 64. - [Still · Ramp and paint stack](https://nothing.graphics/format/paint-stack/0.webp) at 0s. The outlined swatch at the left transitions from navy to teal. The swatch at the right uses a translucent teal paint over solid navy. ```xml ``` Use each paint for a single solid, image, or gradient. Its position in the stack determines which layers are beneath it. ## Syntax [#syntax] ### Overlay a translucent color [#overlay-a-translucent-color] The upper paint layers half-alpha teal over navy. At (144, 32), the result is approximately (50, 121, 145, 255). ```xml ``` [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 [``](https://nothing.graphics/docs/format/reference/fill), [``](https://nothing.graphics/docs/format/reference/stroke). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `blend-mode` [#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 [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/solid), [``](https://nothing.graphics/docs/format/reference/image), [``](https://nothing.graphics/docs/format/reference/gradient) | Exactly one | `` | Choose the source of this paint layer. Exactly one value. | | [``](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) # `` [Canonical page](https://nothing.graphics/docs/format/reference/path) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/path.md) Describe editable contours using SVG path commands. A path can carry curves, arcs and multiple subpaths. Its winding rule determines filled regions. ## Syntax [#syntax] ### Draw two disconnected segments [#draw-two-disconnected-segments] Each M starts a subpath and each h draws a relative horizontal segment. The first length is 48 and the second is 16. Both lengths count toward the one stroke trim. The move between them does not add length. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-trim.nothing) · [Sample checks](https://nothing.graphics/docs/format/spec/contour-trim#paths-with-several-subpaths) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `d` [#d] **Value** `SVG 2 XML path data` · **Required** · **Keys** Path commands Absolute or relative commands, with implicit repetition admitted. Continuous key segments require matching expanded commands and coordinate modes. For arc flags, any nonzero interpolated value is true. ### `fill-rule` [#fill-rule] **Value** `nonzero`, `evenodd` · **If omitted** `nonzero` · **Keys** Held Winding rule for the path interior. The rule also applies when this path supplies a filled mask or boolean region. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [SVG path data](https://nothing.graphics/docs/format/spec/graphics#path-data) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/plane) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/plane.md) Place a 2D paint scope on a surface in the spatial trial. The proposed `` element carries 2D artwork on a double-sided surface. Each sample has the depth of its intersection with the plane. ## Syntax [#syntax] ### Tilt artwork across three focus depths [#tilt-artwork-across-three-focus-depths] The spatial trial tilts three stationary marks through axial depths of 1000, 1150, and 1300 scene units. At frames 0, 12 and 24, the near, middle, and far mark respectively has the highest peak intensity. Their projected centers stay fixed. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/perspective-focus.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#perspective-focus-pull) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/scene). Spatial trial. Planes have no intrinsic bounds. Art on the same plane shares its paint scope. A referenced scene first resolves its own view. [Ratified perspective optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics) ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `translate-x` [#translate-x] **Value** scene units · **If omitted** `0` · **Keys** Scalar Spatial trial. Horizontal translation of the plane origin. ### `translate-y` [#translate-y] **Value** scene units · **If omitted** `0` · **Keys** Scalar Spatial trial. Vertical translation of the plane origin. ### `translate-z` [#translate-z] **Value** scene units · **If omitted** `0` · **Keys** Scalar Spatial trial. Depth translation of the plane origin. ### `rotate-x` [#rotate-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar Spatial trial. Signed angle about the x axis. ### `rotate-y` [#rotate-y] **Value** degrees · **If omitted** `0` · **Keys** Scalar Spatial trial. Signed angle about the y axis. ### `rotate` [#rotate] **Value** degrees · **If omitted** `0` · **Keys** Scalar Spatial trial. In-plane angle, clockwise in default scene coordinates. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) | Zero or more | `` | Spatial trial. Level 1 artwork on this surface. Document order over transparent black in plane-local coordinates. | | [``](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] * [Proposed plane authoring and depth](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#scene-integration--editable-2d-artwork) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Points [Canonical page](https://nothing.graphics/docs/format/reference/points) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/points.md) Supply vertices in traversal order. A point list supplies ordered local coordinates for straight contour segments. ## Example [#example] ### Move the same vertices and their markers [#move-the-same-vertices-and-their-markers] Four pairs define a three-segment open contour. At frame 30 the second pair changes to (250, 260), and the drawable attached to vertex 1 follows it. Each continuous segment retains four pairs. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/02-markers.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Trait `Points` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/polyline), [``](https://nothing.graphics/docs/format/reference/polygon). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `points` [#points] **Value** `Whitespace-separated x,y pairs of finite local coordinates` · **Required** · **Keys** Point list Authored vertices. An empty list gives no bounds or contour. Continuous segments require the same number of pairs. A held key may change the number of vertices. ## Specifications [#specifications] * [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes) # `` [Canonical page](https://nothing.graphics/docs/format/reference/polygon) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/polygon.md) Connect local vertices into a closed contour. A polygon follows its points in order and closes from the last point back to the first. ## Syntax [#syntax] ### Close an arrowhead [#close-an-arrowhead] Write three vertices for the amber arrowhead. The closing segment is the vertical base from (−2, 6) to (−2, −6). At frame 18 the parent shape has moved and turned the arrow to point down the road. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Includes [Points](https://nothing.graphics/docs/format/reference/points). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `points` [#points] **Value** `Whitespace-separated x,y pairs of finite local coordinates` · **Required** · **Keys** Point list · **Declared by** [Points](https://nothing.graphics/docs/format/reference/points#points) Authored vertices. An empty list gives no bounds or contour. Continuous segments require the same number of pairs. A held key may change the number of vertices. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/polyline) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/polyline.md) Follow successive local vertices with straight segments. A polyline connects its points in source order and leaves the contour open. ## Syntax [#syntax] ### Define a road with one bend [#define-a-road-with-one-bend] The first leg runs 60 units right and the second runs 40 down. At frame 18 the progress stripe has traveled 75 units, so its tip sits 15 units down the second leg. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Includes [Points](https://nothing.graphics/docs/format/reference/points). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `points` [#points] **Value** `Whitespace-separated x,y pairs of finite local coordinates` · **Required** · **Keys** Point list · **Declared by** [Points](https://nothing.graphics/docs/format/reference/points#points) Authored vertices. An empty list gives no bounds or contour. Continuous segments require the same number of pairs. A held key may change the number of vertices. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/rect) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/rect.md) Define a rectangle with optional rounded corners as a shape’s geometry. ## Examples The shape owns the rotation. The rectangle owns its local width. The shape’s translation and the rectangle’s default center registration keep the painted rectangle centered at (32, 24). [Download the complete .nothing source](https://nothing.graphics/format/centered-rectangle/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) Rendered with ncf-preview at 80 × 56. - [Frame 0 · Initial pose](https://nothing.graphics/format/centered-rectangle/0.webp). A 12 × 8 white rectangle centered at (32, 24). Three smaller registration examples sit to its right. - [Frame 4 · Quarter turn](https://nothing.graphics/format/centered-rectangle/4.webp). The rectangle turns 90° clockwise. Its painted extent is 8 × 12 and its center stays at (32, 24). - [Frame 8 · Wider rectangle](https://nothing.graphics/format/centered-rectangle/8.webp). The local width increases to 20 while the quarter turn holds. The painted extent is 8 × 20 and its center stays at (32, 24). ```xml ``` The `` element defines the rectangular contour of a [shape](https://nothing.graphics/docs/format/reference/shape). With default registration and offsets, its center sits at the shape’s local origin. Set rotation on the owning shape. ## Syntax [#syntax] Set the rectangle to 10 local units wide and 6 high. With both anchor values at zero, its top-left corner sits at the shape’s local origin. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Includes [Registration](https://nothing.graphics/docs/format/reference/registration). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `width` [#width] **Value** local units · **Required** · **Keys** Scalar Nonnegative rectangle width. ### `height` [#height] **Value** local units · **Required** · **Keys** Scalar Nonnegative rectangle height. ### `corner-radius` [#corner-radius] **Value** local units · **If omitted** `0` · **Keys** Scalar Shared nonnegative circular corner radius. [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) ### `corner-top-left-radius` [#corner-top-left-radius] **Value** local units · **If omitted** Sampled `corner-radius` · **Keys** Scalar Nonnegative radius of the local top-left corner. [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) ### `corner-top-right-radius` [#corner-top-right-radius] **Value** local units · **If omitted** Sampled `corner-radius` · **Keys** Scalar Nonnegative radius of the local top-right corner. [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) ### `corner-bottom-right-radius` [#corner-bottom-right-radius] **Value** local units · **If omitted** Sampled `corner-radius` · **Keys** Scalar Nonnegative radius of the local bottom-right corner. [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) ### `corner-bottom-left-radius` [#corner-bottom-left-radius] **Value** local units · **If omitted** Sampled `corner-radius` · **Keys** Scalar Nonnegative radius of the local bottom-left corner. [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) ### `anchor-u` [#anchor-u] **Value** fraction of width · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-u) Horizontal registration. Zero selects the left edge and one the right edge. Values outside that interval extrapolate. ### `anchor-v` [#anchor-v] **Value** fraction of height · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-v) Vertical registration. Zero selects the top edge and one the bottom edge. Values outside that interval extrapolate. ### `offset-x` [#offset-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-x) Horizontal coordinate of the registered point. ### `offset-y` [#offset-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-y) Vertical coordinate of the registered point. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) * [Rectangle corners](https://nothing.graphics/docs/format/spec/graphics#rectangle-corners) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Registration [Canonical page](https://nothing.graphics/docs/format/reference/registration) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/registration.md) Choose which point of a rectangle, circle, or ellipse sits at the local offset. Anchor fractions select a point relative to the unpainted geometry bounds. The two offset attributes give that point’s drawable-local coordinates. ## Example [#example] ### Pin a rectangle by its left midpoint [#pin-a-rectangle-by-its-left-midpoint] Registration belongs to ``, ``, and ``. Write `anchor-u="0"` on the rectangle to select its left edge. The omitted `anchor-v` still selects halfway down. The shape places that left midpoint at (56, 24), and the white rectangle extends from x = 56 to 66 and y = 21 to 27. Set `anchor-v="0"` as well to place the top-left corner at the shape origin. Use `offset-x` or `offset-y` on the geometry when the selected point needs to sit away from the origin. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) ## Usage context [#usage-context] Trait `Registration` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/rect), [``](https://nothing.graphics/docs/format/reference/circle), [``](https://nothing.graphics/docs/format/reference/ellipse). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `anchor-u` [#anchor-u] **Value** fraction of width · **If omitted** `0.5` · **Keys** Scalar Horizontal registration. Zero selects the left edge and one the right edge. Values outside that interval extrapolate. ### `anchor-v` [#anchor-v] **Value** fraction of height · **If omitted** `0.5` · **Keys** Scalar Vertical registration. Zero selects the top edge and one the bottom edge. Values outside that interval extrapolate. ### `offset-x` [#offset-x] **Value** local units · **If omitted** `0` · **Keys** Scalar Horizontal coordinate of the registered point. ### `offset-y` [#offset-y] **Value** local units · **If omitted** `0` · **Keys** Scalar Vertical coordinate of the registered point. ## Specifications [#specifications] * [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset) # `` [Canonical page](https://nothing.graphics/docs/format/reference/scene) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/scene.md) Declare the canvas, clock, views and root drawing order of a complete document. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/first-scene/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/first-scene.nothing) Rendered with ncf-preview at 64 × 64. - [Still · Centered rectangle](https://nothing.graphics/format/first-scene/0.webp) at 0s. A terracotta rectangle occupies x from 8 to 48 and y from 8 to 48 on a transparent 64 × 64 canvas. ```xml ``` Use one unnamespaced `` root in a UTF-8 XML 1.0 file. Drawables paint over the scene background in source order. ## Syntax [#syntax] ### Give a still its own canvas [#give-a-still-its-own-canvas] Set both canvas dimensions to 64. With no scene background, the terracotta rectangle at x = 8–48 and y = 8–48 appears on transparency. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/first-scene.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Use this element as the single document root. Unknown elements, declarations of a DTD, and processing instructions require a diagnostic. Opaque extension attributes survive unrelated edits. A standalone sample needs a resolved viewport. Supply a frame rate when any placement or track is present. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `width` [#width] **Value** scene units · **Keys** Static Positive finite canvas width. Canvas dimensions are supplied together. With both omitted, use the caller's viewport. [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) ### `height` [#height] **Value** scene units · **Keys** Static Positive finite canvas height. Canvas dimensions are supplied together. With both omitted, use the caller's viewport. [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) ### `background` [#background] **Value** `#RRGGBBAA` · **If omitted** `#00000000` · **Keys** Color channels Fill the resolved viewport once beneath the artwork, using eight hexadecimal digits in RGBA order. [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) ### `frame-rate` [#frame-rate] **Value** `Positive integer or ratio of two positive integers in frames per second, such as 24 or 30000/1001` · **Keys** Static Authored clock rate. Required if there is a placement or property track anywhere in the document. [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) ### `camera` [#camera] **Value** `Case-sensitive camera ID` · **Keys** Held Choose the scene's base view. Required when the scene has camera declarations. With no cameras use the identity view. [2D cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) ### `meters-per-unit` [#meters-per-unit] **Value** meters per scene unit · **If omitted** `0.001` · **Keys** Static Spatial trial. Positive metric scale for the spatial trial. [Proposed focus settings](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-camera-focus.md#proposed-authoring-inputs) ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) | Zero or more | `` | Root drawables in a Level 1 scene. Document order from bottom to top. | | [``](https://nothing.graphics/docs/format/reference/camera) | Zero or more | `` | Named cameras. Supply a base camera ID when any are present. Declarations occupy no paint slot. [2D cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) | | [``](https://nothing.graphics/docs/format/reference/plane) | Zero or more | `` | Spatial trial. Planes are the root drawables in a spatial trial scene. Depth order from far to near per ray. At equal depth the later plane paints over the earlier one. Use planes instead of direct Level 1 drawables with the spatial projection. [Proposed plane authoring and depth](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#scene-integration--editable-2d-artwork) | | [``](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] * [Complete document and source grammar](https://nothing.graphics/docs/format/spec#a-complete-document) * [Source-preserving editing](https://nothing.graphics/docs/format/spec#source-preserving-editing) * [Diagnostics and evidence](https://nothing.graphics/docs/format/spec#diagnostics-and-evidence) * [Canvas and clock](https://nothing.graphics/docs/format/spec#canvas-and-clock) * [2D cameras](https://nothing.graphics/docs/format/spec/spatial#cameras) * [Proposed focus settings](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-camera-focus.md#proposed-authoring-inputs) * [Proposed plane authoring and depth](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#scene-integration--editable-2d-artwork) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/sequence) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/sequence.md) Place referenced media or inline artwork on a parent timeline. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/moving-card/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) Rendered with ncf-preview at 320 × 200. Bound resources - [fixtures/fonts/PT_Serif/PTSerif-Bold.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Bold.ttf) for `PT Serif@700` - [fixtures/fonts/PT_Serif/PTSerif-Regular.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Regular.ttf) for `PT Serif@400` - [ncf/examples/card-picture.nothing](https://nothing.graphics/format/moving-card/card-picture.nothing) - [Frame 12 · Distinct in-points](https://nothing.graphics/format/moving-card/12.webp). Two masked windows show different times of the same picture. A progress line is halfway revealed beneath the caption Status READY. - [Frame 24 · Full progress stripe](https://nothing.graphics/format/moving-card/24.webp). The left and right panels show source frames 24 and 48. The word WAIT appears in green and the progress stripe reaches the bend’s upper tip. ```xml ``` A sequence places one source for a bounded interval and maps its local time independently. Placement tracks, mask and filter use the parent clock. Its contents use mapped source time. ## Syntax [#syntax] ### Slip a nested picture while preserving its parent cut [#slip-a-nested-picture-while-preserving-its-parent-cut] At parent frame 24, the right placement is one second into the cut and samples its source at two seconds. Change the source start from 1s to 1.25s and the stripe advances from x = 272 to 278 without moving the cut. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/scene), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence), [``](https://nothing.graphics/docs/format/reference/shape). The [spatial trial](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) also allows [``](https://nothing.graphics/docs/format/reference/plane). Inherits from [Drawable](https://nothing.graphics/docs/format/reference/drawable). When href is present, omit inline drawables. A backdrop filter requires an explicit mask. Locator kinds are mutually exclusive, with u and v counting as a single kind. An exact second value uses an integer, decimal, or integer fraction with a positive denominator. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `translate-x` [#translate-x] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-x) Horizontal translation. ### `translate-y` [#translate-y] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-y) Vertical translation. ### `pivot-x` [#pivot-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-x) Horizontal coordinate of the transform pivot. ### `pivot-y` [#pivot-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-y) Vertical coordinate of the transform pivot. ### `scale-x` [#scale-x] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-x) Local horizontal scale. Negative values reflect the axis. ### `scale-y` [#scale-y] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-y) Local vertical scale. Negative values reflect the axis. ### `skew-x` [#skew-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#skew-x) Horizontal shear angle, strictly between −90 and 90. ### `rotate` [#rotate] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#rotate) Rotation about the drawable pivot, clockwise in default scene coordinates. ### `u` [#u] **Value** fraction of host width · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#u) 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` [#v] **Value** fraction of host height · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#v) 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` [#along] **Value** fraction of contour length · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#along) Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base. ### `vertex` [#vertex] **Value** vertex index · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#vertex) 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` [#orient] **Value** `none`, `auto` · **If omitted** `none` · **Keys** Held · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#orient) Facing relative to the host contour. Auto facing requires along or vertex. ### `opacity` [#opacity] **Value** fraction · **If omitted** `1` · **Keys** Scalar · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#opacity) Opacity from 0 to 1, applied once to the completed visual result. ### `blend-mode` [#blend-mode] **Value** `normal`, `multiply`, `screen` · **If omitted** `normal` · **Keys** Held · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#blend-mode) Blend the assembled drawable into its enclosing paint scope. ### `begin` [#begin] **Value** `Integer frames with f, or exact seconds with s` · **Required** · **Keys** Static Start on the placement's parent clock. Resolve frame counts at the enclosing scene's authored rate. ### `dur` [#dur] **Value** `Integer frames with f, or exact seconds with s` · **Required** · **Keys** Static Positive duration on the parent clock. The sequence is inactive at its end boundary. ### `source-start` [#source-start] **Value** `Exact seconds with s` · **Required** · **Keys** Static Source instant at the placement's beginning. Seconds can be an integer, decimal, or integer fraction. ### `href` [#href] **Value** `Asset reference relative to the declaring document` · **Keys** Static Optional referenced audio, footage or scene. Omit for inline content. ### `gain` [#gain] **Value** linear amplitude factor · **If omitted** `1` · **Keys** Scalar Nonnegative per-channel gain before mixing into the parent. One leaves amplitude unchanged. [Audio sampling and mixing](https://nothing.graphics/docs/format/spec/sequences#audio-sampling-and-mixing) ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) | Zero or more | `` | Inline source drawables, allowed only without href. Document paint order. Resolve these children on the mapped source clock. | | [``](https://nothing.graphics/docs/format/reference/filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Source-image operations on the assembled drawable. Independent of its position among siblings. | | [``](https://nothing.graphics/docs/format/reference/backdrop-filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Blur the accumulated picture at this drawable's paint position. Independent of its position among siblings. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) | | [``](https://nothing.graphics/docs/format/reference/mask) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Coverage from one source shape. Independent of its position among siblings. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) | | [``](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] * [Sequence placement and clock](https://nothing.graphics/docs/format/spec/sequences#sequence) * [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) * [Locators](https://nothing.graphics/docs/format/spec/attached-drawables#locators) * [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) * [Audio sampling and mixing](https://nothing.graphics/docs/format/spec/sequences#audio-sampling-and-mixing) * [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) * [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) * [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Shadow style [Canonical page](https://nothing.graphics/docs/format/reference/shadow-style) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/shadow-style.md) Set local shadow offsets and tint. Offsets are signed. A tint includes encoded sRGB color and alpha. ## Example [#example] ### Set a shared tint and displacement [#set-a-shared-tint-and-displacement] Use an opaque amber tint and a positive y offset. With zero blur the partial alpha at (160, 27) is reproduced 44 units below at (160, 71). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects) ## Usage context [#usage-context] Trait `ShadowStyle` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/drop-shadow), [``](https://nothing.graphics/docs/format/reference/inner-shadow), [``](https://nothing.graphics/docs/format/reference/box-shadow). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `dx` [#dx] **Value** local units · **If omitted** `0` · **Keys** Scalar Horizontal displacement, positive to the right. ### `dy` [#dy] **Value** local units · **If omitted** `0` · **Keys** Scalar Vertical displacement, positive down. ### `color` [#color] **Value** `#RRGGBBAA` · **Required** · **Keys** Color channels Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space. ## Specifications [#specifications] * [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations) # `` [Canonical page](https://nothing.graphics/docs/format/reference/shape) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/shape.md) Place and paint a single geometry as a drawable. The `` 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 [#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). ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/scene), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence), [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/boolean), [``](https://nothing.graphics/docs/format/reference/mask). The [spatial trial](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) also allows [``](https://nothing.graphics/docs/format/reference/plane). Inherits from [Drawable](https://nothing.graphics/docs/format/reference/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 [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `translate-x` [#translate-x] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-x) Horizontal translation. ### `translate-y` [#translate-y] **Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-y) Vertical translation. ### `pivot-x` [#pivot-x] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-x) Horizontal coordinate of the transform pivot. ### `pivot-y` [#pivot-y] **Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-y) Vertical coordinate of the transform pivot. ### `scale-x` [#scale-x] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-x) Local horizontal scale. Negative values reflect the axis. ### `scale-y` [#scale-y] **Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-y) Local vertical scale. Negative values reflect the axis. ### `skew-x` [#skew-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#skew-x) Horizontal shear angle, strictly between −90 and 90. ### `rotate` [#rotate] **Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#rotate) Rotation about the drawable pivot, clockwise in default scene coordinates. ### `u` [#u] **Value** fraction of host width · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#u) 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` [#v] **Value** fraction of host height · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#v) 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` [#along] **Value** fraction of contour length · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#along) Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base. ### `vertex` [#vertex] **Value** vertex index · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#vertex) 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` [#orient] **Value** `none`, `auto` · **If omitted** `none` · **Keys** Held · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#orient) Facing relative to the host contour. Auto facing requires along or vertex. ### `opacity` [#opacity] **Value** fraction · **If omitted** `1` · **Keys** Scalar · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#opacity) Opacity from 0 to 1, applied once to the completed visual result. ### `blend-mode` [#blend-mode] **Value** `normal`, `multiply`, `screen`, `pass-through` · **If omitted** `normal` · **Keys** Held · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#blend-mode) Blend the assembled drawable into its enclosing paint scope. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/rect), [``](https://nothing.graphics/docs/format/reference/circle), [``](https://nothing.graphics/docs/format/reference/ellipse), [``](https://nothing.graphics/docs/format/reference/line), [``](https://nothing.graphics/docs/format/reference/polyline), [``](https://nothing.graphics/docs/format/reference/polygon), [``](https://nothing.graphics/docs/format/reference/path), [``](https://nothing.graphics/docs/format/reference/boolean), [``](https://nothing.graphics/docs/format/reference/text) | Exactly one | `` | Select the host contour. Its position divides attached drawables into those painted below and above the host. | | [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence) | Zero or more | `` | 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](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) | | [``](https://nothing.graphics/docs/format/reference/fill) | Optional, at most one | `` | Paint the interior. Before all strokes. [Paint](https://nothing.graphics/docs/format/spec/graphics#paint) | | [``](https://nothing.graphics/docs/format/reference/stroke) | Zero or more | `` | Paint a band along the contour. Document order after fill and inset shadows. [Paint](https://nothing.graphics/docs/format/spec/graphics#paint) | | [``](https://nothing.graphics/docs/format/reference/box-shadow) | Zero or more | `` | 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](https://nothing.graphics/docs/format/spec/filters#outer-box-shadows) | | [``](https://nothing.graphics/docs/format/reference/filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Source-image operations on the assembled drawable. Independent of its position among siblings. | | [``](https://nothing.graphics/docs/format/reference/backdrop-filter) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Blur the accumulated picture at this drawable's paint position. Independent of its position among siblings. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) | | [``](https://nothing.graphics/docs/format/reference/mask) | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Coverage from one source shape. Independent of its position among siblings. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) | | [``](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] * [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes) * [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) * [Locators](https://nothing.graphics/docs/format/spec/attached-drawables#locators) * [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage) * [Attachment order and compositing](https://nothing.graphics/docs/format/spec/attached-drawables#order-and-compositing) * [Paint](https://nothing.graphics/docs/format/spec/graphics#paint) * [Outer box shadows](https://nothing.graphics/docs/format/spec/filters#outer-box-shadows) * [Filters and shadows](https://nothing.graphics/docs/format/spec/filters) * [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur) * [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [Canonical page](https://nothing.graphics/docs/format/reference/solid) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/solid.md) Use one RGBA color throughout a paint's coverage. A solid paint contributes a single color and its authored alpha through the selected operation's coverage. ## Syntax [#syntax] ### Supply a color and alpha [#supply-a-color-and-alpha] Read the color as red 205, green 104, blue 67, and alpha 255. At the center of the rectangle the same opaque terracotta is visible. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/first-scene.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/paint). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `color` [#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 | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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) # `` [Canonical page](https://nothing.graphics/docs/format/reference/span) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/span.md) Own a stable text range with optional local style and copy keys. A span keeps its authored range through reflow. Nested spans inherit each font field from the nearest specified ancestor independently. ## Syntax [#syntax] ### Keep one word bold and colored [#keep-one-word-bold-and-colored] Apply weight 700 and a local fill to the same text range. At frame 24 the leaf span reads WAIT. The trailing period stays outside this range and uses the surrounding regular face and fill. ```xml READY ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/text), [``](https://nothing.graphics/docs/format/reference/span). Includes [Text copy](https://nothing.graphics/docs/format/reference/text-copy). Literal copy, including spaces beside elements, is significant. A span's paint boundary does not break shaping. Diagnose a shaped cluster crossing differently assigned fills. [Span appearance](https://nothing.graphics/docs/format/spec/text#appearance-and-editing) ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `font-family` [#font-family] **Value** `One nonempty family name` · **If omitted** `inherit sampled family` · **Keys** Held Override the requested family on this range. [Authored font requests](https://nothing.graphics/docs/format/spec/fonts#authored-request) ### `font-size` [#font-size] **Value** local units · **If omitted** `inherit sampled size` · **Keys** Scalar Override this range's positive em size. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `font-weight` [#font-weight] **Value** `Exact integer from 1 to 1000` · **If omitted** `inherit sampled weight` · **Keys** Held Override the requested face weight on this range. [Authored font requests](https://nothing.graphics/docs/format/spec/fonts#authored-request) ## Animation-only targets [#animation-only-targets] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `value` [#value] **Value** `Literal Unicode character data` · **If omitted** `direct character data` · **Keys** Held · **Declared by** [Text copy](https://nothing.graphics/docs/format/reference/text-copy#value) Replace the copy at the key's time. In an XML key value, write LF and tab as character references. A track requires an owner with no child spans. The base is the concatenated direct character data after XML processing. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | --------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/span) | Zero or more | `` | Nested text ranges. Document order interleaved with literal character data. | | [``](https://nothing.graphics/docs/format/reference/fill) | Optional, at most one | `` | Local paint stack. When absent, use the nearest enclosing span fill or the shape fill. Apply stacks in their owning spans' preorder, after the shape fill and before the shape strokes. [Span appearance and editing](https://nothing.graphics/docs/format/spec/text#appearance-and-editing) | | [``](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] * [Text content and ownership](https://nothing.graphics/docs/format/spec/text#content-and-ownership) * [Authored font requests](https://nothing.graphics/docs/format/spec/fonts#authored-request) * [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) * [Span appearance and editing](https://nothing.graphics/docs/format/spec/text#appearance-and-editing) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # `` [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. 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 ``` [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 [``](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 | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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) # `` [Canonical page](https://nothing.graphics/docs/format/reference/stroke) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/stroke.md) Expand a shape's contour into an independently painted band. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/signature-trim/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/signature-write-on.nothing) Rendered with ncf-preview at 260 × 160. - [Frame 24 · Opening loop](https://nothing.graphics/format/signature-trim/24.webp). Dark blue ink forms the opening loop. The later letter strokes and the underline are still blank. - [Frame 72 · Final letter](https://nothing.graphics/format/signature-trim/72.webp). The stroke reaches the final letter and the underline is still absent. The pen lift adds zero length. - [Frame 84 · Underline in progress](https://nothing.graphics/format/signature-trim/84.webp). The lettering is complete. A separate ink stroke grows from left to right beneath it. - [Frame 96 · Complete signature](https://nothing.graphics/format/signature-trim/96.webp). The blue underline reaches its rounded final cap beneath the completed lettering. ```xml ``` A stroke paints the owning shape's contour with its own width, styling, optional trim and paint stack. The shape can have several strokes. ## Syntax [#syntax] ### Keep a full casing beneath a reveal [#keep-a-full-casing-beneath-a-reveal] The dark casing paints the whole 100-unit road. The narrow, light sibling begins empty. At frame 12, (60, 16) is light and (76, 30) is still dark. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inside and outside alignment occupy one side of a simple closed contour. Open contours use centered alignment. A trim selects coverage for this stroke alone. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `stroke-width` [#stroke-width] **Value** local units · **Required** · **Keys** Scalar Nonnegative width. Zero gives no coverage. ### `stroke-align` [#stroke-align] **Value** `center`, `inside`, `outside` · **If omitted** `center` · **Keys** Held Place the band across, inside or outside the contour. ### `stroke-linecap` [#stroke-linecap] **Value** `butt`, `round`, `square` · **If omitted** `butt` · **Keys** Held Shape of the endpoint at an open end, including an end created by trim. ### `stroke-linejoin` [#stroke-linejoin] **Value** `miter`, `round`, `bevel` · **If omitted** `miter` · **Keys** Held Shape of a join between segments. ### `stroke-miterlimit` [#stroke-miterlimit] **Value** ratio · **If omitted** `4` · **Keys** Scalar Maximum miter ratio. A miter beyond this limit becomes a bevel. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | --------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/paint) | One or more | `` | Paints clipped to the expanded and potentially trimmed stroke. Document order, bottom to top. | | [``](https://nothing.graphics/docs/format/reference/trim) | Optional, at most one | `` | Select an interval on the contour for this stroke. Independent of its position among paints. [Directed contours and distance](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance) | | [``](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) * [Directed contours and distance](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Text copy [Canonical page](https://nothing.graphics/docs/format/reference/text-copy) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/text-copy.md) Replace authored literal copy with held keys on a leaf text owner. A text or span that contains no child spans can key its direct character data. ## Example [#example] ### Replace a leaf range with a held string [#replace-a-leaf-range-with-a-held-string] The span reads READY at frame 12 and WAIT at frame 24. Edit the second key to HOLD to change only that key’s replacement string. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) ## Usage context [#usage-context] Trait `TextCopy` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [``](https://nothing.graphics/docs/format/reference/text), [``](https://nothing.graphics/docs/format/reference/span). ## Animation-only targets [#animation-only-targets] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `value` [#value] **Value** `Literal Unicode character data` · **If omitted** `direct character data` · **Keys** Held Replace the copy at the key's time. In an XML key value, write LF and tab as character references. A track requires an owner with no child spans. The base is the concatenated direct character data after XML processing. ## Specifications [#specifications] * [Text content and ownership](https://nothing.graphics/docs/format/spec/text#content-and-ownership) # `` [Canonical page](https://nothing.graphics/docs/format/reference/text) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/text.md) Lay out editable Unicode copy as glyph geometry for a shape. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/editable-caption/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/fonts/caption.nothing) Rendered with ncf-preview at 120 × 80. Bound resources - [fixtures/fonts/PT_Serif/PTSerif-Regular.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Regular.ttf) for `PT Serif@400` - [ncf/conformance/attached-drawables/arithmetic.ttf](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/arithmetic.ttf) for `NCF Arithmetic@400` - [Still · Wrapped caption](https://nothing.graphics/format/editable-caption/0.webp) at 0s. The two square primary glyphs share the first baseline. The two Cyrillic characters use the fallback face and wrap to the second baseline. ```xml AA ЖЖ ``` A text element owns paragraph settings and copy. It contributes glyph outlines to the owning shape. Direct copy and child spans join without extra separators. ## Syntax [#syntax] ### Keep a caption centered through a copy change [#keep-a-caption-centered-through-a-copy-change] Set the line anchor to x = 160 and the first baseline to y = 128. With PT Serif Regular and Bold bound, seek to frame 24 for “Status WAIT.” Narrow the inline size to 90 and the lines center separately at baselines 128 and 158. ```xml Status READY . ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/shape). Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry). Includes [Text copy](https://nothing.graphics/docs/format/reference/text-copy). Character data beside span or animation children, including indentation, is significant. Resolve [font input and fallback](https://nothing.graphics/docs/format/spec/fonts#face-selection-and-fallback) before sampling geometry or paint. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `x` [#x] **Value** local units · **If omitted** `0` · **Keys** Scalar Horizontal anchor for each line. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `y` [#y] **Value** local units · **If omitted** `0` · **Keys** Scalar Vertical position of the first alphabetic baseline. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `font-family` [#font-family] **Value** `One nonempty family name` · **Required** · **Keys** Held Requested family resolved in the sample's font environment. [Authored font requests](https://nothing.graphics/docs/format/spec/fonts#authored-request) ### `font-size` [#font-size] **Value** local units · **Required** · **Keys** Scalar Positive em size. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `font-weight` [#font-weight] **Value** `Exact integer from 1 to 1000` · **If omitted** `400` · **Keys** Held Requested face weight. [Authored font requests](https://nothing.graphics/docs/format/spec/fonts#authored-request) ### `text-anchor` [#text-anchor] **Value** `start`, `middle`, `end` · **If omitted** `start` · **Keys** Held Align each line's advance at x. Start anchors the left edge in LTR and the right edge in RTL. End anchors the opposite edge. Middle anchors the midpoint. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `direction` [#direction] **Value** `ltr`, `rtl` · **If omitted** `ltr` · **Keys** Held Paragraph base direction for bidirectional layout. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `inline-size` [#inline-size] **Value** local units · **If omitted** `natural line width` · **Keys** Scalar Positive available width for soft wrapping. A track requires an authored finite width. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ### `line-height` [#line-height] **Value** local units · **If omitted** `1.2 times the sampled text font size` · **Keys** Scalar Positive distance between successive baselines. [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) ## Animation-only targets [#animation-only-targets] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `value` [#value] **Value** `Literal Unicode character data` · **If omitted** `direct character data` · **Keys** Held · **Declared by** [Text copy](https://nothing.graphics/docs/format/reference/text-copy#value) Replace the copy at the key's time. In an XML key value, write LF and tab as character references. A track requires an owner with no child spans. The base is the concatenated direct character data after XML processing. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](https://nothing.graphics/docs/format/reference/span) | Zero or more | `` | Editable copy ranges that can supply a local style. Document order interleaved with literal character data. | | [``](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] * [Text content and ownership](https://nothing.graphics/docs/format/spec/text#content-and-ownership) * [Typeface and paragraph](https://nothing.graphics/docs/format/spec/text#typeface-and-paragraph) * [Authored font requests](https://nothing.graphics/docs/format/spec/fonts#authored-request) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Transform [Canonical page](https://nothing.graphics/docs/format/reference/transform) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/transform.md) Move, scale, skew, or rotate a drawable in its parent. Scale, then skew, then rotate around the local pivot. Translation moves the result along the parent’s axes. ## Example [#example] ### Turn a rectangle around its center [#turn-a-rectangle-around-its-center] Transform attributes belong to ``, ``, and ``. Here the shape translates to (32, 24) and keys its own `rotate` attribute. At frame 0 the painted rectangle is 12 × 8. At frame 4 it has turned 90° clockwise and paints an 8 × 12 area. The shape’s default pivot is local (0, 0), the point where the rectangle’s default registration places its center. The center therefore stays at (32, 24) during the turn. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) ## Usage context [#usage-context] Trait `Transform` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model). Related pages in this reference are [Drawable](https://nothing.graphics/docs/format/reference/drawable). ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `translate-x` [#translate-x] **Value** parent units · **If omitted** `0` · **Keys** Scalar Horizontal translation. ### `translate-y` [#translate-y] **Value** parent units · **If omitted** `0` · **Keys** Scalar Vertical translation. ### `pivot-x` [#pivot-x] **Value** local units · **If omitted** `0` · **Keys** Scalar Horizontal coordinate of the transform pivot. ### `pivot-y` [#pivot-y] **Value** local units · **If omitted** `0` · **Keys** Scalar Vertical coordinate of the transform pivot. ### `scale-x` [#scale-x] **Value** factor · **If omitted** `1` · **Keys** Scalar Local horizontal scale. Negative values reflect the axis. ### `scale-y` [#scale-y] **Value** factor · **If omitted** `1` · **Keys** Scalar Local vertical scale. Negative values reflect the axis. ### `skew-x` [#skew-x] **Value** degrees · **If omitted** `0` · **Keys** Scalar Horizontal shear angle, strictly between −90 and 90. ### `rotate` [#rotate] **Value** degrees · **If omitted** `0` · **Keys** Scalar Rotation about the drawable pivot, clockwise in default scene coordinates. ## Specifications [#specifications] * [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent) # `` [Canonical page](https://nothing.graphics/docs/format/reference/trim) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/trim.md) Select a drawn distance interval for one stroke. ## Examples [Download the complete .nothing source](https://nothing.graphics/format/signature-trim/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/signature-write-on.nothing) Rendered with ncf-preview at 260 × 160. - [Frame 24 · Opening loop](https://nothing.graphics/format/signature-trim/24.webp). Dark blue ink forms the opening loop. The later letter strokes and the underline are still blank. - [Frame 72 · Final letter](https://nothing.graphics/format/signature-trim/72.webp). The stroke reaches the final letter and the underline is still absent. The pen lift adds zero length. - [Frame 84 · Underline in progress](https://nothing.graphics/format/signature-trim/84.webp). The lettering is complete. A separate ink stroke grows from left to right beneath it. - [Frame 96 · Complete signature](https://nothing.graphics/format/signature-trim/96.webp). The blue underline reaches its rounded final cap beneath the completed lettering. ```xml ``` Trim measures along sampled geometry in its authored contour direction, through subpaths in order. The fill and sibling strokes keep their original geometry. ## Syntax [#syntax] ### Reveal one stripe along a bend [#reveal-one-stripe-along-a-bend] At frame 12 the narrow stripe has covered half the 120-unit contour, ending at (76, 174). At frame 24 it reaches (96, 134). The wider casing stays complete. ```xml ``` [Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md) ## Usage context [#usage-context] Allowed parents are [``](https://nothing.graphics/docs/format/reference/stroke). Open and compound contours use positions in \[0, 1]. A single closed contour uses signed unwrapped laps. An end at or before the start produces no stroke coverage. Diagnose trim on text or boolean geometry. ## Attributes [#attributes] [Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions) ### `start` [#start] **Value** fraction of total local contour length · **Required** · **Keys** Scalar Start of the selected interval. ### `end` [#end] **Value** fraction of total local contour length · **Required** · **Keys** Scalar End of the selected interval. ## Children [#children] | Elements | Cardinality | Declared by | Role and source order | | --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [``](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] * [Directed contours and distance](https://nothing.graphics/docs/format/spec/contour-trim#directed-contour-and-distance) * [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) # Abstract types [Canonical page](https://nothing.graphics/docs/format/reference/types) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/types.md) Browse the element families defined by inheritance in the .nothing format type model. An abstract type describes the shared structure of its derived types. ## Drawable [#drawable] [Drawable](https://nothing.graphics/docs/format/reference/drawable). Shared structure for elements that contribute to a composition. Documented descendants are [``](https://nothing.graphics/docs/format/reference/shape), [``](https://nothing.graphics/docs/format/reference/group), [``](https://nothing.graphics/docs/format/reference/sequence). ## Geometry [#geometry] [Geometry](https://nothing.graphics/docs/format/reference/geometry). The family of elements that supply a shape’s contour. Documented descendants are [``](https://nothing.graphics/docs/format/reference/rect), [``](https://nothing.graphics/docs/format/reference/circle), [``](https://nothing.graphics/docs/format/reference/ellipse), [``](https://nothing.graphics/docs/format/reference/line), [``](https://nothing.graphics/docs/format/reference/polyline), [``](https://nothing.graphics/docs/format/reference/polygon), [``](https://nothing.graphics/docs/format/reference/path), [``](https://nothing.graphics/docs/format/reference/boolean), [``](https://nothing.graphics/docs/format/reference/text).