• Post Reply Bookmark Topic Watch Topic
  • New Topic

[2D] Multi Color line

 
Adriano Tissier
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

After having thoroughly searched the forum, I'm turning to you for help, hoping we will resolve this somehow simple looking problem.

How can one get a Paint constructed which, passed to a Graphics2D, evenly colors the line based on a map of colors?
GradiantPaint looks tasty, but it seems like you can only specify two colors.

Here is a quick pseudo code example of what I'd like to be able to do:


Thanks anyone and keep up the good work!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!