Home
Source Tarball | Source Zip

This little page does a few nifty things via PHP:

  • Generates a random quantity, between 1 and 100, of hex color codes.
  • Calculates the best color, either black or white, to use for the text to show up when displayed on top of the color.
  • Populates a little div block with the color as background and the label with the white or black text.
  • Calculates two darker shades of the color to be applied to the various parts of the object.
  • Randomly picks one of two different object templates. One faces left, the other, right.
  • Paints three of the parts of the object shown below
  • Combines each of the four parts as layers into a single little object image to be displayed next to its color block.
  • This is the right-facing template:

13BB97
A19BE4
9FAD79
97744A
C34D4A
164B3F
34D46B
AFDAD8
51986E
32035F
E06185
4F6DC1
DDBFB8
32B969
89E5E8
E58D2B
037DEC
E6E871
0C5939
FF0D3B
378D1C
399F78
0F8A18
34E15C
C08D02
9FE154
012953
AA2C56
F92526
277194
279F92
34D553
484B2F
583AEE
FD939F
58D7C0
E0D019
95D055
224CB1
EDCB9B
C178D9
DACCFA
63B516
388BCB
D81724
AEC3BF
9E6562
C7C850
EB8060
33A4C6
FA2FA2
5509D9
AB9AD9
A33352
260347
CD7380
54F645
65E98E
84979D
58D51D
456176
516001
158683
2FD4CA
673F03
1D6F6D
CC844B
7D530E
F3A7FE
1F14CF
C3968D
D3AAD4
DAA166
92B111
C35DF0
284761
36D91F
CCB767
1F4FEF