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:

9DA6DB
72BE0B
74B1B5
9BD714
B280E4
F19864
D48A91
1BAF88
97951C
8777C5
DDB9E0
E45E76
6958FB
3C8465
8810DA
5979FF
4AE5AA
22E0F8
2C1184
21AC7D
3CC7FE
7A266F
9BC63C
F92EF2
CE85A8
A52763
0FEE9C
CEC7B8
5E8117
EA7BC6
591F2F
F22573
6E2186
75017D
D7E44C
5123B6
0D78C0
678EAF
C28FA6
44536E
70276F
472684
C29E7E
82846D
BD62D0
77716F
253855
E7C59B
1284C8
942BCB
AA5A9A
802461
4DCCC6
4A6C19
C78387
17DBF0
E61E3C
C6406C
3F2FDF
D13623
EC9E62
52A51B
9DC313
D915E7
7242D6
630DE4
966783
823A78
3929D1
D06813
37F234
5CB4D6
0E6ECB
D62489
27E040
F70A6A
1C5789
847E96
67645C
7B5493
15A281
6028EB
397C29
8F2465
B1520B
6DF668
10C3EE
D44011
8ABE67
1758C0