[squeak-dev] The Trunk: Graphics-ct.420.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 13 15:31:00 UTC 2021


Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/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