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:

E921CD
5AB475
40FAA2
9C5F76
AC6B82
93FF16
343BBF
77575E
8FE3ED
A4C871
4BD5AD
FF7463
B30B16
BAC54B
7AB38E
F66FED
B87F74
4DDC45
138FF1
E74994
04A09F
648735
C3DB80
5AFC20
F38A91
BFC454
5888EA
A59076
D04BFD
701474
4D1C72
9227EB
1B3AA0
E12044
60F816
957A3B
215B2B
4BA910
627296
05F757
55F212
4E1E89
B81939
693DF3
352A8E
69C4E5
0B64DF
C16F44
4607D6
0107D3
5C9BB2
54E147
1C07BC
DF8306
49A11A
215D15
9077D8
E12B5E
EF6501
65E747
6E7EAD
4C4164
01B082
6BD77D
2E891E
DCEEB4
F38DED
42BD34
EA5105
7431C3
3DF358