Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm working on recreating this triangular background effect as seen here[^]

So far I've managed to create something similar[^] but which isn't quite right as the triangles overlap instead of fitting perfectly together like in the first image.

It works by creating hexagons[^] at regular intervals, then randomly 'displacing' each of the 6 outer points to create 6 randomly-shaped triangles. However, this means each hexagon isn't fitting together with the others properly.

What's a better approach to get the desired effect?

What I have tried:

Explained above
---------------------------------------------
Posted
Updated 17-Jul-18 22:35pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900