A script for generating HP meters (for games). The gradient function is probably useful for other things as well.