UNPKG

@thi.ng/imago

Version:

JSON & API-based declarative and extensible image processing trees/pipelines

16 lines (15 loc) 250 B
const hsblProc = async (spec, input) => { const { h = 0, s = 1, b = 1, l = 0 } = spec; return [ input.modulate({ hue: h, brightness: b, saturation: s, lightness: l * 255 }), true ]; }; export { hsblProc };