You are here

Thatched cross

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

This script generates a pattern like the one shown in the attached png. The size of the image can be anywhere from 300x300 to 3000x3000. The pattern can be symmetric, or it can be weighted to have longer sides on one side. The color of the lines in selectable. I'm not sure what this can be used for, but it does make a nice pattern that can be tiled. Enjoy!
The one thing I could not figure out how to do was to make each stroke a different random color. I tried using an if statement inside the loop and then setting the color to (rand 256) (rand 256) (rand 256), but for some reason that did not work correctly. If anyone out there can figure out why, please post it in the comments. I'll add it into the script and give you the credit for it.

cross.png16.08 KB
Cross.scm4.92 KB
GIMP Version: 
Code License: 


Here's a line of code from my script (set! myColor (list (rand 255) (rand 255) (rand 255))) and then eventually I do: (gimp-context-set-foreground myColor) Hope this helps.
Subscribe to Comments for "Thatched cross"