title: Drawing a Gradient Line with LibGDX
body: <p>I'm really new to Android App development/LibGDX but very familiar with Java.
  I'm struggling to create a gradiented line looking like the one shown in the image, in LibGDX.</p>
  
  <p><img src="https://i.stack.imgur.com/YcOHb.png" alt="http://i57.tinypic.com/icigqf.png"></p>
  
  <p>(I think it looks really amazing tbh oO)<br>
  Note: The image was a screenshot from the Java Applet I'm trying to port.</p>
  
  <p>So far, I've found little to no information as to how to draw with gradients.</p>
  
  <p>If it's not possible to draw, is there a chance to e.g. create a gradient in photoshop and put it in a layer behind a black layer covering it and then just "removing" the black layer for the coordinates of the line?</p>
  
  <p><strong>Gradient is not visible</strong></p>
  
  <p>.........Gradient<br>
  ---------Black<br>
  ^^       Line removes Black</p>
  
  <p><em>Results in -></em></p>
  
  <p>.........Gradient<br>
  ---  ----Black</p>
  
  <p><strong>Gradient is visible for coordinates of the line (?)</strong></p>
  
  <p>EDIT: I want the lines to be antialiased as well. Any ideas on that?</p>