CompositeFilter

constructor(first: F0, second: F1, firstSource: (List<ColorBuffer>) -> List<ColorBuffer>, secondSource: (List<ColorBuffer>, ColorBuffer) -> List<ColorBuffer>, firstParameters: F0.() -> Unit, secondParameters: F1.() -> Unit, useIntermediateBuffer: Boolean = false)(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