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:

DE3678
3B7AA2
7D4572
58F768
E49BFB
EF859E
73BD04
1F42BE
92D0FC
089528
F0932B
60EC55
3FDA66
EF9A88
AC9935
5C71AE
526711
99D79B
235DA4
416851
A0B8C6
E6E25E
7A6273
C11203
7B4E24
CD5123
C51A8F
D280C6
B41085
58FAD2
C31CAE
9B3EBF
4F6B68
42DF72
335524
B3DC35
2628F1
9EC49E
665069
11BFD9
9A090F
462C2C
8EBE64
6AF769
F4B0DA
B03D3A
7203F0
4385E0
10EA80
A3B67E
6320EC
F2C9AD
861DFD
C00F35
448E24
D60BAF
C75C25
522261
EDA4CC
E088A8
F2ABAB
AB2C0B
1E0093
3540D7
706EFE
4C5997