Flint Particle System Forum - Tween filter?2011-12-13T11:10:40+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Tween filter?http://flintparticles.org/forum/comments.php?DiscussionID=320&Focus=1106#Comment_11062010-02-10T02:51:08+00:002011-12-13T11:10:40+00:00con.cept.mehttp://flintparticles.org/forum/account.php?u=324
If I add a filter like this?
var colorMatrix:ColorMatrixFilter = new ColorMatrixFilter( [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0.99, 0 ] );
renderer.addFilter( ...
var colorMatrix:ColorMatrixFilter = new ColorMatrixFilter( [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0.99, 0 ] ); renderer.addFilter( colorMatrix);
How can i tween it?
renderer.filters always seem to stay empty.. but i can see it in: renderer.postFilters
If I use Gtween something like:
ColorAdjustPlugin.install(); new GTween(renderer, 3, {saturation:-100, contrast:70}, {repeatCount:0, reflect:true});
Does not work.. how I can access the object with the filter ?]]>
Tween filter?http://flintparticles.org/forum/comments.php?DiscussionID=320&Focus=1110#Comment_11102010-02-10T08:19:54+00:002010-02-10T08:20:09+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
The filters are, as you say, stored in the postFilters (default) or preFilters arrays. Every frame, they are applied to the bitmapData object used to render the particles. If you wish to modify a ...
colorMatrix.matrix = [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0.98, 0 ]; I don't know if or how you would do this with GTween.]]>
Tween filter?http://flintparticles.org/forum/comments.php?DiscussionID=320&Focus=1112#Comment_11122010-02-11T04:02:43+00:002011-12-13T11:10:40+00:00con.cept.mehttp://flintparticles.org/forum/account.php?u=324
Ah ok.. thx.. actually Gtween has some helper functions to make it easier but it only works on the object where it is added to the .filters array.. Is there anyway to expose this object they are the ...
Tween filter?http://flintparticles.org/forum/comments.php?DiscussionID=320&Focus=1115#Comment_11152010-02-13T13:21:06+00:002011-12-13T11:10:40+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
They're not added to any object's filters array. They are applied directly to the BitmapData object.