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:

FF02E2
7BBEF2
7881D0
25FC45
ACAD19
51488A
6395E5
B699D9
1C8F6A
3E8CE7
7D1194
AF5B66
4021C6
2ED7E4
8ADB90
499C0F
59EEB5
DA6F74
E1E05E
90F89A
9CC06C
06EA46
913266
97D8E5
1551F7
E97F71
ACB518
C63A49
7EC31E
BE3DF7
9DA28F
DA3C9C
51A5EC
5BFF70
C465C4
E404DB
74BA4C
2B2502
319D02
6F8AE9
618AA7
FC8833
C43A1E
FA4877
2D8591
9E7C53
E61FB2
39B601
901AC1
8AF51A
4FE7A0
CC674F
638C2D
76B60B
B79ED2
DEEBB4
297B61
132C7C
F250CF
627100
28D21F
916789
B6D350
0EFBC5
0C8CB8
D1B1E6
173B56
37FB32
801197
AFDA3C
882BAF
6FD072
326657
2BE9C8
1D4A37
D21D8B
53A2F8
4A6A4A
757993
152C08
1C9498
D728F0
D2ADE7
5E72AA
38A27F
C442CD
773D9A
6E94BD
102C3B
12DF10
AFCFEB
A0C75F
384AE5
85363C
9CE292
A78473
C63F39
34B0FD