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:

E0BB36
1A4C17
28D61E
E8DCFB
EBC981
EEAE9B
A7FC56
32AE12
ADF0FF
B29FA4
8FEA99
CB9A11
E68F69
DEE01F
B930E9
C4D31F
E77122
22BDA7
B009E2
0AB7C9
E9755B
84298F
F59029
0A8F29
0BDCD5
9A6B51
54E3CB
50EE50
59D4A1
E97296
55DB5A
0F5772
202D98
ECB6F9
A60837
64C736
13A354
599DFF
0C797F
B96CB5
709E6F
92E39E
B0A4C9
6B45E3
EDE89E
95C27C
863791
BBB4A5
73EF3A
3ED48B
E82D5D
7250F6
C7CB59
F1C84E
59FAB9
B86958
97688A
488884
5C3A53
D18F7C
6E22FE
B9A6CF
D33F0C
4A4491
917EF9
9E1EC7
EC9DEA
F6E37C
3A45E9
419EDE
0B8959