mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 12:28:59 +00:00
Two quick quality-of-life options for logo and background-heavy imports: - Skip-white: near-white pixels (r,g,b >= threshold, default 230) are marked transparent in the output so they don't consume credits. Useful when the source has a white background you don't want to paint. - Paint-transparent: fully-transparent source pixels are treated as opaque white before quantization. Useful if the canvas background is white and you want empty regions of a logo to blend in. Both toggles compose with every existing dither method; paint-transparent runs first, so combining the two leaves originally-transparent pixels as skip (since they're synthesized white, then the skip-white pass drops them). UI adds the two checkboxes and a threshold slider shown only when skip-white is on. CLI gains --skip-white, --white-threshold, --paint-transparent. 4 new unit tests pin the behavior including the paint+skip interaction.