LCDBitmap: A class version of Saburin’s LCD effect

The previous Saburin’s post is very impressive for me. But his code is a little difficult to use in my projects.
So, I created a class LCDBitmap based on his code to use a great effect more handily.
You can use it like:
addChild(new LCDBitmap(bitmapData));
A bitmapData is an instance of BitmapData you want to display. You can get same result by this simple code. In addition, you can customize a size or a margin of tiles displaying the RGB by passing 2nd or 3rd parameter.
addChild(new LCDBitmap(bitmapData, 4, 2));
In this case, the size is 4px and the margin is 2px.
Source was committed to the Spark project. And a Quick Demo was posted to the Wonderfl. Please check it out!
3 Comments
Wow, fast work !!
Thx yossy ;D
[...] 4 days its online already about 10 quite interesting blog posts about things like fractal painting, lcd effect, vector multiplication or adaptive [...]
[...] LCDBitmap by me – A class to display BitmapData like a LCD display. [...]