Movie Masher

open source video editing tools for your site

HomeExamplesFAQDocumentationDownload

Adjust Effect Media

Tag Attributes: editable, brightness, brightnessfade, contrast, contrastfade, hue, huefade, id, fade, length, saturation, saturationfade, symbol, type

The Adjust module can perform several different visual adjustments to the underlying tracks at once, producing a wide variety of effects. Its core attributes are brightness, hue, saturation and contrast which can all be targeted by Slider controls. The fade attribute is also supported, and each of the core attributes has a corresponding attribute like brightnessfade and huefade which controls the starting point of that value for the tween.

If all attributes are made editable (by including them in the editable attribute of the media tag), then you've got a pretty advanced effects generator. Typically the module is also reused to create several simplified effects by supplying default values for each attribute rather than making them editable. For instance, specifying a default value of 2 for both the contrast and saturation attributes would give you a simple 'intensify' effect.

The adjust effect relies heavily on the ColorMatrix class by Mario Klingemann, as a simpler interface to Flash's ColorMatrixFilter class.

© Movie Masher 2006-2010