ThinFilm
Iridescent thin-film edge
Props
Prop
Details
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the shape
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the shape
scalenumberDefault:
1Scale of the shape (1 = default size)
scalenumberDefault: 1Scale of the shape (1 = default size)
intensitynumberDefault:
1Rim brightness — values above 1 push the edge past white for HDR bloom
intensitynumberDefault: 1Rim brightness — values above 1 push the edge past white for HDR bloom
rimWidthnumberDefault:
1How far inward from the edge the iridescence reaches
rimWidthnumberDefault: 1How far inward from the edge the iridescence reaches
edgeSoftnessnumberDefault:
0.3Softness of the shape boundary
edgeSoftnessnumberDefault: 0.3Softness of the shape boundary
thicknessnumberDefault:
0.5Film thickness — higher values pack more spectral bands across the rim
thicknessnumberDefault: 0.5Film thickness — higher values pack more spectral bands across the rim
dispersionnumberDefault:
0.5How strongly colour separates around the perimeter (warm vs cool sides)
dispersionnumberDefault: 0.5How strongly colour separates around the perimeter (warm vs cool sides)
saturationnumberDefault:
1Spectral saturation — 0 = white rim, 1 = full iridescence
saturationnumberDefault: 1Spectral saturation — 0 = white rim, 1 = full iridescence
hueShiftnumberDefault:
0Rotate the spectrum to reposition the colours
hueShiftnumberDefault: 0Rotate the spectrum to reposition the colours
lightAnglenumberDefault:
300Light angle in degrees — sets which side of the rim runs warm vs cool
lightAnglenumberDefault: 300Light angle in degrees — sets which side of the rim runs warm vs cool
mode"rainbow" | "custom"Default:
rainbowRainbow uses the full iridescent spectrum; Custom cycles through your three chosen colours
mode"rainbow" | "custom"Default: rainbowRainbow uses the full iridescent spectrum; Custom cycles through your three chosen colours
colorAstringDefault:
#2b6fffFirst colour in the rim cycle
colorAstringDefault: #2b6fffFirst colour in the rim cycle
colorBstringDefault:
#ffffffSecond colour in the rim cycle
colorBstringDefault: #ffffffSecond colour in the rim cycle
colorCstringDefault:
#ff7a21Third colour in the rim cycle
colorCstringDefault: #ff7a21Third colour in the rim cycle
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklchColour space used to blend between custom colours
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklchColour space used to blend between custom colours
speednumberDefault:
0.1Speed at which the colours rotate around the rim (0 = static)
speednumberDefault: 0.1Speed at which the colours rotate around the rim (0 = static)
shapeShapeConfigDefault:
circleSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeShapeConfigDefault: circleSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeSdfUrlstringDefault:
""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.
shapeSdfUrlstringDefault: ""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.