[HN Gopher] A flowing WebGL gradient, deconstructed
___________________________________________________________________
A flowing WebGL gradient, deconstructed
Author : alexharri
Score : 25 points
Date : 2025-04-12 10:54 UTC (3 days ago)
(HTM) web link (alexharri.com)
(TXT) w3m dump (alexharri.com)
| mwkaufma wrote:
| >> The mix function is an interpolation function that linearly
| interpolates between the two input colors using a blend factor
| between and ( in our case).
|
| >> A mix function for two colors works the same way, except we
| mix the color components. To mix two RGB colors, for example,
| we'd mix the red, green, and blue channels.
|
| Colorspace alert! mix != lerp in sRGB
___________________________________________________________________
(page generated 2025-04-15 23:00 UTC)