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:

A19613
29970F
9217D6
14A0DA
14C357
FCAE12
BCB218
A243B5
DE347D
C2F2B7
D2BCA4
66ACA2
B663BF
453731
5AF3AE
682571
832ABF
825457
1A82E2
8C6817
63F733
8382B5
030A2D
9A49CF
D79801
48C7B7
E0D6ED
6B2E0A
3D84E1
B79F68
372C51
43BFD0
A396DB
4D167A
274DB1
574164
727E65
CD187E
39669C
8A7A1C
2B4172
D37B5E
84BB4E
56D416
1DF5D5
A517A1
B54055
EF7C0A
736395
AB1885
BEE2D6
1B057D
CB528D
FF2B7A
DE6B69
F050D4
490A8A
359CD1
DD18E3
6C12A9
3A1C13
E30DEC
BE3152
642963
78618F
B2D730
00A39A
293A4B
6B2CB2
5E73DF
B8DE47
AE4B9F
FBEBF4
B585AB
49D32D
FD95CE