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:

E9C2D2
D720B3
17D258
054B40
F14F65
8F2948
7035CA
936B92
7D2644
3FBA16
55A1DD
9F89F4
C9A787
EA46F7
229843
7F23ED
A28F26
0AC3A4
2CCC9F
352E41
D4EE71
E08855
3E931E
0EEDCC
F13812
725EFE
E80933
8C9531
D07ED0
70CDB2
E06967
E7D2BF
47CD16
A3D4D0
3F9A45
123334
351822
BB3D35
F015D2
EE81ED
C3332D
E62952
9743AA
E52071
87F24F
D5634D
3BFE35
957AC9
BE215E
2956BB
C9DB32
996CBB
1FB70E
418802
27E61F
F40EA5
979FD7
D1950E
1ACE86
6D9179
2A7196
34596F
E03921
8410E3
86745C
FA1636
231B5E
B87C98
B0C385
9A7455
54A64B
59353C
A20031
2804D8
55EB93
3AD46A
EB3DD3
FB9C5E
7AD02E
00E864
42E7C3
93A214
DAD73C
D7C7E4
734A74
AEA149
B9DB1E
D0E268
43C972
189C91
0178B0
392CAC
A6B590
EC570D