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:

453E17
11E675
71E2F6
A39548
3267A7
7896F0
B6FAFB
F31E3E
CE10C3
978C85
0A4595
12ABB4
66B23B
3503F2
E396AB
830D1E
E269ED
3BFE26
0B6C5D
6EB662
A5661B
B2EC00
176670
244409
83E9CB
25F133
1DDA2C
149F2C
A077BE
91EE40
4F722A
08B542
96BB86
5321A0
0B2209
EE9134
0A5942
21EB03
5993D6
ABF65D
749E2D
50B9A4
CD64E5
CEA94E
7B6D9E
708BAF
0B73D1
8BB277
562875
9117FD
C0C0C4
E42F70
132CF2
8D2317
31AB9B
C6CEA5
BCB5F4
62282E
AD31BA
400C24
09D487
124774
8AA56A
AABD21
CC3B27
B03E58
297FA3
954566
0FB5DC
591B42
68A0C7
1F996D
95CE6D
74112E
269731
19FB1C
A1FAD9
C71FC0
2D6876
3A4ACB