!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/lib64/perl5/vendor_perl/Prima/examples/   drwxr-xr-x
Free 6181.87 GB of 6263.07 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     f_fill.pl (1.53 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
=pod

=head1 NAME

examples/f_fill.pl - A gradient fill example

=head1 FEATURES

Demonstrates the usage of graphic context regions.
Note that the $i region is not created, but is assigned
on every onPaint. Tests whether image object is able
to hold a cached region copy.

=cut

use strict;
use warnings;
use Prima qw(Application);

my $i = Prima::Image-> create(
    preserveType => 1,
    type => im::BW,
    font => { size => 100, style => fs::Bold|fs::Italic },
);

$i-> begin_paint_info;
my $textx = $i-> get_text_width( "PRIMA");
my $texty = $i-> font-> height;
$i-> end_paint_info;
$i-> size( $textx + 20, $texty + 20);
my @is = $i-> size;
my $path;
    
if ( $i->font->{vector}) {
    $i = $i->new_path;
    $i->translate( 10, 10 );
    $i->text('PRIMA');
    $path = $i;
    $i = $i->region(fm::Winding);
} else {
    $i-> begin_paint;
    $i-> color( cl::Black);
    $i-> bar(0,0,@is);
    $i-> color( cl::White);
    $i-> text_out( "PRIMA", 0,0);
    $i-> end_paint;
    $i = $i->to_region;
}

my ($g1, $g2);

my $w = Prima::MainWindow-> create(
    size   => [ @is],
    centered => 1,
    buffered => 1,
    palette => [ map { ($_) x 3 } 0..255 ],
    onPaint => sub {
    my ( $self, $canvas) = @_;
        $canvas->clear;
        $g1->ellipse($is[0]/2 ,$is[1]/2, $is[0], $is[0]);
        $canvas-> region( $i);
        $g2->ellipse($is[0]/2 ,$is[1]/2, $is[0], $is[0]);
        $canvas-> linePattern(lp::Dot);
        $canvas-> lineWidth(6);
        if ( $path ) {
            $path->canvas($canvas);
            $path->stroke;
        }
    },
);

$g1 = $w->new_gradient( palette => [cl::White, cl::Black ] );
$g2 = $w->new_gradient( palette => [cl::Black, cl::White ] );

run Prima;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0112 ]--