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:

4D019D
7614AD
71B4C1
41A669
A68DEA
D7D448
97A7BD
1684C2
6D640F
471A0F
AFD799
0C52F4
2E8537
528BDE
7DCE83
F735A1
EC10DA
3A7DD7
5C383D
9E1E17
345A58
EDCA3F
85B573
72B176
93A600
FC4C3F
BE0600
FA733C
FC8C3F
A26FD4
80B5B8
5A0EC4
13AE29
1599A1
28C688
67DC5A
1FB040
29F99F
DFD4E8
A36F7A
8A3437
AFA366
6BA496
A393E9
FBB705
935A31
A4C2A8
6D5D3F
BA0690
9AD71E
D15408
471286
8A1CB3
17C30B
E3F033
B4A397
A69A83
191CB6
DC4A16
41E30F
55C471
957697
055AA7
960BA0
448807
ABE37D
FA2A4D
076809
4A23AE
1F2286
7B718F
E8A158
A7AC61
DE4F12
6F1A95
4DFF49
31CAAB
33E7E5
5DBED7
DA9F34
1D9BB4
257664
CBEA49
2E2993
56A0C4
333C8B
ECD061
51211B
E6DC12
C1A2FB
72C7F4
74C725
2432CF
EDA542
5FBF37
C00293