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:

810C68
01CD01
EFE92D
33B79B
055D7B
2E3FF6
C60537
21F496
F133DB
30E396
A536E6
3FA5D8
2B3DB4
3F3819
18EEC4
48E2F6
DFA934
19E65E
8EC25D
F2BE80
8B5373
8F301B
9D51D2
CCB651
964889
04B6F7
C34EC1
DB883A
18C0E8
907816
5AD662
283FC4
A4DA0F
B1F9C7
98B8C2
C595A0
74274C
9A7C65
13BD2B
1849D8
94F038
199E18
C80962
BB81BD
C3B242
38DABD
8D4D5B
931986
679EB9
DF92AB
D09CFF
6D78A4
64F2FB
27DFDA