Shinefilter

author:
Fabio
description:
Shine Filter for Starling 2.1
compatible:
v2.1
tag:
Shine, Shine Filter, FilterEffect
homepage:
https://gist.github.com/fabioacri81/ee3c2f172cdb4756e2db347edb9b57fa

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

Example of rgbTint [1,1,.7] and position being animated from 0 to -2.0:

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: 2018/06/19 00:47 by 177.180.106.92
 
Powered by DokuWiki