CompositeFilter
class CompositeFilter<F0 : Filter, F1 : Filter>(val first: F0, val second: F1, firstSource: (List<ColorBuffer>) -> List<ColorBuffer>, secondSource: (List<ColorBuffer>, ColorBuffer) -> List<ColorBuffer>, firstParameters: F0.() -> Unit, secondParameters: F1.() -> Unit, useIntermediateBuffer: Boolean = false) : Filter(source)
Parameters
first
the filter that is applied first
second
the filter that is applied second
firstSource
a function that maps source color buffers for the first filter
secondSource
a function that maps source color buffers for the second filter
firstParameters
a function that sets parameters for the first filter
secondParameters
a function that sets parameters for the second fillter
useIntermediateBuffer
should an intermediate buffer be maintained? when set to false the first filter will write to the target color buffer