
SwiftUI Metal shader
Duotone
A magenta-to-midnight sky raked at 138 degrees, cut by one long blurred band with a rose blush leaning in from the corner. Drag the light on the canvas to move it.
SwiftUIReact NativeWeb
How it works
Duotone is a real [[stitchable]] Metal shader, not a video or an image. It runs as a SwiftUI .colorEffect, so it paints any view you attach it to. You shape it with sliders in a live preview, then export the .metal file and the SwiftUI code that uses it, or the React Native and Web version. No MSL to write.
31 settings you can tune
- Card Size
- Corner Radius
- Light
- Intensity
- Band Angle
- Band Blur
- Band
- Blush Blur
- Foot
- Grain
- Sky 1
- Sky 2
- Sky 3
- Sky 4
- Sky 5
- Blush
- Shadow
- Shadow Tint
- Filter
- Amount
- Scale
- Radius
- Fade
- Softness
- Rotation
- Brightness
- Contrast
- Saturation
- Rounding
- Bevel
- Inset







