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:

62C807
8AA1EF
74C1B7
457A88
440BD3
FDE687
49B2E7
0995FC
BD746E
C4FBB8
616EDE
F16D19
9579AE
0AF6B3
44E55F
2BCF66
DD573E
40345B
83F407
0B96BC
D025E3
E4F77A
5BB2C8
09C731
503714
391289
99236A
0A2D97
CF7792
7580FC
CECE63
59151F
119C28
8A6429
C87EFA
23F4E7
2C2AD7
34BEFA
DB5704
F989B7
DF9BCE
38FC65
362B4B
E21592
A82B24
C2D34B
471E9A
2FD47D
AA62F3
25AFAE
6C69CD
CA48F5
4483D2
639995
94CE0C
0FC7B2
6FEF9A
477F9E
6A0C0D
75F913
8A4723
2EB323
020F5C
496D48
3A970B
594983
641D24
B796C1
C79156
B8D3B9
E89CDE
8727C5
4EF633