Robin
June 25, 2008, 10:07pm
1
Prashant Saxena wrote:
'GradientFillLinear' creates a rectangle but only supports two colors.
How can I draw a gradient rectangle where I can specify four different colors, one for each corner. Similar to photoshop color chooser.
You'll probably need to do the gradient calculations yourself.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
nedbat
June 26, 2008, 12:19am
2
You could get away with doing half the job: use GradientFillLinear to draw stripes, computing the endpoint colors yourself by interpolating between the corners.
--Ned.
http://nedbatchelder.com
Robin Dunn wrote:
···
Prashant Saxena wrote:
'GradientFillLinear' creates a rectangle but only supports two colors.
How can I draw a gradient rectangle where I can specify four different colors, one for each corner. Similar to photoshop color chooser.
You'll probably need to do the gradient calculations yourself.
--
Ned Batchelder, http://nedbatchelder.com