Skip Navigation

Hexagons 6 red one blue, generated by me using code

Did you know a Hexagon can be constructed using the angle pi/3 a lot of times? This is because a hexagon is made of 6 triangles with equal side length - the radius of the hexagon. The inner angles of these triangles is pi/3. Using this information and the trigonometric functions sin and cos can be used to draw such a picture.

19 comments
  • i remember doin something like this with an apple turtle/logo in 1984

    livin in the future!

    • what is apple turtle/logo? some turtle program one could code to draw image? would be interested to hear more.

      • There was a programming language in the old old Apple computers called Logo. It was basically a drawing program language. You had control of a 'cursor' called a turtle, and you would give it commands like "forward 5, left 90, forward 5, left 90..." and it would draw shapes. I'm sure there's a wiki for it is you want more info.

19 comments