3
$\begingroup$

How to draw a picture like this?

figure

Suppose the centers of the disks are located on a circle of radius $\sqrt 2 + \sqrt 6$.

$\endgroup$
1
  • $\begingroup$ What have you tried? $\endgroup$ – MarcoB Feb 27 at 2:29
7
$\begingroup$
Graphics[Thread[{Reverse[Hue /@ Subdivide[0, 1, 11]], 
   Disk[#, 1] & /@ (RotateRight[(Sqrt[2] + Sqrt[6])*CirclePoints[12], 
      5])}]]

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ More compact version: Graphics[MapIndexed[{Hue[1 - #2/12], Disk[#, 1]} &, CirclePoints[{Sqrt[2] + Sqrt[6], 5 π/6}, 12]]] $\endgroup$ – J. M.'s torpor Feb 27 at 6:18
  • $\begingroup$ @J.M. Thanks! $\phantom{}$ $\endgroup$ – cvgmt Feb 27 at 7:34
4
$\begingroup$
Graphics[Transpose@
  {ColorData["SolarColors"] /@ Subdivide[11],
   Disk /@ CirclePoints[Sqrt[2] + Sqrt[6], 12]}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.