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:

EDEDF8
F75715
10D56E
849767
52784A
01DC1F
E1E8AD
A72FBF
FE24C3
A30BFF
F357A1
D1938F
5CA283
CCBDAA
124456
7C33F0
661686
42451B
4EBC01
07C7A6
DBF675
9A2908
28892A
EA8D34
7A413B
929D33
668600
422147
00905A
FD3BA3
0A4CFF
7F28D1
056125
A5048B
04936C
88EF70
16ECD8
9D5761
6B8261
79AB25
6043C2
DABF30
3802EF
9DC54F
850C07
83093A
F06BCD
3AB8E2
0A1B47
34C3A7
11902C
81F468
2ED58B
E5230B
4B3E0F
04D05E
102F33
A6C501
C80F55
B3D73B
97940E
8D6278
47AB1E
80AE71
405AA0
F8579A
DFA0EC
7DC2F2
46EB75
DEA7B9
F55385
DF8DEA
6FC9AE
152D61
6EF190
0C1915
5DB860
CD6702
72C5F8
7AA7E6
FBC825
752DBF
FBC905
BCF02C
CF654C
A6C9E7
A022B6
FA91D6
13C645
33F436
B785EB