mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Smart Blur's Edge Only and Overlay Edge modes marked a pixel when one of its four nearest pixels differed from it by more than Threshold, and Radius changed only the blur. The reference app's documentation says that Radius sets the size of the area searched for dissimilar pixels. A pixel is now on an edge when one of the pixels the search reads within Radius differs from it by more than Threshold and its channels, alpha included, add up to at least that pixel's. The search picks its neighbors as the Normal blur does, over the whole pixels of Radius and within it, and always reads the four nearest pixels. A color step gives a line about as wide as Radius on the side with the larger sum, and a Radius of one pixel or less gives the same edges as before. The edge modes' reach() includes the blurred copy that a wide Radius reads. On a 2,000 by 2,000 px image, Edge Only takes 0.49 s at Radius 10 and 0.34 s at Radius 100, and Normal takes 0.73 s and 0.39 s. Normal draws the same pixels as before. Docs: docs/target-app-parity.md.