to depend on the newer version that has it
+ print "# plin coverage\n";
{
$base->box(filled => 1, color => $black);
# plin masked
{
$base->box(filled => 1, color => $black);
# plin masked
- note("plinf coverage");
+ print "# plinf coverage\n";
{
$base->box(filled => 1, color => $black);
# plinf masked
{
$base->box(filled => 1, color => $black);
# plinf masked
# gpix
$base->box(filled => 1, color => $black);
ok($base->setpixel(x => 4, y => 10, color => $red),
# gpix
$base->box(filled => 1, color => $black);
ok($base->setpixel(x => 4, y => 10, color => $red),
undef, "check failure to bottom");
}
{
undef, "check failure to bottom");
}
{
# gpixf
$base->box(filled => 1, color => $black);
ok($base->setpixel(x => 4, y => 10, color => $redf),
# gpixf
$base->box(filled => 1, color => $black);
ok($base->setpixel(x => 4, y => 10, color => $redf),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $red, $green) x 10 ]),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $red, $green) x 10 ]),
[], "fail read bottom of image");
}
{
[], "fail read bottom of image");
}
{
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $redf, $greenf) x 10 ]),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $redf, $greenf) x 10 ]),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $red, $green) x 10 ]),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $red, $green) x 10 ]),
[], "fail read bottom of image");
}
{
[], "fail read bottom of image");
}
{
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $redf, $greenf) x 10 ]),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 31, y => 3,
pixels => [ ( $redf, $greenf) x 10 ]),
my ($blacki, $redi, $greeni, $bluei, $greyi) = 0 .. 4;
{ # gpal
my ($blacki, $redi, $greeni, $bluei, $greyi) = 0 .. 4;
{ # gpal
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 0, y => 5, type => "index",
pixels => [ ( $redi, $greeni, $bluei, $greyi) x 25 ]),
$base->box(filled => 1, color => $black);
is($base->setscanline(x => 0, y => 5, type => "index",
pixels => [ ( $redi, $greeni, $bluei, $greyi) x 25 ]),
# 89.8%
{ # ppal, unmasked
# 89.8%
{ # ppal, unmasked
$base->box(filled => 1, color => $black);
is($limited->setscanline(x => 1, y => 1, type => "index",
pixels => [ ( $redi, $greeni, $bluei) x 3 ]),
$base->box(filled => 1, color => $black);
is($limited->setscanline(x => 1, y => 1, type => "index",
pixels => [ ( $redi, $greeni, $bluei) x 3 ]),