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:

6F71FC
77A3A8
F5D150
18501F
C55CC9
103E08
3F3265
AB23AB
23E309
7335E0
7011CB
EA5385
01C8CA
CD5B6A
4EB144
377569
853267
A6969D
01D873
5DB265
7E58CA
CDA9BB
2F2AA2
93276F
19FD2D
B954DB
8E7070
FB9BA5
8D0677
68EBC6
EADB08
8ECB87
86563C
3AAB75
80C1F5
0D6F05
28502B
16F286
57A090
589B95
45CDC8
2A1C11
AB3B40
3DBF6C
CC29E1
E1399A
5D2B32
20B3AB
D9A1B8
11234B
EE7D8B
83C462
C1969D
1D17F8
CBD7D2
1EE907
7A52BD
496B55
9B9516
4F8206
6D16B4
D32C95
4472AF
4CF9EC
29B514
62BA39
441CDA
04E891
09065C