Seasons' Greetings from wheniwas19!
While planning our little trip to see family for Christmas, I thought about a little something something to have for anyone who reads this blog.
Because the build is randomly generated, it takes a while to get to something coherent, so here's a screenshot.
*Edit*
Thanks to a few phrases from my father-in-law, I had to crack this open to make some changes;
1. There's an initial navigation to choose the animated build over just splashing the page randomly with specific numbers of iterations.
2. You can go back and start over.
3. I used setTint instead of Greensock's TweenLite to save on processor cycle(s).
Thanks, John. I hate thinking I haven't done enough. Mind you, there are a few more things I'd like to do but I might save that for another project.

If you do have time on your hands and want to see it in action, click here.
So, Merry Christmas and Happy New Years.
*Edit*
I noticed some weirdness with this thing. Like when it finished it's loop, it would remove the last item(s) and not add them to the Bitmap Object. Looked into it and discovered I ignore the last set of items and just snapshot the ones before them. Fixed that.
Just to explain what's going on under the hood;
Step 1. place an MC on the stage. In this case, MERRY *LOGO* CHRISTMAS. Change it's visibility to false
Step 2. randomly locate a pixel on the stage and sample the color of that pixel.
Step 3. place a random MC on the stage at that location and tint it to the color of the pixel.
Step 4. after 10 iterations, draw those clips to a bitmap and remove them (the clips). Increment a second iteration counter.
Step 5. after 10 iteration on the second counter, draw the bitmaps to an overall bitmap and trash them (the bitmaps)
Step 6. rinse and repeat.
0 Comments:
Post a Comment
Links to this post:
Create a Link
Home