Hi !
This PR extends the support for rounded rectangles by allowing different radius for each corner.
Two public methods are added : RoundedRect2() and ClipRoundedRect2()
It also rewrites the underlying code : the logic shared between both methods is extracted in roundedRectPath(), to avoid code duplication.
Any comments are welcomed; in particular, the names of the new methods could probably be more explicit.
Hi ! This PR extends the support for rounded rectangles by allowing different radius for each corner. Two public methods are added :
RoundedRect2()
andClipRoundedRect2()
It also rewrites the underlying code : the logic shared between both methods is extracted inroundedRectPath()
, to avoid code duplication.Any comments are welcomed; in particular, the names of the new methods could probably be more explicit.
Thanks in advance for the review ! Benoit K.