title: Filling a Color Array with a Gradient
body: <p>I'm trying to generate with code a one dimensional array of Color in java with a gradient of color, how can I do this? I also want to be able to use multiple colors in the gradient.</p>
  
  <p>I want it to be sort of like this: <img src="https://i.imgur.com/9k6vPyT.png?1" alt="Linear gradient"></p>