Permalink
Browse files

Reverse gradient and fix output name for pie gradient.

  • Loading branch information...
1 parent 74ecff2 commit ddef4b685ddd1d5f5cf9dba12f003154a18ed942 @gphat committed Mar 20, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 pie/pie-gradient.pl
  2. BIN pie/pie-gradient.png
View
3 pie/pie-gradient.pl
@@ -39,9 +39,10 @@
$ren->border_color(Graphics::Color::RGB->new(red => 1, green => 1, blue => 1));
$ren->brush->width(2);
$ren->gradient_color(Graphics::Color::RGB->new(red => 1, green => 1, blue => 1, alpha => .3));
+$ren->gradient_reverse(1);
$defctx->renderer($ren);
$defctx->domain_axis->hidden(1);
$defctx->range_axis->hidden(1);
$cc->plot->grid->visible(0);
-$cc->write_output('foo.png');
+$cc->write_output('pie-gradient.png');
View
BIN pie/pie-gradient.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ddef4b6

Please sign in to comment.