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:

B06D48
18FB21
C50E66
B1DC99
B57E89
66B86E
38A6A7
6B8712
D442E0
8EB734
373CF1
316AF0
7F1CAE
AC214F
EEEFDE
5E6A29
9C386F
1566BF
FED8F6
CFB83C
5568C8
5C4B3C
E4BDCC
DEF856
978BDE
789A28
77576D
5620C8
990A5C
5CBEC9
63E108
754D6C
7BD3ED
DBC478
480BB2
4F70D9
83706C
DA2CAD
1C720F
D622FD
2DB862
C5CA98
1C2A96
3D6520
DC8F60
8A2729
1065C7
0E26C9
5BBE9D
82622D
631102
F7881B
DD57DA
6F3CC6
583BEE
E1D173
2CC83F
29E926
6EB772
10717A
64DF07
D3C921
9536F1
B4D483
DEA6E3
3F61CA
A2231A
F1B527
88424B
1C9174
5EFD17
221518
94F161
A3CBD1
62B5F8
D46EC7
FD400F
5835D5