The Trunk: MorphicExtras-kfr.253.mcz

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

The Trunk: MorphicExtras-kfr.253.mcz

commits-2
Karl Ramberg uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-kfr.253.mcz

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

Name: MorphicExtras-kfr.253
Author: kfr
Time: 24 February 2019, 2:43:46.160328 pm
UUID: 4eb29a5a-3d38-4464-bb7d-3b64e2ae2c4d
Ancestors: MorphicExtras-kfr.252

Create AnimatedImageMorph from array of images. Setter access for inter image delay to uniform value.

=============== Diff against MorphicExtras-kfr.252 ===============

Item was added:
+ ----- Method: AnimatedImageMorph>>fromImages: (in category 'private') -----
+ fromImages: anArray
+
+ images := anArray.
+ self setUniformDelay: 10.
+ self isOpaque: true.
+ self reset.!

Item was added:
+ ----- Method: AnimatedImageMorph>>fromImages:delay: (in category 'private') -----
+ fromImages: anArray delay: anInteger
+
+ images := anArray.
+ self setUniformDelay: anInteger.
+ self isOpaque: true.
+ self reset.!

Item was added:
+ ----- Method: AnimatedImageMorph>>setUniformDelay: (in category 'private') -----
+ setUniformDelay: anInteger
+       "set delay to a uniform value for all images"
+ delays := Array new: images size withAll: anInteger.!