Clean up gradient sprite API slightly.