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:

47F4BA
9F225E
5C41E8
F1EB27
792A13
13CA57
8048D1
92673C
4633FC
7B8A05
603601
404A37
B91C39
BFDB8B
903036
48557A
7E60C8
EE0C1E
631BAC
41F52F
246453
A93558
6C5361
987377
2817EC
FE89FC
AED7C9
97499B
CAE06A
B4B78F
D381FC
6B54C7
5E6D5B
D04921
3B2D50
2681E1
B7AA83
4F2454
D7213C
6BB92D
C7473E
DDCDEB
E2AB39
D84B14
279035
E94B8D
DE7414
44B622
18F0B2
E1C6C0
924954
55E82E
C8922E
E948FD
086A89
F44EFE
EA08C4
0A0A37
855B58
CA548E
B851AA
6CE81B
C36176
F49391
360303
FD960C
2EAAAE
359C05
4F5B95
A6CFD9
772886
5B73C6
915F9C
4F9CFA
587E29
5B08D7
DE5754
548D75
2F5705