Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Created January 13, 2023 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TechieBlossom/c459d6bb77bbd1dba09b1d35ee6ec8ed to your computer and use it in GitHub Desktop.
Save TechieBlossom/c459d6bb77bbd1dba09b1d35ee6ec8ed to your computer and use it in GitHub Desktop.
Inner hexagons
// Inner-most hexagon
Offset(
1/5 * radius * cos(pi * 2 * degree / 360) + center.dx,
1/5 * radius * sin(pi * 2 * degree / 360) + center.dy,
)
//Farthest inner hexagon
Offset(
5/5 * radius * cos(pi * 2 * degree / 360) + center.dx,
5/5 * radius * sin(pi * 2 * degree / 360) + center.dy,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment