Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13781 > unrolled thread

Numbers on rectangles

Started byc_mcinnis@hotmail.com
First post2013-03-08 21:46 +0000
Last post2013-03-08 21:46 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Numbers on rectangles c_mcinnis@hotmail.com - 2013-03-08 21:46 +0000

#13781 — Numbers on rectangles

Fromc_mcinnis@hotmail.com
Date2013-03-08 21:46 +0000
SubjectNumbers on rectangles
Message-ID<khdm7b$f0i$1@smc.vnet.net>
Hello to all,
I am trying to put numbers on rectangles. I found this little demonstration under the heading of =93Rectangles=94->=94Neat Examples=94. I thought that it would be a good tool to help a young student learn to count, however I cannot find a way to put numbers on the rectangles. I looked at a couple of examples in the demonstrations projects where numbers had been assigned to disks, however that didn't seem to work with rectangles. I also saw some documentation in the help section on =93Inset=94 that labeled a circle, but that did not work either. After finding no posts regarding this topic either here or at the education forum, I decided that I might try to ask.

Graphics[{EdgeForm[Black],
  Table[{Hue[RandomReal[]],
    Rotate[Rectangle[RandomReal[2, 2]], RandomReal[2 Pi]]}, {20}]}]

I have modified the code to produce a random, and smaller, number of rectangles, as is shown below.

Graphics[{EdgeForm[Black],
  Table[{Hue[RandomReal[]],
    Rotate[Rectangle[RandomReal[2, 2]],
     RandomReal[2 Pi]]}, {RandomInteger[{1, 9}]}]}]

Would love to have each rectangle take on a distinct color, the more basic ones if possible, but just having a number on each rectangle would be great. Many thanks for any and all considerations and suggestions.
Clifton

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web