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:

90A1EA
22E1A2
56898E
645CCC
09509C
C85512
546079
DCEA1E
E3C025
67C6F2
6068F4
DBF904
30E4D6
9C3DD1
77333A
A6CE15
3D3C23
B2D1C9
912947
73BE1C
FF5834
BAFE7C
30BD3F
5C38A5
7C1550
E8817C
6DE542
37A06B
BD57C4
A1BA30
49EC38
A8DE89
A35162
4964BF
5E2C7C
F6A377
BCA8C6
54338D
145A66
28B759
E70820
834991
779B43
54E1A8
D2FF0B
DA998C
3DB115
807CA0
3C4455
7B891E
9A80D5
9E3202
DED752
CEB13B
2D1EAF
0BD43B
02711E
CDA2C4
97A471
5FFA8A
BD336F
936004
3AE419
F4EDF6
DF49F0