Back
Hexagon Grid

About the project:

In this project I made a grid out of Hexagons. First I made an algorithm to generate a single hexagon. After that I used a loop to place hexagons next to eachother with an offset so they would fit perfectly and form a grid.

Later on I decided to add a little color effect. A timer is set and each time it drops to 0 the RGB values for all the hexagons are chosen by a randomizer that picks that value between 0 and 255.

My Contribution:

  • I made the algorithm so that you can spawn a Hexagon
  • I made the algorithm so that the hexagons are positioned like a grid
  • I made the color effect so that the outlines of the hexagons change color.

Status:

Finished.

Engine:

Processing3.

Language:

JavaScript.

Team:

1 Game Developer.

Links: