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:

16BAB9
366AB3
FBF3C1
FA6A97
E37D69
AB064F
E2B28D
FB2853
890D4D
46626D
5800C4
48C728
ACB3A3
7042A4
545552
12205A
2ADE1C
853820
DA6EE8
5E6C39
7D285C
0A73EB
0B6142
FEA6F7
1AED38
C284F6
EEBB43
C9E5A8
3A65FC
92EF9F
C2821D
0EBC9C
501F66
388BFD
9CEAEE
9F22CC
A15CFA
0BEB33
9E53FD
9F7C0F
C39F16
B971AF
F86D28
72ABD6
CCCC77
1223F8
AD72F9
A1F868
BAE30D
70DAF2
4086AC
B812D7
578EA5
B229D4
3D5A73
2C73A5
F4EB94
F0F459
438AC7
9AD422
FC2929
3729E6
9F29B6
A373CB
58A756
9E826B
1A56C2
6E50A7
AC0796
F6C267
B62DBC
9062A2
5587C0
81777B
52A6AA
7AE921
A69453
639048
5B1208
C80984
063325
AA8620
5978EB
0EAC80
93049B
6B7D68
613846