Re: Arranging disks (or any object for that matter) be
- To: mathgroup at smc.vnet.net
- Subject: [mg130459] Re: Arranging disks (or any object for that matter) be
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Fri, 12 Apr 2013 02:18:25 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <20130411081228.CDAF66B1E@smc.vnet.net>
Manipulate[
Module[{a},
Graphics[
Table[a = -((Pi*(-2 + n + 2*r))/n);
{Darker[Green],
Disk[{Cos[a], Sin[a]}, 3/Max[8, n]],
Text[Style[r, Orange, "Label", 24],
{Cos[a], Sin[a]}]},
{r, 1, n}],
ImageSize -> {350, 350}]],
{{n, 1, "Number \nof Disks"}, 1, 20, 1,
Appearance -> "Labeled"}]
Bob Hanlon
On Thu, Apr 11, 2013 at 4:12 AM, Clif McInnis <c_mcinnis at hotmail.com> wrote:
> I am looking for a way that I might be able to make the disks (or any
> object for that matter) be arranged in a circular or pentagonal arrangement
> as opposed to rows. I tried looking at the "Sum of Empty Skies for a Set of
> Planets" to see how the "planets" were arranged, but I could not figure out
> how the code worked. I am thinking that there might be a function that I
> have not considered, and would appreciate if someone could point me in the
> right direction.
>
> Manipulate[Pane[Row[Table[Graphics[{
> Darker[Green],
> Disk[{0, 0}, .5],
> Text[Style[numerals[[ r]], Orange, "Label", 24], {0, 0}]}], {r,
> 1, n}]], {325, 300},
> BaseStyle -> {LinebreakAdjustments -> {1., 10, 0, 0, 10}}], {{n, 1,
> "Number \nof Disks"}, 1, 5, 1}, Initialization :> (
> numerals = {"1", "2", "3", "4", "5"};)]
>
>
- References:
- Arranging disks (or any object for that matter) be arranged in a
- From: Clif McInnis <c_mcinnis@hotmail.com>
- Arranging disks (or any object for that matter) be arranged in a