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:

B46935
EC4582
36BE40
AA8F00
93E50A
D27D7F
D507AE
3FD193
4B0A89
FCDFB8
85ADA4
A57CAD
0B9B5F
56B98D
ABECBA
F7DCB8
5F2091
D815B0
F094C7
E0F6B8
44BD79
116D82
DA8202
2CB241
49A5F6
DA84F2
2A390A
76D9E7
290F04
619B6A
69E9CD
E71D0E
630970
42D7FC
C4B617
A45E74
3E1E1E
ACE114
E7776B
14FB96
FE58EF
7B4A99
0E1270
1841CC
1D54B7
0A2B5B
A99381
4AB0ED
D99BFE
CEDFBE
B6CA7E
AC44BC
F9B565
2E0254
59B988
39D691
B0D7C6
E097F1
9D4F6C
007FF8
2273DA
EDFDF5
EDCA02
1F0C32
353659
55D106
4382A5
241D88
4D8726
5DAE6C
D43D39
27BF6C
831EDE
5F47EB
41FBC8