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:

2FA49B
B4138C
88BE82
183570
2C44E8
4D5547
650005
406EE0
C00AA5
A1A1A9
4CEBC0
C5E13A
C189A3
676238
308074
4CF2BB
D92296
8C4DD4
73F7ED
67FB26
27B73A
7392C3
69553D
05672E
B88F32
594A48
D7B681
895C73
27A285
F4034B
3619AE
92A154
6F582D
0B6A3A
648F75
A8F7AC
9E6D50
ED323A
A65E3A
E49A5B
1CE919
91EAE6
5A757A
7A7A6E
602195
09E7A6
EF0891
A85552
C77D56
616CAA
8EC7BB
069A7F
2A5B2D
6EA3AF
248DD6
375C80
B7BE8F
0F1DFC
8EEF1C
657909
A27534
E87F78
98A576
777BB0
E7A859
0EAD7F
C70A25
B24A27
EE4D70
FA8A13
91A933
5CE548
F27B6C
1CB415
70B091
40885C
10ED97
22173F
772CA9
E2FB81
AE238A
DC2914
ABC6CF
2E55D2
656AE4
4FAABE
F35F0C
4F0EAC
93DF8D
6DFBC8
14F5B3
5C3E04