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:

6014C1
7C8CED
33B52A
8EA00D
04527E
22B56D
1565BF
D721B5
707910
43DF30
8DB7BA
B60AE9
C0C896
AE0E67
897D1E
949269
6F4FB4
06EA56
F66877
12B51A
6403B4
AE18C3
4896A4
22D9DA
4EFC05
A23DF0
54065F
F2D6B0
FF8615
1D94E5
0EF598
98C17B
A19192
C808F2
586F46
B3C417
B2DE89
D1EE5D
A013ED
B403A5
144AB9
8E8404
A86AA0
098009
1BAB3A
DD476F
605A66
DF9BA0
D5BE99
1AF8B5
65579F
643358
8E5199
69E7AD
B961F9
197595
896DA6
D8034E
4DCFCC
EE9BFD
C06696
97DB89
3037C3
70CEB5
75EA3E
5BAC83
78D28E
A20F64
5C7E5D
553702
B0DA81