There are two shaders: one for making a gradient with up to 8 colours (e.g. for a bar background) and one for colorizing images.
The picker square is made with a shader that can take 4 different colours, one for each corner.