Native COLRv1 Gradient Composite Colours

Version 2.1168.0 extends full native colour evaluation to eligible COLRv1 graphs that combine continuous common-axis linear gradients with source-atop, destination-atop, xor or plus composition

DrawRegisteredColorGlyph chooses this path automatically once the complete graph has been proved eligible; no raster callback or compatibility-option change is needed

Version 2.1175.0 adds a separate bounded path for graphs that combine horizontal and vertical smooth Pad gradients in the same composition

Colour and opacity

The writer decodes palette colours from sRGB and evaluates the whole graph in linear-light premultiplied colour together with the authored alpha values

Before paired native vector fields are emitted, the final encoded colour and opacity are bounded over each continuous region; the approximation follows the source gradient rather than a fixed grid of sampled pixels

The complete RGB surface is assembled inside an isolated group and its final opacity mask is then applied once, so the result survives when a reader subdivides varying-colour triangles internally

Layer order, nested Porter-Duff operations, transparent endpoints, local clipping and caller opacity remain part of the supported drawing workflow

Eligible graphs

Supported paints include solids and Pad linear gradients whose varying directions share a single horizontal or vertical axis after axis-preserving transforms, including reflections and axis exchange

Geometry may contain rectangular COLR clip boxes and real glyph contours built from horizontal and vertical straight segments, including nonzero-winding holes

Nondecreasing colour-stop offsets are supported; source clipping, distinct stop positions and contour boundaries define separate regions without substituting the bounding box for the outline

Common-axis Repeat and Reflect composites

Version 2.1180.0 adds bounded native colour evaluation for extended composite graphs containing Repeat and Reflect linear gradients along one shared horizontal or vertical axis

Negative phases, shifted stop intervals, reversed spans, axis exchange and repeated-offset source stops retain their original periodic colour and opacity

The complete graph keeps linear-light composition, palette and stop alpha, supported orthogonal contours and local clips; caller opacity applies once to the completed glyph

Source-driven vector fields preserve internal material and period transitions without spreading a colour ramp across a real jump or requiring a raster callback

A separate support field keeps the completed opacity inside the original visible regions, including transparent cells beyond their outer edges

Admission retains the existing region, work, memory, object and complete representation limits, including inline function dictionaries; a failed certificate keeps the established recovery path

This path requires the admitted binary64 interval execution environment; other runtime environments keep their existing recovery path

The runtime probe is HPDFHasBinary64FloatEnvironment out of HPDFObjs: on 64-bit x86 targets it reads the live MXCSR and 8087 control state, checks the rounding mode and, optionally, the precision and exception-mask bits, so a changed floating-point environment keeps the fast interval paths disengaged

Ideal field bounds are separate from reader lookup, floating-point branch selection and exact-edge anti-aliasing; the finite profile does not promise identical rasterisation at every transform, scale or discontinuity

Mixed horizontal and vertical gradients

A source-atop, destination-atop, xor or plus graph can contain both horizontal and vertical Pad gradients after supported axis-preserving transforms

The writer evaluates each gradient in its own direction and bounds the complete colour and opacity field over rectangular regions before emitting two triangles per region

The mixed-axis path supports smooth stop sequences, rectangular local clips and real orthogonal glyph contours with nonzero-winding holes

Palette colours retain linear-light composition, whilst the caller's opacity applies to the completed glyph

Subdivision follows certified source variation and keeps the existing work, cell, byte, memory and object limits; inputs outside those bounds keep their existing recovery path

Existing admitted same-axis graphs use their previous path and output representation

Oblique and skewed linear gradients

Version 2.1176.0 adds bounded native composition for smooth Pad gradients whose three defining points produce an oblique or skewed direction

The writer preserves the three-point projection along the first-to-third-point line, including gradient-only affine transforms, rather than treating every gradient as a perpendicular projection onto its first-to-second-point line

Exact parameter ranges and outward error bounds drive subdivision, with conservative interval bounds when a region crosses a smooth stop

The complete graph retains linear-light colour, authored opacity, rectangular local clips, orthogonal glyph holes and caller opacity under the existing authoring limits

Gradient transforms may be general affine transforms, whilst real glyph and clip contours must still satisfy the supported horizontal and vertical geometry profile

Already admitted same-axis and mixed horizontal/vertical graphs keep their earlier paths

Bounded regular radial gradients

Version 2.1177.0 adds native evaluation of two-circle Pad gradients inside bounded extended composite graphs

The writer retains the greatest gradient parameter with a positive original radius, including decreasing-radius, equal-radius strip and tangent linear-root configurations

General gradient-only affine transforms map the sampling region back to the original circles, preserving elliptical and skewed appearances without approximating them as circles with one scaled radius

Accepted cells have certified colour and opacity bounds under the existing authoring limits, with authored alpha, orthogonal local clips and caller opacity retained

This path covers regions where the complete graph can be certified within those limits; unsupported radial support boundaries remain unfinished compatibility work and may keep the older output path

It does not establish complete general radial composite compatibility or a shared reader anti-aliasing rule at singular boundaries

Centre-containing concentric gradients

Version 2.1177.1 keeps eligible concentric Pad composites in the native path when their centre lies inside the glyph

Local adaptive regions concentrate subdivision near the centre whilst preserving the existing region, coordinate, byte, work, memory and object limits

The complete encoded colour and opacity fields retain independent continuous error bounds, including non-smooth centre-touching regions and their one-sided limits

The isolated exact centre point has no positive-radius circle in the strict source algorithm; its pointwise value and universal reader anti-aliasing equivalence remain separate compatibility boundaries

Nonconcentric support rays and strip boundaries that the complete graph cannot certify still keep their existing recovery path

Source-atop radial support cones

Version 2.1177.2 preserves the uncovered backdrop in eligible source-atop composites whose radial source covers only a cone-shaped part of the glyph

The original two-circle family determines source coverage independently of the colour calculation, so colours are not interpolated across the support boundary

The bounded profile has a horizontal increasing-radius Pad source with two stops and one constant positive alpha, including an opaque source, over a vertical two-stop Pad backdrop with constant positive alpha

The source circles and the rectangular effective clips stay authored, the source clip covers the backdrop clip and exact parameter normalisation, colour bounds and the existing resource limits determine admission

Version 2.1197.2 keeps that native cone when the source transform contributes a linear part other than identity, including scaling, rotation, axis exchange and shear

The cone geometry stays in paint space whilst the form matrix carries the linear part back to glyph space, so the authored coverage, backdrop and opacity survive instead of falling back to the older function-based path

Identity and translation-only source transforms keep their previous output, and the same resource limits still determine admission

Uncovered regions retain the backdrop, whilst supported regions retain linear-light source-atop colour and the destination opacity; caller opacity applies to the completed glyph once

Qualifying output stays native and vector-based without a raster callback or an increase in the renderer's default operation budget

Already admitted regular and concentric fields keep their previous mesh path, and cancellation or later resource edits preserve transaction rollback

Version 2.1178.8 improves eligible near-ray colours by keeping the radial colour field on its canonical normalised horizontal domain whilst the physical bounds and original-circle mask retain authored coverage

The colour formula, vertical backdrop interval, source geometry, palette and both opacity stages remain the same; the representation lets readers approximate the field on a stable normalised extent

The finite compatibility repair covers the retained shifted-centre near-ray case and its original cone controls; arbitrary matrices, exact-ray anti-aliasing and all subpixel positions remain separate compatibility boundaries

Regular sweep gradients

Version 2.1178.0 adds bounded native vector composition for eligible smooth Pad sweep gradients, including reverse angle spans, angles outside one revolution and general gradient-only affine transforms

The original centre and selected angles determine the angular parameter; the writer preserves the signed span and evaluates the complete graph in linear-light premultiplied colour before encoding the final RGB and opacity fields

Outward angular and derivative bounds drive local subdivision under the existing authoring limits, retaining rectangular clips, orthogonal glyph holes and caller opacity

Regular angular regions away from the centre and zero-angle branch cut can use this path when their complete colour and opacity fields pass admission; centre and zero-ray boundaries, arbitrary equal-angle Pad sectors and repeated-offset sweep jumps remain separate compatibility work

THPDFCOLRv1Paint appends StartAngleFraction, EndAngleFraction and HasAngleFractions to retain selected values before conversion to radians; these are biased half-turn fractions, so the selected angle in turns is (fraction + 1) / 2

The existing StartAngle and EndAngle fields retain their Single-precision radian values; variable fractions retain the available Double variation result rather than claiming exact real-number variation arithmetic

The public record size changes in this release: rebuild dependent Pascal units, packages and C++Builder libraries and regenerate headers together before using the new fields

Equal-angle Pad sectors

Version 2.1178.1 preserves the first and last colours of eligible Pad sweep gradients when their selected start and end angles are equal

Quarter-turn sector boundaries at 90, 180 and 270 degrees support axis-preserving affine transforms, including reflections and axis exchange; exact transformed-centre cuts retain each sector's own colour and opacity

Equal angles at or below zero degrees use the last colour throughout the sampled revolution, whilst equal angles at or above 360 degrees use the first colour

The complete graph retains linear-light Porter-Duff composition, independently authored endpoint opacity, real orthogonal holes and caller opacity; intermediate stops, including repeated offsets, do not change the collapsed first and last colours

Each open region and its saved boundary vertices use the same one-sided sector value, avoiding a colour ramp across the discontinuity and retaining the existing resource and cancellation limits

Already admitted regular sweep fields keep their decoded RGB and opacity mesh bytes

The oblique source-atop extension below covers a separate rectangular profile; other arbitrary equal-angle graphs, exact shared-ray and centre-point values and universal reader anti-aliasing equivalence remain separate compatibility boundaries

Oblique equal-angle source-atop fields

Version 2.1178.2 preserves eligible equal-angle source-atop colours under general gradient-only affine transforms, including reflections, shear and non-quarter-turn selected angles

The original source centre and counter-clockwise angle determine which endpoint colour applies; the saved predicate retains exact source-coordinate coefficients and the selected threshold without shifting the authored ray

The source has a rectangular effective clip covering a vertical two-stop Pad backdrop with constant positive opacity, and the backdrop's visible rectangle lies within its stop interval

Independent first and last source opacity, including transparent and opaque endpoints, and repeated endpoint offsets retain their original composition; the completed destination opacity and caller opacity each apply once

Qualifying output stays native and vector-based through a compact source-driven field, preserving linear-light composition without interpolating colours across the sector boundary

Admission requires exactly representable source predicate coefficients and threshold, bounded intermediates and certified saved colour coefficients over the complete backdrop interval

The admitted colour range stays in the nonlinear sRGB segment; darker ranges, source holes, other operators and broader graph combinations keep their existing paths and separate compatibility scope

Saved-field colour bounds within a selected sector are separate from the conditional floating-point consumer model; that model does not establish every reader's matrix, angle, power or edge behaviour

Existing authoring and renderer limits are unchanged, previously admitted sweep fields keep their earlier output, and later resource mutations and publication cancellation retain transaction rollback

Exact shared-ray and centre values and universal anti-aliasing equivalence remain unfinished compatibility work

Destination-atop source coverage

Version 2.1178.3 preserves eligible equal-angle destination-atop fields over the complete source rectangle, including the source-only area outside the backdrop

The first and last source alpha values must be the same positive value; that source opacity applies once to the completed glyph, whilst the overlap retains the destination-atop colours and the outer regions retain the source colours

The source rectangle covers a vertical two-stop Pad backdrop with constant positive alpha, and the overlap stays within the backdrop stop interval and the admitted nonlinear sRGB range

Exact non-overlapping rectangular regions cover the source outside the backdrop, including coincident bounds and edges with no outer region; each region has its own bounded native field window

Reflections, non-quarter-turn angles, repeated endpoint stops and caller opacity retain the original source-coordinate and compositing semantics

Equivalent unit multiplications are removed from the destination-atop calculator without changing its predicate, allowing the qualified full-source profile to fit the unchanged native operation budget

Previously admitted source-atop fields keep their saved output; publication cancellation and mutations of every new shading dictionary retain transaction rollback

Other graph combinations remain separate compatibility work, along with exact shared-ray, centre and universal reader anti-aliasing behaviour

Xor source coverage and opacity

Version 2.1178.4 preserves eligible equal-angle xor fields across the complete source, retaining source-only colour and opacity outside the backdrop

The first and last source alpha values must be the same positive value, and the source rectangle covers a vertical two-stop Pad backdrop with constant positive alpha

Within the overlap, opacity is SA*(1-DA)+DA*(1-SA); source-only regions keep SA, so neither region is assigned the other region's opacity

Overlap colours retain the normalised xor mixture in linear light, whilst outer regions retain the original source colours; caller opacity applies to the completed glyph once

The admitted alpha and rectangle values must be represented exactly, the overlap opacity must be positive, and the existing selected-angle, affine-predicate and nonlinear sRGB colour bounds still determine admission

Reflected transforms, non-quarter-turn angles, repeated endpoint stops and coincident rectangles retain their original source semantics without increasing resource limits

Previously admitted source-atop and destination-atop fields keep their saved output, and both shading and opacity resources retain mutation rollback and publication cancellation

Other graph or coverage combinations, exact shared-ray and centre values, and universal reader mask or anti-aliasing behaviour remain separate compatibility work

Opacity varying between angular sectors

Version 2.1178.5 preserves eligible destination-atop and xor fields when the first and last source stops have different positive alpha values

The original selected angle determines both colour and opacity; each angular sector keeps its own source alpha across the complete source rectangle

Destination-atop keeps the selected source alpha in the overlap and source-only regions; xor uses SA*(1-DA)+DA*(1-SA) within the overlap and keeps SA outside the backdrop

Colour retains the corresponding premultiplied linear-light mixture, including the normalised xor weights, and caller opacity applies to the completed glyph once

The bounded profile has a source rectangle covering a vertical two-stop Pad backdrop with constant positive alpha; exact source-coordinate transforms, positive overlap alpha and the existing nonlinear sRGB colour bounds determine admission

Source-coordinate fields retain reflected transforms, non-quarter-turn selected angles, repeated endpoint stops and coincident bounds without increasing the default native rendering budgets

Previously admitted fixed-opacity source-atop, destination-atop and xor fields keep their saved output; colour and opacity resource edits and publication cancellation retain transaction rollback

Broader stop sequences and graph or coverage combinations, exact angular boundaries and centre values, and universal matrix, mask and anti-aliasing equivalence remain separate compatibility work

Sweep centres, angular seams and repeated stops

Version 2.1178.6 preserves eligible source-atop sweep colours across a centre-containing field and the positive-X seam, including the genuine discontinuity between the final and first angular colours

Repeated stop offsets retain their stable order: each interval uses the last stop at its lower offset and the first stop at its upper offset, and an exact offset selects the following interval

Below the first offset the first colour is retained, whilst the final offset and later positions retain the last colour; no transition is inserted across a jump

The original selected angle is sampled from zero up to one revolution, with start and end angles kept in their authored range, including reverse spans and angles beyond one revolution

The bounded profile requires one constant positive source alpha and a source rectangle covering a vertical two-stop Pad backdrop with constant positive alpha; exact source transforms and per-interval colour bounds determine admission

The completed field evaluates the corresponding premultiplied source-atop colour before encoding, retains the backdrop opacity and applies caller opacity once

Previously admitted sweep meshes and equal-angle fields keep their earlier output; default budgets, direct-resource mutation rollback and publication cancellation remain intact

The calculator remains defined at its centre through a zero-angle convention; this does not assign a unique normative centre colour to all converging rays or establish arbitrary reader seam, jump or anti-aliasing equivalence

Other operator, opacity, coverage and graph combinations remain separate compatibility work

Sweep colours with varying source opacity

Version 2.1178.7 preserves eligible source-atop sweep colours when source opacity varies between stops, including centre-containing seams and repeated-offset colour or opacity jumps

The complete source-atop mixture follows both the premultiplied source colour and its changing opacity; the background contribution therefore changes with the same angular interval

Each stop can be transparent or opaque, and matching first and last alpha values do not hide different opacity values in intermediate stops

Palette opacity remains part of the effective source alpha, including values that are not exactly representable as Single; no division by source alpha is required at a transparent endpoint

The bounded profile retains a source rectangle covering a vertical two-stop Pad backdrop with constant positive alpha, stable stop order, exact admitted source transforms and the existing per-interval colour bounds

The completed glyph keeps the destination opacity and applies caller opacity once, including reflected transforms, reverse angle spans and authored angles beyond one revolution

Previously admitted constant-opacity angular and equal-angle fields keep their saved output; native budgets, direct-resource mutation rollback and publication cancellation remain unchanged

Other operators, broader graph or coverage combinations and universal centre, jump, matrix or reader anti-aliasing behaviour remain separate compatibility work

Source-atop sweep fields with varying backdrop opacity

Version 2.1207.13 emits eligible source-atop regular and equal-angle sweep fields as a single vector root Form when a vertical two-stop Pad backdrop varies between two positive opacity values

Instead of falling back to a 16-Form linear-light transparency chain whose premultiplied source layer can be attenuated by the backdrop under external PDF readers, the single-root program maps the world Y coordinate through the exact rational backdrop-alpha weight before evaluating the premultiplied source-atop colour

A dedicated DeviceGray luminosity soft mask evaluates the linear two-stop backdrop opacity ramp across the shared domain whilst preserving the single page Form XObject and caller opacity contract

Admitted regular 360-degree sweeps, centre-containing seams, varying source opacity and sheared or axis-aligned equal-angle rays with arbitrary positive sector widths all share this single-Form representation

Repeated-offset hard stops

Version 2.1168.1 keeps real colour and alpha jumps in eligible common-axis Pad composites

Amongst a group of stops sharing one offset, interpolation below the offset uses the first stop and interpolation above it uses the last; intermediate stops at that offset alter neither side

Repeated first or last offsets preserve the corresponding Pad extension colours; should all offsets coincide, the result is the first colour below the offset and the last colour above it

Reverse-axis and axis-exchange transforms retain the source direction, with independent endpoint colours on each side rather than a ramp across the jump

Colour-error certification applies to each nonempty region and its one-sided limits; it imposes neither a uniform pointwise bound across a discontinuity nor a shared anti-aliasing rule at an exact reader edge

Clear empty support around Pad hard stops

Version 2.1180.1 prevents stray dark or coloured pixels in the empty area around eligible common-axis Pad hard-stop composites

The writer retains the original colour and opacity fields and applies a separate binary native support field, including empty cells, without moving any source boundary

First and last repeated offsets, all-coincident stops, multiple jumps, reverse spans and axis exchange retain their authored colours and opacity under the same resource limits

This repairs the retained fully empty pixel footprints; exact jump-point side selection and arbitrary reader anti-aliasing remain separate compatibility boundaries

Limits and recovery

Preparation bounds graph occurrences, outline edges, subdivisions, exact arithmetic, output bytes, work and memory before the resources publish together

Cancellation and failed admission preserve the document's existing atomic publication and recovery contracts; renderer operation limits are unchanged

Isolated exact radial tips and unsupported support boundaries, uncertified sweep centres and angular jumps, non-axis or mixed-axis repeated-offset jumps, broader periodic combinations, nonorthogonal or curved outlines and other blend operators keep their existing paths and their own compatibility boundaries

This finite extension establishes neither unrestricted native COLRv1 rendering nor equivalence with arbitrary external blend modes

See Native COLRv1 Solid Composite Colours and COLRv1 Gradient Painting