ActiveDen

How do you do this?

2 posts
  • Has been a member for 0-1 years
  • Exclusive Author
PixelburnUK says

The pixelation/grid effect on the backgroung image seen here:

http://activeden.net/item/xml-template-v9/full_screen_preview/678098

How do you do this and why? I’ve seen it a lot on full screen flash sites with large background images (usually more noticable but this is the best I could find right now). It looks really nice but wondered if it was something to do with blowing up a smaller image to save Kbs or if it was just a trend?

I’d be interested to know how it’s done and why. I’m not a webcoder, more a motionographer.

4 months ago
535 posts
  • Has been a member for 3-4 years
  • Beta Tester
  • Sold between 1 000 and 5 000 dollars
dimumurray says

There are probably lots of ways to implement that effect, but I can only think of two at the moment. The simplest is to overlay the image with a translucent *.png that has a checkered pattern. The other more complicated method is to create a custom filter via the BitmapData class.

3 months ago
1022 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
FlashTang says

^ I think png is the best way to go ;)

3 months ago
1236 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 200 and 499 users
LGLab says

Something like this, import a small transparent grid pattern png in library and give it a class name of Grid then:

var sp:Sprite = new Sprite();
sp.graphics.beginBitmapFill(new Grid(0, 0));
sp.graphics.drawRect(0, 0, 2000, 2000);
sp.graphics.endFill();
addChild(sp);

I prefer to just draw it once and quite large to cover all screen res. instead of redrawing it on every stage resize but there could be a better way.

I think it’s just to reduce the “impact” of the background image especially with bright images so it’s easier to see the content.

3 months ago
1301 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Croatia
  • Referred between 1 and 9 users
Tean says

If I had a penny for every time flash file doesnt spit a debug error, I would be no richer.

3 months ago
2 posts
  • Has been a member for 0-1 years
  • Exclusive Author
PixelburnUK says

Thanks for the replies, it seems it’s a lot more basic than I thought!

3 months ago
3678 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Brazil
  • Referred between 1 and 9 users
tsafi says

Something like this, import a small transparent grid pattern png in library and give it a class name of Grid then:
var sp:Sprite = new Sprite();
sp.graphics.beginBitmapFill(new Grid(0, 0));
sp.graphics.drawRect(0, 0, 2000, 2000);
sp.graphics.endFill();
addChild(sp);
Its more powerful this way, but I will do it base on stage size and handle it on re-size(many avoid this due to clearance issue on the memory on the remove child ) + you can do some cool tricks with it like using shape greed or overlay your image with color base on your BitmapFill Rect
3 months ago
by
by
by
by
by