Archives for: September 2011, 25

25/09/11

Permalink 00:46:30, by Badim Email , 92 words   Russian (RU)
Categories: flash games contest

Code sharing: Filters - Bright, Saturation, Hue

If someone is looking for easy way to use class for filters - Bright, Saturation, Hue, here are my adaptation.

Very easy to use:
import badim.CFilters;
CFilters.getHueFilter(180) - returns Hue filter with angle 180 and cache it. So requesting that filter again will be instant. But pay attention if you are going to animate via filter properties then you will have to make a copy of it first. But I usually always animating via filter instances - they already cached anyway =)

Showcase - you can see my game - Red Storm:

September 2011
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Search

Protect your SWF Files

XML Feeds

Last Comments

powered by b2evolution free blog software