Files
vectorcraft/crates/color/src
Dylan M. Taylor 67ef83f155 Gradients: midpoints and freeform points find their stops by binary search
A gradient whose stops are not strictly increasing (repeated offsets, or
a file's unsorted stops) sampled each Classic off-centre midpoint, and
each freeform point when recoloring, by scanning the stops from the
start, so many stops and points cost their product. Such stops now get
an index of the furthest offset reached so far, which never decreases,
and each sample finds the pair of stops sample() would pick by binary
search, giving the same colour for any order of offsets.
2026-11-02 20:39:15 -05:00
..