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:

F0C437
2A04CD
9AF253
ECCD51
82703E
82938C
5D383C
FDD693
985055
29D49D
71E251
EA1FED
6B700C
02751B
E6F42D
EA9E48
561848
BE8DC2
C5B617
416BB8
AE0028
86E50F
3B2957
238471
3BD615
DAB4F9
A0F180
F8997F
6BC936
FEE4F2
28F611
695A88
31D663
269DDA
343D08
BE714A
9B8043
42747E
7449C7
64065C
8EB5A6
79014F
920E82
E4B9E6
081EF1
F8D786
A0920E
E54924
E6FE9C
99F1CF
9CFD5B
830A30
B95A8C
F102E7
7D206F
83CC16
776704
97216E
834EFE
BF9355
B11275
C8B1FF
727F3A
EEFF50
80E3EF
82799C
A89D34
B5AFF5
5D352E
636B53
1D850D
2746CB
47B5D0
DF367E
F881B8
01319C
39F289
EF5962
0BF2EA