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:

E25ADF
4EFFD4
79B24E
C6CBBB
F6AC85
246FB1
888A68
A2B3AE
56F0E9
9BD7FD
9460D0
2DA645
F84FCF
79D0ED
83C846
E76190
EC296A
D02336
2F4C3C
C53792
9BFEE6
1EB391
C8E845
E80D08
2779F3
793B68
7D1C3E
317273
1ECBA1
E761A4
8069A6
9DFD98
2D2700
2B5BE7
FF2875
1FB680
99F917
E11D99
E22875
766768
02FD2A
9E4429
F7D05A
015F04
B8F536
C11BF1
4B3BA5
F080D8
99F78E
47CD73
E5C910
FF3EA3
02210D
DFD3ED
CA56F0
89DE22
3D5B3C
B436F8
3A6222
E3BB81
25E498
B29AC3
9F94ED
B57EB3
D27B2C
9FA49C
96A0CB
E3F590
F07B91
D5F7DA
F12E13
B47F8E
8DCED8
7D63DA
A56E8A
B2C7E8
119CAD
5CA650
64E6E0