[squeak-dev] The Inbox: Graphics-ct.420.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Sep 20 17:51:56 UTC 2019
A new version of Graphics was added to project The Inbox:
http://source.squeak.org/inbox/Graphics-ct.420.mcz
==================== Summary ====================
Name: Graphics-ct.420
Author: ct
Time: 20 September 2019, 7:51:45.343726 pm
UUID: 639154ec-e7c5-1346-8da0-e2180c88613e
Ancestors: Graphics-ct.419
Add random functions for Rectangle
Try out: [Morph new openInWorld; center: World bounds randomPoint]
=============== Diff against Graphics-ct.419 ===============
Item was added:
+ ----- Method: Rectangle>>randomPoint (in category 'random') -----
+ randomPoint
+
+ ^ self randomPoint: Random new!
Item was added:
+ ----- Method: Rectangle>>randomPoint: (in category 'random') -----
+ randomPoint: aGenerator
+
+ ^ self pointAtFraction: aGenerator next @ aGenerator next!
More information about the Squeak-dev
mailing list
|