Closed lafoxxx92 closed 2 years ago
This isn't how MS Paint works, with patterns in Black and White mode, and I don't plan on implementing it. It's complicated, although you suggest a reasonable way to do it, but there are merits to it working either way. Replacing a pattern may be intuitive, but it's also nice to have it simple and consistent, with no hidden semantics of a pixel belonging to a pattern or not.
Consider what happens when you save. Either:
Steps:
Actual: Only adjacent pixels of same color are Filled with new color
Expected: All Patterned area within specific boundaries (image/shape of other color) is affected by Fill tool, not just some lines of same color.
Implementation suggestions (not sure how it works, might be not relevant): Use some special (invisible) color to render the Pattern over it, treat this special (invisible) color like the regular color when editing.