MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

coloring individual hexagons in a grid...

  • To: mathgroup at
  • Subject: [mg127869] coloring individual hexagons in a grid...
  • From: Richard Palmer <rhpalmer at>
  • Date: Tue, 28 Aug 2012 04:53:02 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

I am using the code shown below to draw square hexagonal grids.

Hexagon[x_]:=Line[x+#&/@(Through[{Cos,Sin}[Pi #/3]]&/@Range[0,6])]



How does one assign a color to individual cells in the hex grid?
Richard Palmer

Home                            941 412 8828
Cell                               508 982-7266

  • Prev by Date: Re: Problems obtaining a free c compiler...
  • Next by Date: How to specify x-axis in List when using ListPlot
  • Previous by thread: Locator Bug
  • Next by thread: Re: coloring individual hexagons in a grid...