quickest way to assign map colors to point rgb?

I have points with uv’s and I need to lookup a map’s rgb value and put those values as point attributes (color or otherwise). A simple and common task, yet in the old days we had pic() as a function, where straightforward, but now that’s gone.

So what is the fastest way (and hopefully just as straighforward) to do it nowadays?

thanks!
dani

You actually asked this question a few years ago, not sure if this solution works for you.
viewtopic.php?f=4&t=1013

Now that you can do texture lookups in the vertex shader of a GLSL shader though, this is pretty trival. You just lookup the color you want from the texture and assign it to gl_FrontColor to be output as the vertex color.