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:

449EDC
DACC6B
8A3514
C05C82
BFA244
32E36E
12B440
3A1B1A
214AC8
63AD42
9F40E3
0760E3
632DC7
F7950F
BE9593
DB1E8D
C82EFD
C7CB45
89CD3C
E94EA0
FA657D
99448A
9B0C6F
D988E8
8E6570
BD43D4
F2A214
12DE3B
233F71
331EF8
8E285B
0BD99F
1EECF9
4865B5
07447E
4BCB82
1FCBC1
73E0E0
73A63C
9A091A
686E26
9E039C
33E2ED
8898B8
EDD63D
95E0B8
DFEC0B
36A718
6F1775
19E7D5
D5A81A
E3473F
89501D
16F54E
64093F
675298
245A0E
19F932
137580
8B53E6
4FFD8A
C07557
6D033D
408C9B
AF00FC
610D13
EFEEDD
CDCC76
4E26FE
6915A6
8E8063
6BA741
4B4C5C
92C543
5632E4
34EA61
ACB8F9
A8F9A3
E14084