Shinefilter

Overview

This filter is just a conversion from the ShineFilter extension available as an extension for Starling 1.x. I re adapted for use in Starling 2.1.

Add sample source code like this:

// Example
var shineFlt:ShineFilter = new ShineFilter();
shineFlt.rgbTint = Vector.<Number>([1, 1, .7]);
_msgTextField.filter = new FilterChain(new GlowFilter(0xFF6600, 0.6, 2), shineFlt);
// or single filter
_msgTextField.filter = shineFlt;
 
// as per the old extension you can set also position, intensity and rgbTint

Changelog

  • 2017/05/19 08:15: First public version

Source Code

If you are using Gist, you can add the source code of your extension easily with the following code. Just replace the number in parenthesis with the Gist ID.

https://gist.github.com/fabioacri81/ee3c2f172cdb4756e2db347edb9b57fa

User Comments

Feel free to edit this part of the page if you want to add information that's lacking in the above description.
Questions are better asked in the forum, though.

  extensions/shinefilter.txt · Last modified: 2017/05/19 08:48 by jerrycomp
 
Powered by DokuWiki