...you have to make a "division" in 2^8,2¹16 and 2²4....
What?

You got to be jocking?
I went to check the link, code is a bit complex on that r,g or b function for me.
But that gives a head on how to approach it, I will check further, thanks!

I must admit I didn´t do much before on checking this, I always thought the GETPIXEL command would deliver something like that but I have never used it.
I did a quick try on 123 basic a couple days ago and I could not work it out, I haven´t checked further but I thought to ask first.
The main reason for knowing how to pull this, is to try write gfx filters. Is that a good approach at all?
It also seems to me that MEM2SPRITE command might be important speed wise somewhere within, but I haven´t used it either.
Anyways, thanks for the answer, the thread is from 2008 so maybe if I just study it I may figure it out.
I wonder if it is possible to read a common shader stuff into GLB, even if it is PC only.
Like read shaders from here maybe?
https://www.shadertoy.com/