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:

28C5C2
3AE957
1B13C8
9E9788
7DBC86
22A9EC
00EBD2
646C2B
77B4E9
14C401
BFC466
35005D
128478
375F05
D37263
7F1028
E0EB3C
3CB7C0
0A4F6E
BB35D2
0015D9
746A7E
FE9B87
120838
11F552
DD5E68
9BA788
AD9C6D
0B5C4C
E62565
CEB7C8
B971A4
D0DDE2
6D6193
39C836
AF652B
6A9753
4E8AB6
E7352D
A55844
26A7F2
895048
C999E4
1AF4E2
C92DE5
24B2CC
5F305C
95B84E
6B7295
7D954F
F2B222
3BC214
5CA0F5
537315
31BA29
6404E0
C8A210
BD778E
5A5597
017EC4
DC2559
B4902E
449828
53B7BA
F9D460
B0D1C9
218D98
732F75
FF07DB
756E32
20C913
8639DC
5F3CFB
51CAEE
413902
A610DA
8EA442
0C71C4
547B66
3F822F
D219E3