The Trunk: Graphics-ct.420.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-ct.420.mcz

commits-2
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!