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:

92A0EA
0B0E3B
FCA6B8
CDFA54
BD6A45
8058EF
67B183
FC75B2
D229C3
8343A2
8F6008
8FD229
6A4B5C
10E6CD
2A8FD0
8E766D
527AAC
096DE6
C25C49
458379
15C9CE
D86AE4
8740BB
BD563D
7BDDF5
892096
153259
E48BF6
8ECAB4
AFAD88
19539A
35CA36
A30853
19BE7A
067D29
A05C29
698390
3A78B5
07B94D
26A15B
F7C8A8
6885EC
6C07D0
13096B
21A9D3
A5E726
510A0F
FBE376
8E9A69
A3DB1A
33A3CD
549246
095216
D66E55
473EAE
0F3FD8
DA4209
31101A
C768D0
EB6E0A
A3497A
D6287C
1F047A
1EBC4F
5EC041
65F848
C47481
50DC1F
0EDA4B
961D6F
C33050
865A2D
FDA461
74C1CA
DF3412
0C432E
126DE4
C34B06
F6DD6A
8AA04B