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:

11AED0
F7A48D
C02A50
3557D1
2926BC
95B1FA
05F0D0
9932DE
0FA6FB
EFCABB
6A34E0
4051C9
B6E35E
EFB3EC
3FC45A
10597F
306509
685FB8
D11000
30320E
7391AF
169FA7
4F338E
A25E10
322C60
A8EFC1
02B15A
9EF3DC
8BB484
942655
EB38E6
CAD3B2
9343AE
BFC8C9
2C07D4
6C854C
A56660
8A1E66
A016D7
B63C25
4C7F3C
363181
EC734A
A605C8
A5E432
F0CE79
982639
F444FE
BF7300
2770DA
B8CEEB
5FA9E8
E6DC82
BE0B09
817C21
693C05
4B9891
39E678
E2B3AA
286886
6E8976
BDBB4E
82C487
6D318D
A1E1C2
55CAD7