Compositing#
Perceptual and subtractive mixers, backgrounds, and the shared dispatcher. Concepts: Color compositing.
Modes & dispatcher#
Combine a list of already-colorized RGB layers into a final image, applying a compositing mode / blend / gamma / inverse / background. |
|
Combine colorized RGB layers in a perceptual color space instead of by direct RGB channel addition. |
|
Combine colorized layers by compositing over a chosen background. |
|
Built-in immutable sequence. |
|
Built-in immutable sequence. |
|
Built-in immutable sequence. |
Backgrounds & paint mix#
Composite a black-background (premultiplied-alpha) colorized/combined image over a solid background color, or produce a transparent RGBA image. |
|
Per-pixel coverage (HSV-style "value") of a colorized layer. |
|
Vectorized sRGB -> RYB conversion (Sugita & Takahashi 2017). |
|
Vectorized RYB -> sRGB conversion (Sugita & Takahashi 2017). |
|
Vectorized sRGB -> CMYK conversion (standard, no UCR/GCR). |
|
Vectorized CMYK -> sRGB conversion. |
Lab / HSV / HSL helpers#
Convert an sRGB image (values in [0,1], shape (...,3)) to CIE L*a*b*. |
|
Convert a CIE L*a*b* image back to sRGB in [0,1]. |
|
Vectorized RGB to HSL conversion. |
|
Vectorized HSL to RGB conversion. |
|
Mix solid colors (not images) in a chosen color space. |
|
Convert a finished RGB composite to greyscale, e.g. to check how it will look in a B&W print. |
|
Simulate how an RGB composite appears with a color vision deficiency, to help pick layer colors that stay distinguishable for all viewers. |
Swatches#
Render the composite-mode-aware color-combination swatch. |
|
Circle centers/radii (pixel coords of a |
Transparent cutouts#
Build a transparent-sky RGBA cutout from an RGB (or RGBA) composite. |
|
Write an RGBA cutout to PNG or TIFF (format from the file extension). |
|
Show the cutout over several backgrounds (default: checkerboard, dark, light). |
|
Apply |
|
Recover an RGBA foreground from a composite flattened onto a known solid background color (un-premultiply) — the inverse of |
|
Composite an RGBA image onto a solid background color (the inverse of |
|
Rec. |
|
Build a soft alpha matte from a 2D intensity map. |
|
Soft grey checkerboard background for previewing transparency. |