Java - gradients
|
|
Arkin
|
Tue May 26 2009, 09:30PM
|
|
|
Registered Member #2140
Joined: Tue May 26 2009, 09:16PM
Location:
Posts: 53
|
Im working on a program to map out my outputs for my Wireless Power setup, and i wanted to have a smooth chart, rather than blocks. How can i make a gradient in java in 2 axis? What i have to start with is the colors of each 40*40 block, the rgb values. For 1 axis, i was able to use the Graphics2D class, but i can't seem to find a 2 axis algorithim. What are some basic steps i could use to get the proper colors?
|
Back to top
|
|
Steve Conner
|
|
Registered Member #30
Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
|
Bilinear filtering is probably the way to go.
|
Back to top
|
|
Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob
|
|
Powered by e107 Forum System
|