Is there a program that lets me draw, a la pixel art, a map, and give me a list of coordinates and their corresponding colors? For example, I'd like to use a point and click interface to draw this

enter image description here

and then "export" this somehow.

  • 1
    \$\begingroup\$ The pixel positions are the coordinates, aren't they? Are you asking how to load a map from an image file? \$\endgroup\$ Oct 23, 2013 at 23:13

1 Answer 1


You can write a script or simple program by loading up the image (using PyImage or SDL or the like), loop over all pixels in the image, and print out those which are black (or any other color requested).

Something like this pseudo-code:

main(path, color):
 image = LoadImage(path)
 for y in 0 to image.height:
   for x in 0 to image.width:
     if image.GetPixelAt(x, y) == color:
       print x, y

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .