HNHacker News
TopNewBestAskShowJobs

olpyhn

6 karma · joined October 25, 2021

I specialize in android development, building performant apps using Kotlin, OpenGL, Compose and other fancy technologies.

Also, I know a thing or two about machine learning, algorithms, and people management.

Currently, I work at WhatsApp.

submissionscomments
olpyhn··on How to render a mesh gradient using RBF interpolation
Interesting, will try it out. Thank you!

Tbh, I tried several different functions, but nothing worked better than inverse quadric function. Though, I'm not sure if I tried anything without decay

olpyhn··on How to render a mesh gradient using RBF interpolation
Mesh gradients are a powerful way to create smooth, organic color transitions. Traditional techniques like spline-based interpolation or multiple overlapping radial gradients can be effective—but they also come with trade-offs: visual artifacts, complexity, or the need for structured meshes.

In this article, I’ll show you how to use Radial Basis Function (RBF) interpolation to generate seamless gradients from just a set of colored points. This approach is portable, flexible, and simple to implement.