Smooth Scrim Gradient

Build a scrim that melts artwork into the page background without a visible seam — smoothstep easing so the ramp is flat at both ends, colour stops interpolated in Kotlin rather than left to the renderer, and a transparent stop that carries your own RGB instead of Color.Transparent. Use when a gradient overlay shows a hard line where it starts or ends, when the middle of a fade turns muddy grey or darker than either end, or when a fade that looks right on one platform bands into stripes on another.

maxrave-dev 5549688 6.9 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/smooth-scrim-gradient commit 5549688c1c

Frequently asked questions

npx skillmds@latest add maxrave-dev/smooth-scrim-gradient