Draw a laser(Slick2D)

I want to render a laser. I could just use graphics.drawLine, but that would draw a plain single colored line.
I want to add some effect. Is there a way to do this?

Couldn’t you just use an image of a laser and rotate it however you need? Would be much simpler.
If not, you can always use a normal gradient.

I wouldn’t recommend this, but you can also draw a square inside a square inside a square to obtain a simple gradient

Use this

And use your programming/google skills to port it to Slick2D.

That laser fx thing gave me an idea. I just draw multiple lines(graphics.drawLine) with smaller strokes and different color on the same coordinates. That would make it look like a real laser.