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:

84928C
A4EC0C
39E2AE
2FE0A3
D288BE
A054F7
09DB8F
142981
6976BD
04E249
84249A
54AF5E
36BC87
FDA602
FA2CEC
452C76
B2C0EC
77D3D4
57778C
95CE9A
9503E7
4C12DD
0BA820
2F0652
EF281D
239872
D1138E
BC82AF
21D3DE
EDF4AF
0022D2
0F06C0
A0B9C4
9D719F
E64115
E30A81
1DA6E1
0B1AEE
7FE9AC
ADD567
CEE41A
7893B6
6D32AA
8B7AE6
139CD2
6D2459
E4286B
1B083F
FEBE23
30EDF3
A767EA
903BF0
47318F
8AFD41
4205B2
93043F
BE9E54
9CFAF1
4CCBDB
7235F1
C1527D
A932A6
C110F8
461529
664BDA
6ACA80
DBC903
0F3005
E8D269
22EE8E
7E5A7E
8CB97F
5BAFAB
21DFF6
E6E182
B88CBB
2D5EF9
5ADA17
BC07A4
650CBE
8D373D
2D34C7
9CA8A5
2A4680
AFC324
9B1645
A41676
98B8A8
96568E
29E467
CB35FD
16A4B0
24AA94
0B20BA
DB9389
4DC1F0
69A530
A20BF1