Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加了一个随机选择要涂色像素的选择模式
关于为什么需要这个功能,我觉得有以下两个原因:
Added a selection mode that randomly picks pixels to be colored.
As for why this feature is needed, I think there are two main reasons:
When operating quickly, the canvas may not refresh properly after coloring, causing the next coloring attempt to select the same area that was just filled. This wastes coloring opportunities. By randomly selecting from unfilled pixels instead, the probability of hitting the same pixel in such cases is much lower, which greatly reduces wasted coloring attempts.
If you complete a work from top to bottom, a large blank area will remain at the bottom during the process, and other users’ works may occupy the space you originally planned. With random coloring, however, the artwork gradually transitions from blurry to clear, allowing everyone to see the overall picture you’re creating much earlier.