[squeak-dev] Re: Round rect drawing

Igor Stasenko siguctua at gmail.com
Fri Jul 24 07:51:58 UTC 2009


2009/7/24 Andreas Raab <andreas.raab at gmx.de>:
> Igor Stasenko wrote:
>>
>> IMHO, it is a dirty hack to draw rounded shapes, when drawing code
>> telling you to draw a rectangle.
>> This is plain wrong, especially for a canvas, who should perform any
>> actions strictly as they passed from outside by callers.
>> That's why i would prefer to never see things like
>> #roundCornersOf:during: again.
>
> Try it. It may give some pretty bad artifacts but you won't know before you
> try ;-)
>

Tried:

FormCanvas>>roundCornersOf: aMorph in: bounds during: aBlock
	^ aBlock value


don't see any rounded artifacts :)

> Cheers,
>  - Andreas
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list