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:

0D0D86
3B58DD
C6610A
964A32
5A1475
D35CD6
C6EC97
49D6E9
C894FD
D6E68E
487E56
825B6E
3270D5
BE4C98
A16B4B
8C98A4
2C8C28
51225E
BC8696
D43308
8130FB
12655F
BA4E7A
599A90
9FD7A6
41A49B
A85EB7
538021
C6F131
554E6E
B6A1D6
19E677
3C3E2D
4D7D42
5B859A
F8AFD5
197575
21F38E
730133
7630EC
B8E513
2E2ABD
233ADB
785103
068259
8C28D9
3CAA0A
D5B4C1
37572C
D16029
50FA0C
43A02A
5646A0
82B4CE
D32AE5
D71E22
705321
2C0F0E
2920DE
CB61C7
5EE162
A43E19
7F38A6
B5AA2F
1DB42D
1386C8
61DEFE
672B24
29AA1E
82968E
65EC5E
37D798
DB6F7F
6FEFB3
D46D95
2D8EB9
8B6CB0
8CBBD6
5287D0
21B1EB
B32F50
A3B204
E3823F
ADF9E2
2C54EE
6F1956
19B74F
E160FD
1E38BA
1DAC90
97F8F3
DEAFB8
EAF5C1
28F3FA
6684CF
52A934