added 2-color/alpha gradients; simplified string-to-number converters