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:

EC7B20
E79B9C
E890B1
41F7B4
898423
C7CDB6
19EAE1
DC9D07
8AD2BA
D1F2A3
AB044B
064C0F
B239AF
D9B13D
1FCC97
7DFF7F
EEF9AB
319658
976C69
B458B7
A1E6FC
FA29FB
A6019B
106DD3
2F7023
537860
C93C32
5BC2ED
B098DD
F48943
9E2314
9C7255
0B7A46
CB6483
B90A81
28E234
F22420
418F17
1D9D50
DB4630
C29DB3
EE3B8E
DA8BED
AB4D73
33F953
B0C156
5E201E
CCDAF8
78117C
5EC441
6828C1
3446F7
7F5AB8
9D6810
D7693F
F863D7
05F48D
A6527A
79DA7F
2AF837
06EAF9
78EEB8
4CC38E
9F7120
BF1A84
EF849E
6B71F8
A612F8
A76F3A
928502
2F6845
AA306E
9C327D
7B4AD7
3CB74C
944065
A348AA
33EDD9
34F3FC
1FF891
8CB035
FF553D
67C5CF
CE00C7
0AC8FE
AB069C
8B2E56
3D35C8
A0E08F
C3A28A
14E64E
992D31
21945A
CC8251
B54A1E