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

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/libcairo-perl/examples/png/   drwxr-xr-x
Free 129.81 GB of 142.11 GB (91.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     text-rotate.pl (1.85 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl

use strict;
use warnings;
use Cairo;

use constant
{
    WIDTH => 450,
    HEIGHT => 900,
    NUM_STRINGS => 3,
    M_PI => 4 * atan2(1, 1),
};

{
    my $surface = Cairo::ImageSurface->create ('argb32', WIDTH, HEIGHT);
    my $cr = Cairo::Context->create ($surface);

    $cr->set_source_rgb (0.0, 0.0, 0.0);

    $cr->translate (40, 40);

    $cr->select_font_face ('mono', 'normal', 'normal');
    $cr->set_font_size (12);
    $cr->show_text ('+CTM rotation');

    $cr->save;
    $cr->select_font_face ('serif', 'normal', 'normal');
    $cr->set_font_size (40);
    for (my $i = 0; $i < NUM_STRINGS; $i++) {
        my $angle = $i * 0.5 * M_PI / (NUM_STRINGS - 1);
        $cr->save;
        $cr->rotate ($angle);
        $cr->move_to (100, 0);
        $cr->show_text ("Text");
        $cr->restore;
    }
    $cr->restore;

    $cr->translate (0, HEIGHT / 3);

    $cr->move_to (0, 0);
    $cr->show_text ('+CTM rotation');
    $cr->rel_move_to (0, 12);
    $cr->show_text ('-font rotation');

    $cr->save;
    $cr->select_font_face ('serif', 'normal', 'normal');
    $cr->set_font_size (40);
    for (my $i = 0; $i < NUM_STRINGS; $i++) {
        my $angle = $i * 0.5 * M_PI / (NUM_STRINGS - 1);
        $cr->save;
        $cr->rotate ($angle);
        my $matrix = Cairo::Matrix->init_identity;
        $matrix->scale (40, 40);
        $matrix->rotate (-$angle);
        $cr->set_font_matrix ($matrix);
        $cr->move_to (100, 0);
        $cr->show_text ('Text');
        $cr->restore;
    }
    $cr->restore;

    $cr->translate (0, HEIGHT / 3);

    $cr->move_to (0, 0);
    $cr->show_text ('+CTM rotation');
    $cr->rel_move_to (0, 12);
    $cr->show_text ('-CTM rotation');

    $cr->save;
    $cr->select_font_face ('serif', 'normal', 'normal');
    $cr->set_font_size (40);
    for (my $i = 0; $i < NUM_STRINGS; $i++) {
        my $angle = $i * 0.5 * M_PI / (NUM_STRINGS - 1);
        $cr->save;
        $cr->rotate ($angle);
        $cr->move_to (100, 0);
        $cr->rotate (-$angle);
        $cr->show_text ('Text');
        $cr->restore;
    }
    $cr->restore;

    $surface->write_to_png ('text-rotate.png');
}

:: 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.0085 ]--