qrohlf / trianglify

Algorithmically generated triangle art
http://qrohlf.com/trianglify/
GNU General Public License v3.0
10.08k stars 669 forks source link

Create Seamless pattern #39

Closed manatarms closed 9 years ago

manatarms commented 9 years ago

Is there any way to create a seamless pattern that can be tiled horizontally? What will I need to change? Thanks

tdhsmith commented 9 years ago

The triangulation is completely determined by the position of the points, so it should work just to take the points near the left and right edges and duplicate them on the opposite sides (one cell size beyond where the current points are). You'll have to get rid of the existing horizontal bleed or you won't see the part where it "connects". And you'll have to restrict the cell_size to a divisor of the width, or the connection won't look right.

qrohlf commented 9 years ago

What @tdhsmith said. You'll also want to provide a custom color_function, since the gradient won't really tile well.