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:

C26415
10CBC7
460E45
C824EF
B1C8BB
3C5D47
9C5F45
626A3F
D6EEEB
D8ACBB
14E8F4
E62DA7
A69C09
A75282
A993C1
990B32
D3FF7F
DD7E17
0708C9
EED096
58A79A
4FB283
9095D1
517129
616121
437852
476109
BDB6B8
ADB868
A6807D
6E9E1F
B49B51
4B07E0
A44EF0
B55C77
32C44D
A865FE
2904BA
2D8A18
6C5B91
0178C3
99C3BD
41A99B
4596B6
F28CC1
877636
C7768D
1C8B9D
99F016
BB5EBD
0574A0
AF2205
4FB31E
D9DB69
8324AE
45DA37
B59989
560601
C36C2B
DB3DDC
F68A1A
35923D
0EBCFB
21CBB5
E8F508
1A0FB2
E8F14C
3D4114
564B86
99E626
B5C974
DE4A57
69EEDE
782FE1
111278
53C8FD
0430FA
7903D0
9782B0
A8574B
EF650D
B489A9
FF3DF3
A711C4
498DC8
216890
CC3DCB
4591E5
4F17BE
AEFDEB