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:

847448
E7FF90
F1B9F4
C64A4C
C06C4B
4467B0
13DDFF
13DDF4
86AF63
3344BD
D54E61
78BF03
629CCB
DBA33F
70A5C9
734FFA
FD535E
A5E381
3DE352
1AA72A
67A264
BB44A9
0F35E2
657F97
70E17D
6948EE
45751C
CB4D55
C71B66
EB030A
A739BE
61CB84
82FAFD
1833FF
22DADC
CDE222
E65662
B3FE67
046DBB
E5FED1
4AC1CD
F7C239
12BB8F
FBBCD2
56AB9B
AE8836
B0E2F0
0B040E
AE88A5
7787B2
4E4FEF
2FA023
A75A6F
F33EE8
38E445
78D5C0
3B5353
3C1575
A16780
2DD60A
ED25C6
226D8F
49D0C2
AFFBBE
91B305
00DF92
368FA4
273D42
CE093D
427BE6
8456DB
2DC576
238277
EF2099
E21A2E
DCDAD4
D5FB26
7F77CA
9916D3
A5B613
50CDFF
CC14ED
EB3820
369AD9
87FB11
F54CA4
18C585
01F9EE
920130
8124F2
E0E23D
2B15C3
279692
9A0F0C
5E9306
C23223
152C0E
F280F9
71E53E