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:

D06161
D0F54C
45600E
F7D5FF
05A520
3D4239
748BDE
03825D
7177FA
DDB851
9F88FC
149934
DF13A0
CA4F00
C6C743
426D49
CA884F
CD8003
FCB555
6C1336
428C65
5743AB
4AE48D
91DEF6
04625C
ED1C18
BF5042
AB3602
11F50D
F842F7
5534E4
098B1F
E96CE9
A7906F
612D14
F5FEAD
1D4DCD
4B6CC8
A6BEF5
B5EB39
BF7279
48879C
272922
019B87
78C34B
C9D3AD
8D3395
0C3FD6
1B7EF1
88FF53
DD2DB5
D20922
AFB154
956F34
7EFE39
FA646F
B02DED
B1032D
5FD2DE
EB0BF3
F16094
9AA42F
E0A5BA
CCA604
775BC0
372A8C
EC162F
245F55
03FDAA
AC76F5
A6EAEC
B605C6
9C7CDF
FFA754
836A54
A8BA61
BF3490
726C5B
C097F7
9F57D3
AA9000
63DAE9
AC24BE
A20D5D
2FDD9B