__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/perl
use strict;
use warnings;
use Cairo;
use constant
{
WIDTH => 750,
HEIGHT => 500,
};
{
my $surf = Cairo::ImageSurface->create ('argb32', WIDTH, HEIGHT);
my $cr = Cairo::Context->create ($surf);
$0 =~ /(.*)\.pl/;
my $out = "$1.png";
$cr->rectangle (0, 0, WIDTH, HEIGHT);
$cr->set_source_rgb (1, 1, 1);
$cr->fill;
draw_outlines ($cr, WIDTH, HEIGHT);
$cr->show_page;
$surf->write_to_png ($out);
}
sub create_gradient
{
my ($cr, $width, $height) = @_;
my $gradient = Cairo::LinearGradient->create (0, 0, $width, 0);
$gradient->add_color_stop_rgb (0.0, 0., 0., 0.);
$gradient->add_color_stop_rgb (0.5, 1., 1., 1.);
$gradient->add_color_stop_rgb (1.0, 0., 0., 0.);
return $gradient;
}
sub draw_outlines
{
my ($cr, $surface_width, $surface_height) = @_;
my $gradient;
my ($width, $height, $pad);
$width = $surface_width / 4.0;
$pad = ($surface_width - (3 * $width)) / 2.0;
$height = $surface_height;
$gradient = create_gradient ($cr, $width, $height);
$cr->set_source ($gradient);
draw_flat ($cr, $width, $height);
$cr->translate ($width + $pad, 0);
$cr->set_source ($gradient);
draw_tent ($cr, $width, $height);
$cr->translate ($width + $pad, 0);
$cr->set_source ($gradient);
draw_cylinder ($cr, $width, $height);
$cr->restore;
}
sub draw_flat
{
my ($cr, $width, $height) = @_;
my $hwidth = $width / 2.0;
$cr->rectangle (0, $hwidth, $width, $height - $hwidth);
$cr->fill;
}
sub draw_tent
{
my ($cr, $width, $height) = @_;
my $hwidth = $width / 2.0;
$cr->move_to ( 0, $hwidth);
$cr->rel_line_to ( $hwidth, -$hwidth);
$cr->rel_line_to ( $hwidth, $hwidth);
$cr->rel_line_to ( 0, $height - $hwidth);
$cr->rel_line_to (-$hwidth, -$hwidth);
$cr->rel_line_to (-$hwidth, $hwidth);
$cr->close_path;
$cr->fill;
}
sub draw_cylinder
{
my ($cr, $width, $height) = @_;
my $hwidth = $width / 2.0;
$cr->move_to (0, $hwidth);
$cr->rel_curve_to (0, -$hwidth, $width, -$hwidth, $width, 0);
$cr->rel_line_to (0, $height - $hwidth);
$cr->rel_curve_to (0, -$hwidth, -$width, -$hwidth, -$width, 0);
$cr->close_path;
$cr->fill;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| README | File | 165 B | 0644 |
|
| bevels.pl | File | 6 KB | 0644 |
|
| caps_joins.pl | File | 1.41 KB | 0644 |
|
| hering.pl | File | 1.15 KB | 0644 |
|
| outline.pl | File | 2.07 KB | 0644 |
|
| snapping.pl | File | 9.08 KB | 0644 |
|
| spiral.pl | File | 895 B | 0644 |
|
| spline-pipeline.pl | File | 2.46 KB | 0644 |
|
| splines_tolerance.pl | File | 1018 B | 0644 |
|
| star_and_ring.pl | File | 4.62 KB | 0644 |
|
| stars.pl | File | 1.06 KB | 0644 |
|
| text-rotate.pl | File | 1.85 KB | 0644 |
|
| text.pl | File | 3.12 KB | 0644 |
|