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:

B41420
F8AF4E
55E81D
FF65DB
FD5F09
CC8FB4
666236
2BD638
1CD34A
72ACC7
A67464
0C9ED8
D8C7F9
4482AF
883642
AAFF60
4B8578
4EBB96
D2C5E4
00CAB1
33D148
1CFE4E
809492
C5CA41
683AB2
274A4C
5090AA
308009
EFC8A4
B649D7
BADED2
CBA317
6CA2A7
EFC457
07EC83
4C050B
86B6E9
21222D
E85750
A2AD9C
C2E0C4
E63FA7
0E71F5
EB4640
09FE33
0E45EC
EFD7C0
05959A
7F24CA
1CB8ED
9FA2B7
FD8C08
2D36BD
E83C17
2B5A7C
83D30B
8CF577
EAA4F7
38B267
9412AE
870979
93D17A
4128BC
596270
174E0F
D45D1F
9913FB
A9DFDB
972E2C
82D7D6
71128C
E3FF83
97B49B
A7686F
391907
263719
860E6F
CE7756