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:

8DB61F
C83360
44FC82
947C74
E59313
DAC6B1
457EDD
F0DC7C
D757A4
63A6CD
7E88FF
5A76A1
7C01A6
8830CB
4A0604
0BA1B2
7E299C
9B1DCE
141175
9E003F
3A013A
7AD8FC
AAFB26
18B411
DA304E
525F43
C37339
6F32C1
13C8BE
2ABE67
544331
FFCF74
C8AAED
F1B2B4
2E8F7A
A6D8C3
0B29C1
D644F1
629661
3C78AC
532924
4DAB6C
66439C
955FF1
AB0753
B60A6F
A85815
1DBCB5
60298D
0DAA85
834162
CD6E4C
E03A79
F88AB5
E8C794
961F21
F867A2
8ED2A3
05ED33
A237FB
B5C73D
09EE22
5DE77E
7F0259
0103B0
B5C487
062AB4
E28287
3A0251
483229
DB391A
535862
DEEAE6
D99091
BD5661
E9A23B
56402B
FA1898
8A31E3
B555BE
8552E0
726C01
B224E3
CFF9A5
C918E4
BC2935
E51EBC
0EB26F
2916AD
FEEFCC
A2D24B
A5AF07
867F98
85198B
B86A6F
FC4AFF