Made convolutions tileable, added test for tweening hue shift.

This commit is contained in:
ippo615
2013-07-23 19:10:52 -04:00
parent 4d3575ecea
commit 46eff4dec5
2 changed files with 32 additions and 6 deletions

View File

@@ -1480,8 +1480,24 @@ Test.Modules.IMAGE = {
stage.add(layer);
darth.setFilter(Kinetic.Filters.ShiftHue);
darth.setFilterHueShiftDeg(90);
darth.setFilterHueShiftDeg(360);
layer.draw();
var tween = new Kinetic.Tween({
node: darth,
duration: 5.0,
filterHueShiftDeg: 0,
easing: Kinetic.Easings.EaseInOut
});
darth.on('mouseover', function() {
tween.play();
});
darth.on('mouseout', function() {
tween.reverse();
});
var dataUrl = layer.toDataURL();
//console.log(dataUrl);
testDataUrl(dataUrl, 'shift hue filter', 'problem with hue shifting filter.');