Effect Nodes ============ .. automodule:: libavg.avg :no-members: .. autoclass:: BlurFXNode Blurs the node it is applied to. Corresponds to the Gaussian Blur effect in Photoshop. .. py:method:: setParam(radius) Sets the width of the blur. This corresponds to the radius parameter of photoshop. .. autoclass:: ChromaKeyFXNode A high-quality realtime chroma key (greenscreen or bluescreen) effect. Can be configured by using the :program:`avg_chromakey.py` script. The effect is carried out in the HSL colorspace (http://en.wikipedia.org/wiki/HSL_and_HSV). .. py:attribute:: color The color to key out. Pixels of this and similar colors are made transparent. .. py:attribute: erosion Removes single non-keyed-out pixels in larger transparent areas. Values > 1 remove larger areas. Useful for removing camera noise. .. py:attribute:: htolerance Hue tolerance for the key color. .. py:attribute:: ltolerance Lightness tolerance for the key color. .. py:attribute:: softness :py:attr:`softness` > 0 causes pixels with a color close to the keyed-out colors to become partially transparent. Greater values increase this effect. .. py:attribute: spillthreshold Often, people in greenscreen studios aquire a greenish tint. Spill removal works against this by desaturating pixels that are close to the key color. Larger values cause more desaturation. .. py:attribute:: stolerance Saturation tolerance for the key color. .. autoclass:: FXNode Base class for GPU-based effects. These effects can be added to any :py:class:`Node` by calling :py:meth:`Node:setEffect` .. autoclass:: NullFXNode Do-nothing effect. Exists primarily as aid in debugging libavg. .. autoclass:: ShadowFXNode Adds a shadow behind the node. .. py:method:: setParams(offset, radius, opacity, color)