I’m looking for a package providing color ramps. By color ramp I mean a function defined by a color palette and which maps a number between 0 and 1 to a color of this palette, by interpolation. 0 is mapped to the first color and 1 is mapped to the last color. I googled but didn’t find.
I think ColorSchemes.jl has this.
You may have a look at color maps and related functions: Colormaps and Colorscales · Colors
How did you do that? With ColorSchemes I get vectors of colors, no interpolating function.
f here is a value between 0 and 1. (The value of the Pluto slider in that GIF.)
Ah ok I understood now.
f is the number. I thought this were a function. Thanks.