to get the colour of a pixel, you will have to use the canvas plugin, paste the sprite to the canvas.
Then you can use Canvas.redAt(x,y) Canvas.greenAt(x,y) and Canvas.blueAt(x,y) to get the rgb values.
there are lots of other ways to make maps - load json data, tilemaps, etc.