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:

F69EF4
DB8CF6
98573C
82E0C5
5CA4F6
518D9C
6A2394
947107
590781
40C054
E8C73A
058D16
99EB0A
C86EE8
200204
1CB160
D63208
F41AD5
46C8AF
373231
6BB180
AAB8B7
BD3152
575EE9
575204
98D3BC
62F22C
EC0E0C
41DE19
6D1135
05A6D4
8A0970
AF0F33
AAFAB1
0197C7
E48E73
06EBB2
13F436
E8577B
E1B293
1B9D75
8DC2D9
F33F62
97FAEA
CC17AF
023584
0A866A
8EEC5D
3B2180
DB9B1F
996AA9
7C436B
B2DD3E
47653B
3EC5E4