Brendan Duncan
Brendan Duncan
I haven't seen this issue before. I would suspect it's coming from the Flutter side of things, but I haven't used Flutter very much. I'm not sure what your weird...
I haven't implement rounded rectangles yet.
Yeah, it's on my list to do. Just have to figure out a good way to draw a rounded rectangle, and not call it squircle :-)
Thanks for the info. Guess I'll have to live with the word "squicle" being a thing. I was thinking of adding a radius arg to drawRect and copyCrop (and copyResizeCropSquare)....
A quick experiment: with a radius defining circles at the corners of rectangles, analytically discard pixels outside the corner circles to round the corners. Here's a test with a radius...
And here is an outline version using lines and circle arcs:  Much faster than dealing with splines. I'll go ahead and add a radius arg to drawRect, fillRect, and...
Never a lack of things to work on. I'm just doing some quick experiments while the cake is in the oven :-)
It does seem Material uses more rounded rectangles like I have above, and Apple uses more squircles. Guess I'll have to spend the time on cubic splines and path filling.
I'll take a look at improving the anti-aliased edges for compositing.
1) I'll make the antialiasing optional. 2) Maybe there's a better solution for antialiasing the edges of a curved crop, like specifying the background color that it will blend with.