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:

B4D652
F744DC
64FFEF
048337
F87B00
105600
5DE730
E60711
47F50D
DEC5D0
29B44E
EFB598
B6D260
FFC3A5
CA8AEB
65E13B
D8A00C
74D692
4AC2EE
C57598
2029E5
AF8F63
57EC9B
356562
14A645
A09C71
40622B
512739
C30A5C
3BFC02
6109AF
E67B14
56A8C7
E7D353
0423EE
6E45C6
5E6925
500405
68E831
B940E0
95C7E7
6E20E1
C88F87
8733E7
30734B
6E67D1
B2AF59
3F5479
C32FCE
487322
CD30F4
98CDA2
2158B5
654714
0903BB
D15144
A6A6C9
D96DD6
D0BCCF
473FE5
9903CB
0EF743
091F52
5C0BC7
4776A0
F931C3
862941
04768D
D7B356
764ABC
2BF17C
AC5F44
D0310B
B3AC7D
955172
5668B5
DC93DF
92770E
B104D5
44C532
13F4A3
8DA3DB
5A4D52
29C61E
8B1FB6