Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update to new api
  • Loading branch information
dk committed Jun 21, 2017
1 parent 20d1b44 commit e628502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 20-cubed
Expand Up @@ -25,14 +25,14 @@ my $gradient_mask = Prima::Image->new(
);
$gradient_mask->begin_paint;
$gradient_mask->clear;
$gradient_mask->gradient_ellipse( 50, 50, 100, 100, { palette => [ cl::Black, cl::White ], poly => [0.2, 0.8, 0.3, 1] });
$gradient_mask->new_gradient( palette => [ cl::Black, cl::White ], poly => [0.2, 0.8, 0.3, 1] )->ellipse(50, 50, 100, 100);
$gradient_mask->end_paint;
$gradient_mask->type(im::Byte);

my $gradient = $dbm->dup;
$gradient->type(im::RGB);
$gradient->begin_paint;
$gradient->gradient_bar( 0, 0, $gradient->size, { palette => [ cl::Gray, cl::White ] });
$gradient->new_gradient( palette => [ cl::Gray, cl::White ] )->bar( 0, 0, $gradient->size );
$gradient->end_paint;
$gradient->premultiply_alpha( $gradient_mask );

Expand Down

0 comments on commit e628502

Please sign in to comment.