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:

236FAD
06ECF0
2FD3BC
960440
87A82D
A4678D
05E7E6
11689E
DE64AB
448E10
1857AA
9A1BEB
0576F8
4BCDC3
81D414
DA243E
2A3B66
3BEF37
EC6940
5D676F
49FE65
F731F2
FA3CE8
83361A
AF3D78
40CF11
EF9F63
A7A92F
860B48
CD6968
A8B431
FF907D
97BE7D
2A8C92
39C103
EE13F2
5CAC16
6AD514
FD5708
13D943
D6E6DF
2546E9
7226A1
69E874
B11BF2
FB5C73
5CCC69
C1EEF0
BB5C8D
DC6C14
DFC5F3
5D099C
D464AB
737035
AA3870
A62A46
D081C6
66132E
554985
1D7CF7
53AA01
6D6E2B
81E8C4
1081BE
2DB935
1AFE5A
802C78
356F5C
5C28D2
DCC48E
48DDAF
B2E610
3F7704
D4E65C
A5BA0E
2DC8E3
54943F
E5B25C
24FEAE
8A0B01
B1D5DA
10EABB
C1D63D
16F0AA
36D2BC
087DBB
E84F70
3AB6A9
169785
784A86
19DCFD
1CA5EC
4AD475