You are here

Hex and Triangle grids

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
Hexgrid.jpg42.53 KB
JMS-Map_HexorTri.scm12.92 KB

This script will construct either a hexagonal or triangular grid. It's a kind-of follow-up script to the circular grid one I made a bit earlier. (If you wanted that one instead, look here:

You choose the size of the image, and the length of side of the shape. The shapes can be filled with up to six different colors, a white background, transparent, or completely random colors. There is also an option to set up the grid so that it will tile seamlessly. I've attached a picture showing a hexagonal tiling grid generated with this script.

The hexagons are regular ones, and the triangles are equilateral. The script will appear in the Filters/SambrookJM menu, but this can be changed by editing the appropriate line in the script.

I'm sure there will be lots of things I didn't even think of while making this script. Feel free to post any ideas, comments or questions you have. If I"m able to, I'll add them to the next version of the script.


Updated script - There was an error in the script that would show up if you used less than six colors. That has been fixed now, and the new script has been updated. Still working on the uniform coloring and the anti-aliasing.

Code License: 
GIMP Version: 
Scripting Engine: 


its like you read my mind - all i can say is SWEET!

and thanks!

Thanks for the script-- it will be very useful.

The only improvement I can think of is an option for uniform colouring ( ) and possibly replacing the lines with a brush.

You can set the thickness of the brush anywhere between 1 and 10, I believe. Do you mean picking a different brush like the pepper brush or Sparks? If so, I'm not sure how to go about doing that. Any help would be appreciated!

As for the uniform coloring, I'll see what I can do. It should be pretty easy, since the hexagons are generated going down to picture.


Subscribe to Comments for "Hex and Triangle grids"