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:

A1CC49
E2C843
50F395
2E8724
3A8D3C
9F6155
8C35B9
E759A4
689A22
BFF5D4
545F89
DC3DE5
87D79E
EC5B33
C2D258
C2B5A2
4F9DEC
1813E6
276364
C4A6FB
9828A0
AFC077
3EFAB0
89455B
B60CF6
797E4E
97CA03
C83B05
3E5399
07399E
92549F
41E2E9
8C23EF
5875D3
2B7D57
9B0A69
8B51B0
E44094
B3A7DF
D958DC
989EFE
2CEADF
711E9A
908752
077111
202632
3EA40D
BA9CD0
84098F
7B9D86
3CF64B
FADAB2
2D1EE4
43E62B
2AA274
920867
5325CC
966318
8FAF18
BA2E6E
A94362
5BE0A2
AB04D2
17E747
83BF2F
782065
4A29C8
F2222B
2B0024
33B7A2
DFBE42
CF4984
25D972
31AE08
FB0818
E74BDA
1F78E8
555EB2
CCBEC5
451F97
B12F35
4AD245
3303F7
87B526
7C7228
3E1C27
6E7E69
442A18
12254C
B51E8A
5D928F
8ABFD3
18C359
5A08AA
3D0D4E
E7849E
923352
937D6F
EE246B