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:

1FD281
90F777
97B8AC
AA4728
9BCD3C
1B60A4
DD0422
23AD0E
0966FC
2F41D5
7904AD
FAAA18
0CC158
90F4E7
F854AD
598B58
B060B6
8826FF
05217A
3A1BA5
FAD55C
F3DA0F
64FD32
FD0D21
8E4BC1
D40307
EF4BF0
C7FCA8
D67867
43CD86
2AA261
A7953C
8C5CBE
D6BDCD
21051B
6C4044
1D3B5B
7034A4
A751A9
FA22F9
64F743
87BD5F
8106E4
447F74
D2DB2E
5F234E
F67FAB
6AB8EF
68B28A
A5E2B3
CFB11F
E587C9
F03068
D516F2
40E6C5
C04109
03B43F
92E922
587BFA
B57DC4
8CF44E
CB88EE
BF1A34
6CC445
F5F3ED
7D1DA4
052E4D
5610B5
597884
B7F28A
72C281
F4AEC8
92BCF1
376ECA
8ACE29
D11F28