Kition
photoMasks & Compositing

Blend Modes Sampler

The same gradient disc over the same texture in twelve blend modes, from Multiply and Screen to Difference and Luminosity.

Blend Modes Sampler — Photo sample rendered by Kition

A reference card for compositing. The base is one swatch, rendered clouds pushed through a gradient map with a dark-to-light ramp in Soft Light, saved with Define Pattern and laid under all twelve tiles as a pattern fill layer, so every tile starts from identical pixels. Each tile holds the same disc with a red-amber-blue gradient; only its blend mode changes. The page on top is a single shape with twelve rounded windows subtracted, and each label names its mode.

Steps

64 commands
showcase.yaml65 lines
steps:
  - { command: layer.new.layer, params: { name: Swatch Source }, as: src }
  - { command: tools.setColors, params: { foreground: "#000000", background: "#ffffff" } }
  - { command: select.rect, params: { x: 0, y: 0, width: 347, height: 250 } }
  - { command: filter.render.clouds, params: { seed: 61 } }
  - { command: image.adjustments.gradientMap, params: { stops: [[0, "#0b132b"], [0.45, "#1f7a7a"], [0.8, "#e9b44c"], [1, "#fff3d6"]] } }
  - { command: select.deselect }
  - { command: gradient.fill.create, params: { from: [0, 0], to: [347, 0], stops: [[0, "#000000"], [1, "#ffffff"]], mode: soft-light, opacity: 90 }, as: ramp }
  - { command: select.rect, params: { x: 0, y: 0, width: 377, height: 330 } }
  - { command: edit.definePattern, params: { name: Blend Swatch }, as: swatch }
  - { command: select.deselect }
  - { command: layer.delete, params: { layer: $ramp.layer } }
  - { command: layer.delete, params: { layer: $src.layer } }
  - { command: layer.newFillLayer.pattern, params: { pattern: $swatch.pattern, phase: [60, 170] }, as: base }
  - { command: layer.renameLayer, params: { layer: $base.layer, name: Base Texture } }
  - { command: shape.create, params: { kind: ellipse, rect: [138, 200, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Normal" }, as: d0 }
  - { command: shape.create, params: { kind: ellipse, rect: [515, 200, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Multiply" }, as: d1 }
  - { command: layer.setProps, params: { layer: $d1.layer, blend: "Multiply" } }
  - { command: shape.create, params: { kind: ellipse, rect: [892, 200, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Screen" }, as: d2 }
  - { command: layer.setProps, params: { layer: $d2.layer, blend: "Screen" } }
  - { command: shape.create, params: { kind: ellipse, rect: [1269, 200, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Overlay" }, as: d3 }
  - { command: layer.setProps, params: { layer: $d3.layer, blend: "Overlay" } }
  - { command: shape.create, params: { kind: ellipse, rect: [138, 530, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Soft Light" }, as: d4 }
  - { command: layer.setProps, params: { layer: $d4.layer, blend: "Soft Light" } }
  - { command: shape.create, params: { kind: ellipse, rect: [515, 530, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Hard Light" }, as: d5 }
  - { command: layer.setProps, params: { layer: $d5.layer, blend: "Hard Light" } }
  - { command: shape.create, params: { kind: ellipse, rect: [892, 530, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Color Dodge" }, as: d6 }
  - { command: layer.setProps, params: { layer: $d6.layer, blend: "Color Dodge" } }
  - { command: shape.create, params: { kind: ellipse, rect: [1269, 530, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Color Burn" }, as: d7 }
  - { command: layer.setProps, params: { layer: $d7.layer, blend: "Color Burn" } }
  - { command: shape.create, params: { kind: ellipse, rect: [138, 860, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Difference" }, as: d8 }
  - { command: layer.setProps, params: { layer: $d8.layer, blend: "Difference" } }
  - { command: shape.create, params: { kind: ellipse, rect: [515, 860, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Exclusion" }, as: d9 }
  - { command: layer.setProps, params: { layer: $d9.layer, blend: "Exclusion" } }
  - { command: shape.create, params: { kind: ellipse, rect: [892, 860, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Hue" }, as: d10 }
  - { command: layer.setProps, params: { layer: $d10.layer, blend: "Hue" } }
  - { command: shape.create, params: { kind: ellipse, rect: [1269, 860, 190, 190], fill: { gradient: { stops: [[0, "#ff4d6d"], [0.5, "#ffb703"], [1, "#3a86ff"]], angle: 0 } }, name: "Luminosity" }, as: d11 }
  - { command: layer.setProps, params: { layer: $d11.layer, blend: "Luminosity" } }
  - { command: shape.create, params: { kind: rect, rect: [0, 0, 1600, 1200], fill: "#f4f1ea", name: Page }, as: page }
  - { command: shape.create, params: { kind: roundedRect, rect: [60, 170, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [437, 170, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [814, 170, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [1191, 170, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [60, 500, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [437, 500, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [814, 500, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [1191, 500, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [60, 830, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [437, 830, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [814, 830, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: shape.create, params: { kind: roundedRect, rect: [1191, 830, 347, 250], radii: 14, fill: "#f4f1ea", addTo: $page.layer, op: subtract } }
  - { command: type.create, params: { x: 64, y: 458, text: "Normal", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Normal" } }
  - { command: type.create, params: { x: 441, y: 458, text: "Multiply", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Multiply" } }
  - { command: type.create, params: { x: 818, y: 458, text: "Screen", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Screen" } }
  - { command: type.create, params: { x: 1195, y: 458, text: "Overlay", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Overlay" } }
  - { command: type.create, params: { x: 64, y: 788, text: "Soft Light", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Soft Light" } }
  - { command: type.create, params: { x: 441, y: 788, text: "Hard Light", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Hard Light" } }
  - { command: type.create, params: { x: 818, y: 788, text: "Color Dodge", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Color Dodge" } }
  - { command: type.create, params: { x: 1195, y: 788, text: "Color Burn", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Color Burn" } }
  - { command: type.create, params: { x: 64, y: 1118, text: "Difference", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Difference" } }
  - { command: type.create, params: { x: 441, y: 1118, text: "Exclusion", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Exclusion" } }
  - { command: type.create, params: { x: 818, y: 1118, text: "Hue", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Hue" } }
  - { command: type.create, params: { x: 1195, y: 1118, text: "Luminosity", font: Inter, size: 28, weight: 600, color: "#22223b", name: "Label Luminosity" } }
  - { command: type.create, params: { x: 60, y: 100, text: "Blend Modes", font: Inter, size: 64, weight: 800, color: "#22223b", name: Title } }
  - { command: type.create, params: { x: 1540, y: 100, text: "one layer · twelve ways to mix", font: Inter, size: 30, color: "#6c6a7c", align: right, name: Subtitle } }

Checks

17 checks on every build
  • inspect.layers = {"count":29}
  • inspect.layers.26 = {"name":"Normal","kind":"Shape","blend":"Normal"}
  • inspect.layers.25 = {"name":"Multiply","kind":"Shape","blend":"Multiply"}
  • inspect.layers.24 = {"name":"Screen","kind":"Shape","blend":"Screen"}
  • inspect.layers.23 = {"name":"Overlay","kind":"Shape","blend":"Overlay"}
  • inspect.layers.22 = {"name":"Soft Light","kind":"Shape","blend":"Soft Light"}
  • inspect.layers.21 = {"name":"Hard Light","kind":"Shape","blend":"Hard Light"}
  • inspect.layers.20 = {"name":"Color Dodge","kind":"Shape","blend":"Color Dodge"}
  • inspect.layers.19 = {"name":"Color Burn","kind":"Shape","blend":"Color Burn"}
  • inspect.layers.18 = {"name":"Difference","kind":"Shape","blend":"Difference"}
  • inspect.layers.17 = {"name":"Exclusion","kind":"Shape","blend":"Exclusion"}
  • inspect.layers.16 = {"name":"Hue","kind":"Shape","blend":"Hue"}
  • inspect.layers.15 = {"name":"Luminosity","kind":"Shape","blend":"Luminosity"}
  • inspect.layers.27 = {"name":"Base Texture","kind":"Fill"}
  • inspect.layers.14 = {"name":"Page","kind":"Shape"}
  • Diagnostics: none, the kit's own check finds nothing wrong
  • The saved document opens again, and its thumbnail matches thumb.png within the render tolerance

Related

More Photo samples
photoMasks & Compositing

Double Exposure Portrait

A forest at dusk seen through a profile silhouette, built from layers clipped to one head-shaped path.

1100 × 1400 px; 13 layers; 2 type layers; 7 shape layers; 2 fill layers
photoMasks & Compositing

Moonlit Night Vignette

A full moon over a pine ridge, with rendered stars and clouds, framed by a vignette layer whose mask is a feathered ellipse.

1600 × 1000 px; 10 layers; 4 shape layers; 2 fill layers; 1 styled layer; 2 masks
photoMasks & Compositing

Wood Grain Type Clipping

A workshop sign whose letters show a wood texture through a clipping mask; the wood is a smart object with editable smart filters.

1600 × 900 px; 6 layers; 2 type layers; 1 shape layer; 1 fill layer; 1 smart object; 1 styled layer
photoPrint & Stationery

Bistro Dinner Menu

A printed dinner menu on fibre-textured paper, with serif headings, dotted price leaders and a double-rule border.

1000 × 1414 px; 51 layers; 31 type layers; 13 shape layers; 1 fill layer; 4 groups; 1 mask