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:

514D02
C879E4
2758C0
0C38B4
508D9C
336B6B
912167
F9A0A0
94150D
AF6077
7EC365
06FB75
2EABF8
163934
CE2DAE
8988C5
ED349B
8DE371
BE4EA6
E1DC49
17644F
B696B2
2FD817
99765B
944E54
D5CB71
51E3F8
78EACB
B0419D
8A5B25
1BA627
50F249
764759
D77D19
C2DACE
87E37B
14CE51
EF3CE8
2C7A1B
DE05D0
E1BD28
EE6179
B705B4
14A011
E1B16E
BE930A
37066B
F077C8
7B624D
18A332
79D704
3CDA89
23485B
73D3E2
389873
4BDAD7
A59682
491161
3B043A
482F24
0E8C27
323E78
F3D1C4
483124
4EE6EC
5B741E
791C63
D17377
3E1994
D68795
9A85FB
088ED8
16DDBA
43E751
2DC79D
D08437
2780A1
47C479
A8657B
D4E644
E4BD2E
DDEA52
E3B1F9
EBB50D
D7520C
4243AF