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:

9513D3
CF2ACD
30827D
BC1E8E
DC5D9B
80B498
9F8BFA
3562FC
6437AF
163F2C
39069A
DA7A08
582A16
57E730
3202DB
DB738C
6251F7
ABE237
7B94A9
716418
3F4470
F27BE1
C92116
521D08
49C094
06B20B
726C76
1DA609
EDFC92
744177
BE40E3
1691E2
1E7D3C
866EBF
114F70
3A9B28
FA080F
EB2973
1DAEA7
EA4604
88616F
1BD5D3
7DA504
3299FA
E38F01
71AA25
744611
6ECEC5
342AD4
109995
0A72A4
6952F2
7C70A5
75D021
C2D66F
536E62
277FE8
06BA23
14DF1C
E1B7C3
9AE969
78B40D
3EDF37
81F738
25F18D
39FC8D
FEA61C
6D1005
30AD97
B64DBE
7B4DF7
4783C7
C9368D
2719DA
D58C26
6A1DDB
6A1DA8
9A7FFB
907855
788018
47FE01
DCEAF9
4E1A00
3354A1
5C6365
E8226A
649579