mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 05:24:44 +00:00
An envelope or the Warp effect cuts an image into triangle pieces that reach a little past their edges, so neighbors overlap and no seams show. On an image with alpha, the overlap drew that alpha twice: a 50% image came out about 75% opaque along every cell edge and diagonal. - The pieces now form a knockout group, and each piece is marked as a warp piece (`warp_piece`) whose knockout shape is its whole triangle, so where pieces overlap only the top one draws. - The canvas knocks each piece out by its triangle at full coverage. - SVG and PDF draw the pieces of a partly transparent image (its pixels, opacity, color mask or colorize paint) through one mask each, of the later triangles that reach it; pixels on a triangle's antialiased edge come out slightly lighter there. Pieces of an opaque image are drawn one over another as before. - SVG writes one copy of the image for pieces cut by opacity masks (Preserve Shape Using Transparency) too. - A cell count past the generated-object budget makes an empty group instead of overflowing. Docs: docs/target-app-parity.md.