Ruby image gradient parser that generates Java Color arrays