[squeak-dev] The Inbox: Graphics-cbc.372.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 29 00:18:24 UTC 2017

A new version of Graphics was added to project The Inbox:

==================== Summary ====================

Name: Graphics-cbc.372
Author: cbc
Time: 28 March 2017, 5:18:09.019402 pm
UUID: 7b9783b1-87c5-3549-ac32-42acd6abcb12
Ancestors: Graphics-eem.371

Added method to allow creating a rectangle based on teh center of the rectangle.

=============== Diff against Graphics-eem.371 ===============

Item was added:
+ ----- Method: Rectangle class>>exactCenter:extent: (in category 'instance creation') -----
+ exactCenter: centerPoint extent: extentPoint 
+ 	"Answer an instance of me whose center is centerPoint and width 
+ 	by height is extentPoint. "
+ 	^ self origin: centerPoint - (extentPoint / 2) extent: extentPoint
+ !

More information about the Squeak-dev mailing list