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:

5AE855
FDCC36
D95068
63A15F
197DB2
415EA3
20AB5A
0A6114
AFF3E8
D87B22
F61F1C
11B486
A1F59F
F92456
EB88E9
D88B92
1DC9E0
17FF2F
07B6EE
57B766
7D0C14
2889DD
020ABB
48B14F
2D6DAC
591EC6
CFCD27
281364
F0E047
3D64C0
BD1D33
D2EA56
E6DEB0
B353F2
24396A
4531AF
E0109C
918FCD
0D7D61
8FBEF9
7CCD46
409688
BC0125
58F515
334A92
8690A3
D3B215
D3A6CC
9C8298
CFD5F1
7FFC92
3226C9
DB835A
8F4DBA
47BFCC
64FD05
22E4A0
261ED1
FD3957
389D87
567422
715EA4
0D12F6
E052AD
D51107
0A1DDF
985A90
6AA66C
F0C051
30E271
9713FB
5F7792
AD7B44
85861F
0826D2
BA1E08
3D0BAE
5FA9A5
537F8E
D817E9
2F4C6F
2C83BC
94EB35
23E6A9
D11588
2D3D5C
A6CDFF
693F55
F28F06
786F03