getPixel() setPixel() examples

I’ve been reading through the colour-picker example that’s around the net, but I’m still not totally clear on how this works.

Has anyone seen other examples of these functions around yet?