Compose multiple operations into a single Postprocess function
Operations are executed sequentially in the order provided.
Array of operations (instances or plain functions)
Composed Postprocess function
const composed = chain( new GridOp(), new TextOp(), (ctx, w, h) => { ctx.globalAlpha = 0.5; }); Copy
const composed = chain( new GridOp(), new TextOp(), (ctx, w, h) => { ctx.globalAlpha = 0.5; });
Compose multiple operations into a single Postprocess function
Operations are executed sequentially in the order provided.