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:

12F6F6
D688E4
987DC9
554783
51AFBB
9EA84C
904572
68F1D1
12F40B
A0E048
9BFDD3
5968A0
71BBDF
8CFD9A
FC5E6A
4A01EE
9BE80D
BEE681
CC30BC
EEAD79
9A98F1
8FE6D9
7EBBA9
573B93
408BAE
8E5510
727AE4
BD577E
DF19F8
19FB17
40D11F
1F37E8
77D1AC
34D943
C31229
BFCF1C
F36801
E330E3
7A20A2
966CAE
88AF82
1BB1E6
54241F
4B0BDF
CCFED1
EF82F2
9A7FBC
DE886E
CD894B
678D4E
FE053B
3EBA0D
9FFA2F
1809E4
778DF5
4EC80F
472826
E6DA0D
82291F
53EDC3
99BD84
1E59DF
B2C276
86D3DE
BB7D6C
7E173E
517E91
D33484
36F980
18926D
DB9363
FA5522
66815F
90EE4F
1109E0
A6CECD
A93CD6
53A72A
30DC29
BC189B
1CE557
DDF218
2F13DE
ADF114
BEC19F
C423E2