ZMYaro / paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
https://paintz.app
53 stars 11 forks source link

The pencil tool is sometimes half a pixel off #230

Closed ZMYaro closed 2 years ago

ZMYaro commented 2 years ago

The pencil tool moves to the next pixel right or down. and the line tool jumps pixels when smooth edges is turned off.

ZMYaro commented 2 years ago

It appears the line tool issue is just a weirdness of the de-anti-aliasing, so if that is going to be filed at all, it should be a separate bug report. The pencil tool issue was not flooring the pointer coordinates until they had already been automatically rounded by the de-anti-aliasing behavior for all drawing tools.

ZMYaro commented 2 years ago

Fixed in https://github.com/ZMYaro/paintz/commit/bbf0785f10fcbb61da7b1519f25c5bd5c3f3d781.