Closed josoriom closed 1 year ago
We apply already rounding in some 'draw' methods like:
So I think all the draw methods should allow non integer numbers and we should use Math.round. Seems this should also be replaced by Math.round:
@targos @stropitek If you agree Javier could make a PR with test cases to allow all the draw methods to accept non integer numbers.
SGTM
Yes, we already decided to Math.round
in "draw" functions: https://github.com/image-js/image-js-typescript/issues/353#issue-1735752261
Code:
Result: