Wave Filter

author:
Tadeu Sampaio and @yloquen
description:
Custom filter for Waves effect
compatible:
v2.3
tag:
filter, wave
homepage:
https://github.com/Tudumanu/Starling2-Wave-Filter

Overview

A custom filter for Wave effect, as an extension for Starling2

The Adobe Flash Plugin is needed to display this content.
//creating and configuring the WaveFilter
var waveFilter:WaveFilter = new WaveFilter();
var linear_source:WaveSource = new WaveSource(WaveSource.LINEAR, .01, .5, 50, 30);
var radial_source:WaveSource = new WaveSource(WaveSource.RADIAL, .02, 5, 60, 5, new Point(.3,.3), 1);
 
waveFilter.addWaveSource(linear_source);
waveFilter.addWaveSource(radial_source);			
starling.juggler.add(waveFilter);
 
 
//creating an Image and applying the filter
var imgBoat:Image = new Image(Texture.fromEmbeddedAsset(EmbeddedAssets.boat));
imgBoat.x = 50;
imgBoat.y = 30;
imgBoat.filter = waveFilter;
addChild(imgBoat);

Authors:

  • Original version for Starling 1.x: yloquen
  • Modified for Starling 2.x: TadeuBAS

More information:

Changelog

  • 2018/06/20 20:07: First public version

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 this forum post, though.

  extensions/wave-filter.txt · Last modified: 2018/06/20 20:58 by tadeubas
 
Powered by DokuWiki