« CPMStar Report ToolКонференции Осень-Зима 2011 »

Filters - Bright, Saturation, Hue

2011-09-21

Permalink 16:33:02, by Badim Email , 13 words   Russian (RU)
Categories: flash games, code

Filters - Bright, Saturation, Hue

Если кому нужны фильтры Bright, Saturation, Hue программно - вот класс.

Использовать просто:
import badim.CFilters;
CFilters.getHueFilter(180) - вернет hue фильтр с поворотом в 180. При этом он его закэширует и будет всегда возвращать ссылку на один и тот же фильтр. Если вы будете анимировать через изменение параметров фильтра - то не забудьте сделать копию. Хотя я анимирую через разные фильтры - все равно они кэшированы уже =)

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

3 comments

Comment from: sovik [Visitor]
Спасибо!
может и пригодится)
2011-09-21 @ 17:57
Comment from: Vlad [Visitor] · http://angry-animals.net/
а как дальше использовать значение, которое вернул метод CFilters.getHueFilter(180)?

заранее спасибо за помощь,
Влад
2011-10-23 @ 18:30
Comment from: Badim [Member] Email · http://www.elite-games.net
Vlad:
unit_mc.filters=[CFilters.getHueFilter(180)];
2011-11-09 @ 15:33

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)