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:

D35039
B34980
6AE5BC
65654D
3CF1CB
C44B9B
387C39
6F350C
B60F64
6FA844
8E81DC
21AAEF
96EA8F
03875F
719456
8133D7
8DBC5F
23820E
579223
2F42F2
262BC9
C4A6B2
F80744
56A49A
FA7F26
889298
6A4546
F5B87A
DAFA74
7A023D
B5D8E9
111FB3
A333E9
DBD74F
6BAD2A
919A51
09320D
7BECDE
085913
E8DA1A
3C43F1
174F0B
EF3401
B7D8C1
73359A
F0ABB1
5417AB
DD9C09
E600A3
51A8E9
5D6A54
E1985A
245D72
18FD84
FC3121
D72816
99B251
C83C93
376016
F19F8A