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:

6A40A8
9B905B
58FFEE
66C133
BE3DC4
06519E
6BB622
44A49D
32998B
D54FED
A276A0
50F42C
2DD10B
9177EF
D23A59
42CC64
F8F7D0
2C4C33
B8398B
BC7D92
B36FF4
7B935D
83A7E2
221006
E3F564
6ED9F8
AA6BCA
026ABC
EA979A
999DD4
DA610C
1BDB7D
7608EC
81C3EC
362DD3
FF63FC
6F6583
62DA80
F8241A
33D0F0
14B259
059D0E
BE3361
660A35
DA50F6
8CC926
DC1C66
826C3D
26F236
DC6927
B54AB2
5C40A6
DB4E68
724D9D
8C657C
5C1C78
7F8C9D
D3ECC2
EECD6F
73070F
11CEC7
0BC144
1C9C87
7968F9
F11CFB
59E8EA
A015FD
2C206C
86C9CC
D9D0CE
5F1F88
BFA0B0
1EDFD1
921D5B
E6543A
76FAA2
244EE0
648618
90D679
99FA23