-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black&White mode not working as intended. #20
Comments
Most of this stuff, along with #7 and #6, should be easy, but it's all complicated by trying to make everything anti-anti-aliased. Antialiasing is the default and only option (except when scaling images) in the Canvas API, but aliasing, aside from being retro, has the practical benefit that the fill tool naturally avoids leaving ugly seams along the edges of shapes, without having to have a tolerance setting. I've been looking into using pixi.js for rendering shapes. It's not perfect: it doesn't support using an even-odd winding rule like mspaint uses, and 1px strokes on shapes don't work quite right... but it should definitely be a step up! Filling shapes with patterns seems to work in Chrome, Firefox, and Edge. Did you select a filled style in the tool options? The default is no fill.
|
I've made some progress on this. The line, curve, polygon, rectangle, rounded rectangle, and ellipse tools all now support patterns and aliasing. |
This is done. I finished this up last year for the Winter Update (the Winter theme has candy cane patterns in the palette 💈🎨 ) |
When changing Image -> Attributes -> Colors -> Black & White
A few things don't work correctly.
Namely the patterns don't draw the same way they did in the original paint, appear to work more like brushes. A single click with the paint tool produces the expected pattern, but clicking and dragging 'smears' the pattern.
Same issue applies with the line tool.
Rectangle appears to draw the border correctly, but is unable to fill.
Polygon does not draw the border correctly and cannot fill.
Same issues apply for ellipse and rounded rectangle.
The paint bucket/fill does not appear to work with the black & white patterns either.
Seeing as how airbrush works just fine with the black & white patterns I don't believe it would be too difficult to add that functionality to the paint tool.
The text was updated successfully, but these errors were encountered: