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:

DC3388
EC59CB
EBA446
EF9AE6
D8EC54
B44434
7AE9D9
DD003A
F86142
26CF96
6364E0
667667
0DFEE6
4F2B9F
3401B9
F07160
991ADB
55839F
5E9ED9
D95637
62C5EA
10F9F4
34DCDC
A96D5A
B143B2
34C64F
E9C98C
55D7DA
458947
2819E5
420499
F62BD6
31A37D
06A0A1
E4A025
6A88B3
EBD006
D8D8D9
72AACD
ED1276
40E5A0
224A47
BBDA87
7860F2