Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[2D] Multi Color line  RSS feed

Adriano Tissier
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!
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!