stained glass effect

stained glass effect applied to the studio's source frame — beforestained glass effect applied to the studio's source frame — afterSourceEffect

01/ ORIGIN

Cathedral glass was never painted like a picture. Coloured glass was cut into pieces and held in grooved lead strips called cames, so the dark lines running through a window are structural: without them the panel collapses. Twelfth and thirteenth century workshops at Chartres and the Sainte-Chapelle built entire narrative cycles inside that constraint, designing the leading as drawing rather than working around it. The effect imitates a load-bearing decision.

02/ SWEEP

PANE SIZE sweep

PANE SIZE 1: many small panes, detail surviving inside the leading
PANE SIZE 1pxPANE SIZE 1: many small panes, detail surviving inside the leading
PANE SIZE 2: the default, panes readable as separate pieces of glass
PANE SIZE 2pxPANE SIZE 2: the default, panes readable as separate pieces of glass
PANE SIZE 8: a few large panes, the subject reduced to flat shapes
PANE SIZE 8pxPANE SIZE 8: a few large panes, the subject reduced to flat shapes

03/ SPEC

This effect segments the image into flat-coloured regions and draws a dark border along every boundary, imitating cut glass held in lead. PANE SIZE runs from 1 to 8 pixels with a default of 2 and sets the segmentation scale, so it controls how many panes the image is broken into: low values keep facial detail across many small pieces, high values reduce a portrait to a few dozen. CONTRAST expands tone before segmentation, which decides how confidently the boundaries fall. In kott it renders in natural colour so the panes carry the source hue rather than a grey ramp.

PANE SIZE1 px to 8 px · default 2 px
CONTRAST0.2 to 3 · default 1.1

04/ FAQ

What is a stained glass effect?
A stained glass effect breaks an image into flat regions of colour separated by dark borders, imitating pieces of cut glass held together by lead strips in a cathedral window.
Why are the lines in stained glass dark?
They are lead. Coloured glass is cut and held in grooved lead cames, which are structural rather than decorative, so the dark lattice is what physically holds the panel together.
What PANE SIZE keeps a face recognisable?
Stay at 1 or 2. Above about 4 the panes grow larger than facial features, so eyes and mouth get absorbed into single flat pieces and the likeness goes.