ENTRY | DOWNLOAD | MANUAL | ONGOING | |
scaleTo()Scales an element to a scaling factor of x, y, z in the parent element's coordinate system. A scaling factor of 0.0 means inexistent, a factor of 1.0 original size, 2.0 double its original size. Optionally this method also takes a Tween or Thrust object. Tweens and Thrusts are carried out over the duration of multiple frames. Tweens stop at a predefined end value after a predefined time. Thrusts are carried out until canceled. >> The class reference elaborates on Tweens and Thrusts.
<sprite>.scaleTo(x, y, z)
<tag>.scaleTo(x, y, z) <tag>.scaleTo(x, y)
Relevant examples: tag.py , sprite.py , tag_all.py , sprite_all.py , ALL In ContextImmediates = ASpriteClass(self, 'sprite1') s.scaleTo(1.5, 1.5, 1.5) t = ATagClass(self, 'tag1') t.scaleTo(1.5, 1.5) Tweenss = ASpriteClass(self, 'sprite1') s.s.scaleTo(Tween(1.5, 1.5, 1.5, 2.0)) t = ATagClass(self, 'tag1') t.s.scaleTo(SineTween(1.5, 1.5, 1.0, 2.0)) |
|
Initiated by Stephan Hechenberger Thanks to CADRE's 103 |