Some people have been asking how I created these swf’s in the 1001 Things to do with Kirupa’s head battle:
[LIST]
[]Smiley head
[]Starry head
[*]Kirupa head[/LIST]and a few others that can be found in that thread. It’s not an entirely new idea - I’ve just come up with a variation and I’m pretty sure that people here will be able to improve it immeasurably. If you do create your own variation, then feel free to post your fla in here too.
So here’s a couple of fla’s to start you off.
I’ve added plenty of comments to the code so it should be easy enough to follow but here’s a quick rundown of how to create your own halftone images:
[LIST=1]
[]Use an ASCII art generator to create the data for your image. I used the one you can find here as it produced the ASCII data in the format I wanted it - http://www.lunatic.no/img2aschtml.php
[]Browse to your image, uncheck the colour option, then enter a User-defined ASCII gradient, e.g. 9876543210. Then click the convert button.
[]Cut and paste the ASCII code into the FLA - just remember to separate each line of code with
and to enter it as one single line of text.
[]And that’s it.
[]Apart from customising it, of course. You can change the movieclip to any graphic you want - I’ve included a few samples in the fla to give you an idea. Just open the Block movieclip and swap the symbol.
[]I’ve kept the fla’s simple so they’re easily understood but as you can see, both from the examples above and the comments, you can change pretty much anything - random start positions here, a little scripted motion there. Just give it a tweak and see what effects you can come up with.[/LIST]It also struck me that this is essentially the reverse of what Eilsoe has been doing with his ASCII generator. Whereas he came up with an fla to generate the ASCII code, this creates a halftone image from that same code. Maybe someone would like to have a go at combining the two projects?
Have fun with it.