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:

BF0316
7096D2
C46529
4D224A
778962
739321
F5915E
101832
773CF5
7771DF
81CFD5
97118D
108887
71BC86
49A906
BBF108
C564A9
90A2F8
1E6E37
874AE5
9BAFE3
13EB88
FC742A
0EE36C
C6AB5C
ED33A2
6337E0
879845
A291B2
20DE31
E9BAA7
E3D323
E6AFDB
5911BC
E78FF5
4ADCC6
D47DBE
E2BFC6
6288E1
D32E36
A129BB
4472B0
D8472F
1989DB
74DC3E
0DA2B6
05031B
8621E7
DD96C6
E6F336
389705
2E3234
5D4CDF
B812C3
A64EBE
26011B
88FD27
0528DC
713400
22F3AD
CAA90B
E5AFC6
90357A
393688
92C4AB
9F84F7
6ABDF0
ECDA3D
7E66E4
EFBB44
A3E284
C2DACC
C8CAAE
B153D2
D841FD
06A93F
9655D2
C4D061
DA4CF5
57CA79
7671A3
018934
D710E7
C3B06D