[squeak-dev] The Inbox: Graphics-ct.437.mcz
Marcel Taeumel
marcel.taeumel at hpi.de
Tue Sep 15 14:51:22 UTC 2020
Hmpf. Why can't we change Rectangle >> #center:extent: to use #/ instead of #//? What would break?
I am surprised that my values get rounded at that location. They get rounded at a later anyway. At least in the graphics system and in Morphic.
Best,
Marcel
Am 24.08.2020 21:04:26 schrieb karl ramberg <karlramberg at gmail.com>:
Scaling for morphs with TransformationMorph is a little weird.
If you rotate a SystemWindow and use the scale handle, the window scales as a form
Best,
Karl
On Mon, Aug 24, 2020 at 2:25 PM Stéphane Rollandin <lecteur at zogotounga.net [mailto:lecteur at zogotounga.net]> wrote:
> In my opinion, the integer/float arithmetic of Point and Rectangle is
> not really clear
Indeed.
In my own images I have implemented #preciseCenter: and similar methods
both in Pont and Rectangle to bypass rounding and work with floats.
But I do not think that transitioning to an overall new convention (like
getting rid of rounding altogether) is going to be safe. A lot of
morphic code assumes that rectangles are always about pixels and expect
their dimensions to be integers.
Stef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200915/371b6b47/attachment-0001.html>
More information about the Squeak-dev
mailing list
|