Revision: 1064
Author: allain.lalonde
Date: Tue Aug 31 11:28:13 2010
Log: JS: Adding some scaling to the images example.
http://code.google.com/p/piccolo2d/source/detail?r=1064

Modified:
 /piccolo2d.js/trunk/examples/images.html

=======================================
--- /piccolo2d.js/trunk/examples/images.html    Tue Aug 31 09:03:30 2010
+++ /piccolo2d.js/trunk/examples/images.html    Tue Aug 31 11:28:13 2010
@@ -60,8 +60,8 @@
               var rowHeight = 0;
               var cols = 0;
               for (var i=0, n=this.children.length; i < n; i++) {
-                this.children[i].translate(currentX, currentY);
-                currentX += this.children[i].bounds.width + 10;
+ this.children[i].translate(currentX, currentY).scale(Math.pow(0.9, cols)); + currentX += (this.children[i].bounds.width + 10) * Math.pow(0.9, cols);
                 rowHeight = this.children[i].bounds.height;

                 cols += 1;

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to